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
72f1e9aebc78157c8d63018324f70f345a29a0aa
SQL
uprightclear/2020Summer2_INFO6210
/SQL/level1/SQL Date Functions.sql
UTF-8
1,504
3.375
3
[]
no_license
SELECT SalesOrderID, OrderDate FROM AdventureWorks2008R2.Sales.SalesOrderHeader ORDER BY OrderDate DESC,SalesOrderID DESC; /*Useful Date Functions */ SELECT TOP 10 SalesOrderID, OrderDate [Date and Time] FROM Sales.SalesOrderHeader ORDER BY TotalDue DESC; /*Get Order Date Only*/ SELECT TOP 10 SalesOrderID, CAST(OrderDate as DATE) [Date Only] FROM Sales.SalesOrderHeader ORDER BY TotalDue DESC; /*Caculate Different Between Dates*/ SELECT TOP 10 SalesOrderID, CAST(OrderDate as DATE) [Date], DATEDIFF(dd, OrderDate, GETDATE())[days], DATEDIFF(mm, OrderDate, GETDATE())[months], DATEDIFF(yy, OrderDate, GETDATE())[years] FROM Sales.SalesOrderHeader ORDER BY TotalDue DESC; /*Get Year , Quarter and Months Numbers of dates*/ SELECT TOP 10 SalesOrderID, CAST(OrderDate as DATE) [Date], DATEPART(yy, OrderDate)[Year Number], DATEPART(qq, OrderDate)[Quarter Number], DATEPART(mm, OrderDate)[Month Number] FROM Sales.SalesOrderHeader ORDER BY TotalDue DESC; /*Get Year and Months Numbers of dates*/ SELECT TOP 10 SalesOrderID, CAST(OrderDate as DATE) [Date], YEAR(OrderDate)[Year Number], MONTH(OrderDate)[Month Number] FROM Sales.SalesOrderHeader ORDER BY TotalDue DESC; /*Get Months and Day names*/ SELECT TOP 10 SalesOrderID, CAST(OrderDate as DATE) [Date], DATENAME(MM, OrderDate)[Month Name], DATENAME(DW, OrderDate)[Day Name] FROM Sales.SalesOrderHeader ORDER BY TotalDue DESC;
true
5b9202bbaa19090bc78819fcfd019e4945b86b67
SQL
sufansufan/java-webapp
/db/sql/V1605184864__rtd_history_partition.sql
UTF-8
1,750
2.703125
3
[]
no_license
alter table rtd_history drop primary key; alter table rtd_history modify column collect_time datetime NOT NULL DEFAULT NOW(); ALTER TABLE `rtd_history` PARTITION BY RANGE(TO_DAYS(collect_time)) ( PARTITION `p0` VALUES LESS THAN (TO_DAYS('20201101')), PARTITION `p1` VALUES LESS THAN (TO_DAYS('20201201')), PARTITION `p2` VALUES LESS THAN (TO_DAYS('20210101')), PARTITION `p3` VALUES LESS THAN (TO_DAYS('20210201')), PARTITION `p4` VALUES LESS THAN (TO_DAYS('20210301')), PARTITION `p5` VALUES LESS THAN (TO_DAYS('20210401')), PARTITION `p6` VALUES LESS THAN (TO_DAYS('20210501')), PARTITION `p7` VALUES LESS THAN (TO_DAYS('20210601')), PARTITION `p8` VALUES LESS THAN (TO_DAYS('20210701')), PARTITION `p9` VALUES LESS THAN (TO_DAYS('20210801')), PARTITION `p10` VALUES LESS THAN (TO_DAYS('20210901')), PARTITION `p11` VALUES LESS THAN (TO_DAYS('20211001')), PARTITION `p12` VALUES LESS THAN (TO_DAYS('20211101')), PARTITION `p13` VALUES LESS THAN (TO_DAYS('20211201')), PARTITION `p14` VALUES LESS THAN (TO_DAYS('20220101')), PARTITION `p15` VALUES LESS THAN (TO_DAYS('20220201')), PARTITION `p16` VALUES LESS THAN (TO_DAYS('20220301')), PARTITION `p17` VALUES LESS THAN (TO_DAYS('20220401')), PARTITION `p18` VALUES LESS THAN (TO_DAYS('20220501')), PARTITION `p19` VALUES LESS THAN (TO_DAYS('20220601')), PARTITION `p20` VALUES LESS THAN (TO_DAYS('20220701')), PARTITION `p21` VALUES LESS THAN (TO_DAYS('20220801')), PARTITION `p22` VALUES LESS THAN (TO_DAYS('20220901')), PARTITION `p23` VALUES LESS THAN (TO_DAYS('20221001')), PARTITION `p24` VALUES LESS THAN (TO_DAYS('20221101')), PARTITION `p25` VALUES LESS THAN (TO_DAYS('20221201')) );
true
5cdfbb7b9371f126f1a50b4bf51be8174a9b15ae
SQL
obusorezekiel/numbergame
/numbergame (1).sql
UTF-8
3,934
2.96875
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 4.6.4 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Generation Time: Sep 04, 2017 at 12:54 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: `numbergame` -- -- -------------------------------------------------------- -- -- Table structure for table `admin` -- CREATE TABLE `admin` ( `id` int(7) NOT NULL, `email` varchar(100) NOT NULL, `num1` int(15) NOT NULL, `spin` varchar(15) NOT NULL ) ENGINE=MyISAM DEFAULT CHARSET=latin1; -- -- Dumping data for table `admin` -- INSERT INTO `admin` (`id`, `email`, `num1`, `spin`) VALUES (1, 'joseph11@gmail.com', 431, 'conditional'); -- -------------------------------------------------------- -- -- Table structure for table `hints` -- CREATE TABLE `hints` ( `id` int(5) NOT NULL, `email` varchar(25) NOT NULL, `num1` int(11) NOT NULL, `num2` int(11) NOT NULL, `num3` int(11) NOT NULL, `num4` int(11) NOT NULL, `num5` int(11) NOT NULL, `num6` int(11) NOT NULL, `num7` int(11) NOT NULL ) ENGINE=MyISAM DEFAULT CHARSET=latin1; -- -- Dumping data for table `hints` -- INSERT INTO `hints` (`id`, `email`, `num1`, `num2`, `num3`, `num4`, `num5`, `num6`, `num7`) VALUES (1, 'joseph11@gmail.com', 765, 654, 543, 432, 431, 210, 199); -- -------------------------------------------------------- -- -- Table structure for table `num_input` -- CREATE TABLE `num_input` ( `email` varchar(25) NOT NULL, `num1` varchar(5) NOT NULL ) ENGINE=MyISAM DEFAULT CHARSET=latin1; -- -- Dumping data for table `num_input` -- INSERT INTO `num_input` (`email`, `num1`) VALUES ('aman@aman.com', '999'), ('aman@aman.com', '523'), ('aman@aman.com', '654'), ('obey@yahoo.com', '234'), ('aman@aman.com', '432'), ('obey@yahoo.com', '765'), ('obusoru@yahoo.com', '431'); -- -------------------------------------------------------- -- -- Table structure for table `users` -- CREATE TABLE `users` ( `id` int(5) NOT NULL, `name` varchar(100) NOT NULL, `email` varchar(100) NOT NULL, `phone` bigint(25) NOT NULL, `password` varchar(100) NOT NULL, `category` varchar(10) NOT NULL ) ENGINE=MyISAM DEFAULT CHARSET=latin1; -- -- Dumping data for table `users` -- INSERT INTO `users` (`id`, `name`, `email`, `phone`, `password`, `category`) VALUES (1, 'umesi', 'qwert@gmail.com', 12345, 'd41d8cd98f00b204e9800998ecf8427e', ''), (2, 'umesi', 'qwerteee@gmail.com', 12345, 'd8578edf8458ce06fbc5bb76a58c5ca4', ''), (3, 'Umes', 'zxcv@yahoo.com', 345432343, '376c43878878ac04e05946ec1dd7a55f', 'users'), (4, 'Joseph', 'joseph11@gmail.com', 8033392208, '02c75fb22c75b23dc963c7eb91a062cc', 'admin'), (10, 'Aman', 'aman@aman.com', 7065362762, 'd8578edf8458ce06fbc5bb76a58c5ca4', 'users'), (9, 'Obey', 'obey@yahoo.com', 9023426347, 'd8578edf8458ce06fbc5bb76a58c5ca4', 'users'), (11, 'Umesi', 'obusoru@yahoo.com', 7065424399, '02c75fb22c75b23dc963c7eb91a062cc', 'users'); -- -- Indexes for dumped tables -- -- -- Indexes for table `admin` -- ALTER TABLE `admin` ADD PRIMARY KEY (`id`); -- -- Indexes for table `hints` -- ALTER TABLE `hints` ADD PRIMARY KEY (`id`); -- -- Indexes for table `users` -- ALTER TABLE `users` ADD PRIMARY KEY (`id`); -- -- AUTO_INCREMENT for dumped tables -- -- -- AUTO_INCREMENT for table `admin` -- ALTER TABLE `admin` MODIFY `id` int(7) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=2; -- -- AUTO_INCREMENT for table `hints` -- ALTER TABLE `hints` MODIFY `id` int(5) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=3; -- -- AUTO_INCREMENT for table `users` -- ALTER TABLE `users` MODIFY `id` int(5) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=12; /*!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
8976b8723bd3f65c089bf3df814df02115578ca8
SQL
altamira/visualstudio
/Sistema de Informação Altamira/EGISSQL.Database/dbo/Stored Procedures/Procs2/pr_pesquisa_projetos_cq.sql
UTF-8
2,543
3.453125
3
[]
no_license
 /****** Object: Stored Procedure dbo.pr_pesquisa_projetos_cq Script Date: 13/12/2002 15:08:38 ******/ --pr_pesquisa_projetos_cq ----------------------------------------------------------------------------------- --Polimold Industrial S/A 2001 --Stored Procedure : SQL Server Microsoft 7.0 --Lucio Vanderlei --Selecao de Registros da Tabela de Projetos : só seleçao --Data : 20.09.2001 --Atualizado : ----------------------------------------------------------------------------------- create procedure pr_pesquisa_projetos_cq as select a.cd_projeto, a.cd_interno_projeto, a.dt_inicio_projeto, a.dt_fim_projeto, a.dt_info_cliente_projeto, a.dt_info_processo_projeto, a.ic_padrao_projeto, a.cd_pedido_venda, a.cd_item_pedido_venda, a.nm_produto_cliente, a.qt_espessura_projeto, a.qt_largura_projeto, a.qt_comprimento_projeto, a.ic_revisado_projeto, a.dt_entrada_projeto, a.ic_desenho_projeto, a.ic_simulacao_injecao, a.nm_comp_material_plastico, a.cd_pedido_venda_molde, a.cd_item_pedido_molde, a.ic_cancelamento_projeto, a.ic_garantia_projeto, a.cd_consulta, a.dt_entrega_cliente, a.qt_distancia_centros, b.nm_fantasia_projetista, c.nm_tipo_projeto, d.nm_status_projeto, e.nm_material_plastico, f.fan_cli, f.vendint as 'Interno', f.vdext02 as 'Setor', g.numos as 'OS', h.qt_vias_manifold as 'Vias', h.qt_niveis_manifold as 'Niveis', h.ic_massa_manifold as 'Massa', h.cd_tipo_manifold into #tmpProjeto from projeto a, projetista b, tipo_projeto c, status_projeto d, material_plastico e, sap.dbo.cadped f, sap.dbo.cadiped g, item_projeto h where a.cd_projetista *= b.cd_projetista and a.cd_tipo_projeto = c.cd_tipo_projeto and a.cd_status_projeto = d.cd_status_projeto and a.cd_material_plastico *= e.cd_material_plastico and a.cd_pedido_venda = f.pedido and a.cd_pedido_venda = g.pedidoit and a.cd_item_pedido_venda = g.item and g.fatsmoit = 'N' and a.cd_projeto *= h.cd_projeto and h.cd_tipo_manifold is not null select a.*, b.nm_tipo_manifold as 'Manifold', b.sg_tipo_manifold as 'Sigla' from #tmpProjeto a, tipo_manifold b where a.cd_tipo_manifold *= b.cd_tipo_manifold order by a.cd_projeto desc
true
5b797d5d29e4e50d9d856ecc7e06820a032f62af
SQL
Ultraviolet1/Bamazon-app
/bamazon.sql
UTF-8
1,510
3.203125
3
[]
no_license
Drop database if exists bamazon; create database bamazon; use bamazon; create table products ( id int not null auto_increment, product_name varchar(200) not null, department_name varchar(200) not null, price int(25) not null, stock_quantity int(25) not null, primary key (id) ); insert into products(product_name, department_name, price, stock_quantity) value("Armchair", "Furniture", 300, 20); insert into products(product_name, department_name, price, stock_quantity) value("Sectional", "Furniture", 1700, 4); insert into products(product_name, department_name, price, stock_quantity) value("Dinning Table and chairs", "Furniture", 999, 6); insert into products(product_name, department_name, price, stock_quantity) value("Hammock", "Outdoor", 55, 5); insert into products(product_name, department_name, price, stock_quantity) value("Globe String Lights", "Outdoor", 30, 10); insert into products(product_name, department_name, price, stock_quantity) value("Birdbath", "Outdoor", 150, 5); insert into products(product_name, department_name, price, stock_quantity) value("Calvin Klein Perfume", "Luxury Beauty", 110, 15); insert into products(product_name, department_name, price, stock_quantity) value("Chi Flat Iron", "Luxury Beauty", 156, 7); insert into products(product_name, department_name, price, stock_quantity) value("Nail Polish", "Luxury Beauty", 15, 20); insert into products(product_name, department_name, price, stock_quantity) value("Fitness Tracker", "Sports", 65, 21); select * FROM products
true
eb6f13aa8d63de8f50851657aa6f0d630396e831
SQL
jeanramalalvarez/proyectos
/veterinaria/GestionMatrizSeconReload/src/main/java/com/gestionmatriz/script/sp_insertAsistencia.sql
UTF-8
590
2.53125
3
[]
no_license
delimiter $$ CREATE DEFINER=`root`@`localhost` PROCEDURE `sp_insertAsistencia`( IN asistencia int, IN idHorario int, IN idJornada int, IN idContrato int, IN fecha date, IN hora time, IN tipoMarcado int, IN estadoMarcado varchar(1) ) BEGIN INSERT INTO `matriz`.`tb_asistencia` (`int_asistencia`, `int_idHorario`, `int_idJornada`, `int_idContrato`, `dte_fecha`, `tm_hora`, `int_tipoMarcado`, `str_estadoMarcado`) VALUES ( asistencia, idHorario, idJornada, idContrato, fecha, hora, tipoMarcado, estadoMarcado ); END$$
true
0fee9826230b288ca7b926621b722bb0b2d2e1a1
SQL
theprincec/te-capstone
/java/database/temp.sql
UTF-8
1,167
3.5625
4
[]
no_license
START TRANSACTION; INSERT INTO doctors (doctor_id, user_id, first_name, last_name, office_id) VALUES (DEFAULT, 1000, 'James', 'Brown', 1000); UPDATE doctors SET office_id = 1 WHERE doctor_id = 1; START TRANSACTION; ROLLBACK; INSERT INTO offices (office_id, office_name, address, city, district, postal_code, phone, open_time, close_time, hourly_rate) VALUES (DEFAULT, 'GreenAlley', '123 Test street', 'TestCity', 'OH', '43026', '1232563696', '9:00:00', '5:00:00', 50); COMMIT; INSERT INTO doctors (doctor_id, user_id, first_name, last_name, office_id) VALUES (DEFAULT, 3, 'Tiffany', 'Williams', 2); SELECT doctor_id, first_name, last_name, doctors.office_id as office_id, office_name, address, city, district, postal_code, phone, open_time, close_time, hourly_rate FROM doctors JOIN offices ON doctors.office_id = offices.office_id; SELECT doctor_id, first_name, last_name, doctors.office_id as office_id, office_name, address, city, district, postal_code, phone, open_time, close_time, hourly_rate FROM doctors JOIN offices ON doctors.office_id = offices.office_id JOIN users ON users.user_id = doctors.user_id WHERE username = ?; SELECT * FROM doctors;
true
e4f1cdddba84f19a1a0c8bb7adbce0ce1f221201
SQL
ditor4ik/StudentsDB
/GIBDD.sql
UTF-8
4,145
3.484375
3
[]
no_license
CREATE TABLE Должности ( Наименование_должности VARCHAR NOT NULL, Оклад INT NOT NULL, Обязанности VARCHAR NOT NULL, Требования VARCHAR NOT NULL, Код_должности INT NOT NULL, PRIMARY KEY (Код_должности) ); CREATE TABLE Звания ( Наименование VARCHAR NOT NULL, Надбавка INT NOT NULL, Обязанности VARCHAR NOT NULL, Требования VARCHAR NOT NULL, Код_звания INT NOT NULL, PRIMARY KEY (Код_звания) ); CREATE TABLE Марки_Автомобилей ( Фирма_производитель VARCHAR NOT NULL, Страна_производитель VARCHAR NOT NULL, Наименование VARCHAR NOT NULL, Дата_окончания_производства DATE NOT NULL, Характеристики VARCHAR NOT NULL, Категория VARCHAR NOT NULL, Описание VARCHAR NOT NULL, Дата_начала_производства DATE NOT NULL, Код_марки INT NOT NULL, PRIMARY KEY (Код_марки) ); CREATE TABLE Сотрудники ( Код_сотрудника INT NOT NULL, ФИО VARCHAR NOT NULL, Возраст INT NOT NULL, Пол CHAR NOT NULL, Адрес VARCHAR NOT NULL, Телефон INT NOT NULL, Паспортные_данные VARCHAR NOT NULL, Код_должности INT NOT NULL, Код_звания INT NOT NULL, PRIMARY KEY (Код_сотрудника), FOREIGN KEY (Код_должности) REFERENCES Должности(Код_должности), FOREIGN KEY (Код_звания) REFERENCES Звания(Код_звания) ); CREATE TABLE Водители ( Код_водителя INT NOT NULL, ФИО VARCHAR NOT NULL, Дата_рождения DATE NOT NULL, Адрес VARCHAR NOT NULL, Паспортные_данные VARCHAR NOT NULL, Номер_водительского_удостоверения INT NOT NULL, Дата_выдачи_удостоверения DATE NOT NULL, Дата_окончания_удостоверения DATE NOT NULL, Категория_удостоверения VARCHAR NOT NULL, Описание VARCHAR NOT NULL, Код_сотрудника INT, PRIMARY KEY (Код_водителя), FOREIGN KEY (Код_сотрудника) REFERENCES Сотрудники(Код_сотрудника) ); CREATE TABLE Автомобили ( Регистрационный_номер INT NOT NULL, Номер_кузова INT NOT NULL, Номер_двигателя INT NOT NULL, Номер_техпаспорта INT NOT NULL, Дата_выпуска DATE NOT NULL, Дата_регистрации DATE NOT NULL, Цвет VARCHAR NOT NULL, Технический_осмотр VARCHAR NOT NULL, Дата_технического_осмотра DATE NOT NULL, Описание VARCHAR NOT NULL, Код_автомобиля INT NOT NULL, Код_марки INT NOT NULL, Код_сотрудника INT, Код_водителя INT, PRIMARY KEY (Код_автомобиля), FOREIGN KEY (Код_марки) REFERENCES Марки_Автомобилей(Код_марки), FOREIGN KEY (Код_сотрудника) REFERENCES Сотрудники(Код_сотрудника), FOREIGN KEY (Код_водителя) REFERENCES Водители(Код_водителя) ); CREATE TABLE Автомобили_в_угоне ( Дата_угона DATE NOT NULL, Дата_обращения DATE NOT NULL, Обстоятельства_угона VARCHAR NOT NULL, Отметка_об_нахождении VARCHAR NOT NULL, Дата_нахождения DATE NOT NULL, Код_сотрудника INT, Код_автомобиля INT NOT NULL, Код_водителя INT, FOREIGN KEY (Код_сотрудника) REFERENCES Сотрудники(Код_сотрудника), FOREIGN KEY (Код_автомобиля) REFERENCES Автомобили(Код_автомобиля), FOREIGN KEY (Код_водителя) REFERENCES Водители(Код_водителя) );
true
f8c77cd86a4fdc416b232343bd91521c12157f0c
SQL
aldvine/oracle_vpd
/createVPD_ADMIN18.sql
UTF-8
3,976
3.578125
4
[]
no_license
/** SCRIPT CREATION VPD */ /** CREATION POLICY POUR LA TABLE USERS */ BEGIN DBMS_RLS.DROP_POLICY ('ADMIN18','USERS','users_policy'); END; / BEGIN DBMS_RLS.ADD_POLICY ( object_schema => 'ADMIN18', object_name => 'USERS', policy_name => 'users_policy', function_schema => 'ADMIN18', policy_function => 'auth_users', statement_types => 'select,update' ); END; / /** FIN CREATION POLICY POUR LA TABLE USERS */ /** VPD SELECT ET UPDATE USERS **/ CREATE OR REPLACE FUNCTION auth_users(schema_var IN VARCHAR2,table_var IN VARCHAR2) RETURN VARCHAR2 IS role VARCHAR2(400); return_val VARCHAR2 (400); BEGIN role := SYS_CONTEXT('USER_CTX','role'); IF role = 'ADMIN18_ROLE_PARTICIPATE' OR role = 'ADMIN18_ROLE_ORGANIZER' THEN return_val := 'idUser=SYS_CONTEXT(''USER_CTX'',''idUser'')'; ELSE return_val := '1=1'; END IF; RETURN return_val; END; / COMMIT; /** FIN VPD SELECT ET UPDATE USERS **/ /** CREATION POLICY POUR LA TABLE EVENTS */ BEGIN DBMS_RLS.DROP_POLICY ('ADMIN18','EVENTS','events_policy'); END; / BEGIN DBMS_RLS.ADD_POLICY ( object_schema => 'ADMIN18', object_name => 'EVENTS', policy_name => 'events_policy', function_schema => 'ADMIN18', policy_function => 'auth_events', statement_types => 'select,insert,update,delete', update_check => TRUE ); END; / /** FIN CREATION POLICY POUR LA TABLE EVENTS */ /** VPD SELECT,INSERT,UPDATE,DELETE EVENTS **/ CREATE OR REPLACE FUNCTION auth_events(schema_var IN VARCHAR2,table_var IN VARCHAR2) RETURN VARCHAR2 IS role VARCHAR2(400); return_val VARCHAR2 (400); BEGIN role := SYS_CONTEXT('USER_CTX','role'); IF role = 'ADMIN18_ROLE_ORGANIZER' THEN return_val := 'idUser=SYS_CONTEXT(''USER_CTX'',''idUser'')'; ELSE return_val := '1=1'; END IF; RETURN return_val; END; / COMMIT; /** FIN VPD SELECT,INSERT,UPDATE,DELETE EVENTS **/ /** CREATION POLICY POUR LA TABLE PARTICIPATES */ BEGIN DBMS_RLS.DROP_POLICY ('ADMIN18','PARTICIPATES','participate_policy'); END; / BEGIN DBMS_RLS.DROP_POLICY ('ADMIN18','PARTICIPATES','participate_select_policy'); END; / BEGIN DBMS_RLS.ADD_POLICY ( object_schema => 'ADMIN18', object_name => 'PARTICIPATES', policy_name => 'participate_policy', function_schema => 'ADMIN18', policy_function => 'auth_participate', statement_types => 'select,insert,delete', update_check => TRUE ); END; / BEGIN DBMS_RLS.ADD_POLICY ( object_schema => 'ADMIN18', object_name => 'PARTICIPATES', policy_name => 'participate_select_policy', function_schema => 'ADMIN18', policy_function => 'auth_participate_select', statement_types => 'select', sec_relevant_cols => 'dateRegistre', sec_relevant_cols_opt => dbms_rls.ALL_ROWS ); END; / /** FIN CREATION POLICY POUR LA TABLE PARTICIPATES */ /** VPD SELECT,INSERT,DELETE PARTICIPATES **/ CREATE OR REPLACE FUNCTION auth_participate(schema_var IN VARCHAR2,table_var IN VARCHAR2) RETURN VARCHAR2 IS role VARCHAR2(400); return_val VARCHAR2 (400); BEGIN role := SYS_CONTEXT('USER_CTX','role'); IF role = 'ADMIN18_ROLE_PARTICIPATE' THEN return_val := 'idUser=SYS_CONTEXT(''USER_CTX'',''idUser'')'; ELSIF role = 'ADMIN18_ROLE_ORGANIZER' THEN return_val := 'idEvent IN (SELECT idEvent FROM ADMIN18.EVENTS WHERE idUser = SYS_CONTEXT(''USER_CTX'',''idUser''))'; ELSE return_val := '1=1'; END IF; RETURN return_val; END; / CREATE OR REPLACE FUNCTION auth_participate_select(schema_var IN VARCHAR2,table_var IN VARCHAR2) RETURN VARCHAR2 IS role VARCHAR2(400); return_val VARCHAR2 (400); BEGIN role := SYS_CONTEXT('USER_CTX','role'); IF role = 'ADMIN18_ROLE_COLLECTIVITY' THEN return_val := 'idUser=SYS_CONTEXT(''USER_CTX'',''idUser'')'; ELSE return_val := '1=1'; END IF; RETURN return_val; END; / COMMIT; /** FIN VPD SELECT,INSERT,DELETE PARTICIPATES **/
true
dfb048847f6d4c8d15deb131faea64aa6e1e2884
SQL
amri-hidayatulloh/rest-apis-payment-test
/db/base.sql
UTF-8
3,069
3.390625
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 4.9.1 -- https://www.phpmyadmin.net/ -- -- Host: localhost -- Generation Time: May 25, 2021 at 02:53 PM -- Server version: 10.4.8-MariaDB -- PHP Version: 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: `rest_payment` -- -- -------------------------------------------------------- -- -- Table structure for table `payment` -- CREATE TABLE `payment` ( `id_payment` int(11) NOT NULL, `invoice` varchar(32) NOT NULL, `merchant_id` varchar(32) NOT NULL, `item_name` varchar(155) NOT NULL, `amount` float NOT NULL, `payment_type` enum('virtual_account','credit_card') NOT NULL DEFAULT 'virtual_account', `customer_name` varchar(55) NOT NULL, `status` enum('pending','paid','failed') NOT NULL DEFAULT 'pending', `created_at` datetime NOT NULL, `modified_at` timestamp NOT NULL DEFAULT current_timestamp() ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4; -- -- Dumping data for table `payment` -- INSERT INTO `payment` (`id_payment`, `invoice`, `merchant_id`, `item_name`, `amount`, `payment_type`, `customer_name`, `status`, `created_at`, `modified_at`) VALUES (9, 'INV123-123', '10', 'SKU-A-123', 100000, 'virtual_account', 'Amri Hidayatulloh', 'paid', '2021-05-25 13:19:02', '2021-05-25 11:19:02'), (10, 'INV123-1234', '10', 'SKU-A-123', 100000, 'virtual_account', 'Amri Hidayatulloh', 'pending', '2021-05-25 13:25:05', '2021-05-25 11:25:05'); -- -------------------------------------------------------- -- -- Table structure for table `payment_logs` -- CREATE TABLE `payment_logs` ( `id_log` int(11) NOT NULL, `payment_id` int(11) NOT NULL, `additional_info` text NOT NULL, `status` enum('pending','paid','failed') NOT NULL, `created_at` datetime NOT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4; -- -- Dumping data for table `payment_logs` -- INSERT INTO `payment_logs` (`id_log`, `payment_id`, `additional_info`, `status`, `created_at`) VALUES (1, 10, '811781528813819', 'pending', '2021-05-25 13:25:05'), (2, 9, '', 'paid', '2021-05-25 12:51:00'); -- -- Indexes for dumped tables -- -- -- Indexes for table `payment` -- ALTER TABLE `payment` ADD PRIMARY KEY (`id_payment`); -- -- Indexes for table `payment_logs` -- ALTER TABLE `payment_logs` ADD PRIMARY KEY (`id_log`); -- -- AUTO_INCREMENT for dumped tables -- -- -- AUTO_INCREMENT for table `payment` -- ALTER TABLE `payment` MODIFY `id_payment` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=11; -- -- AUTO_INCREMENT for table `payment_logs` -- ALTER TABLE `payment_logs` MODIFY `id_log` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=3; COMMIT; /*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */; /*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */; /*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */;
true
39d2fa0faa227cbf44d37f5d22802db81a33cba6
SQL
open-infinity/cmt
/cloud/cloud-repository/src/test/resources/sql/cloud/H2/populate_tables.sql
UTF-8
6,384
2.796875
3
[]
no_license
insert into cluster_type_tbl (configuration_id, name, title, dependency, replicated, min_machines, max_machines, min_repl_machines, max_repl_machines ) values(1, 'ig', 'Identity Gateway', -1, false, 1, 12, null, null); insert into cluster_type_tbl (configuration_id, name, title, dependency, replicated, min_machines, max_machines, min_repl_machines, max_repl_machines ) values(1, 'bas', 'BAS Platform', -1, false, 1, 12, null, null); insert into cluster_type_tbl (configuration_id, name, title, dependency, replicated, min_machines, max_machines, min_repl_machines, max_repl_machines ) values(1, 'portal', 'Portal Platform', 5, false, 1, 12, null, null); insert into cluster_type_tbl (configuration_id, name, title, dependency, replicated, min_machines, max_machines, min_repl_machines, max_repl_machines ) values(1, 'mq', 'Service Platform', 5, false, 1, 12, null, null); insert into cluster_type_tbl (configuration_id, name, title, dependency, replicated, min_machines, max_machines, min_repl_machines, max_repl_machines ) values(1, 'rdbms', 'Relational Database Management', -1, false, 1, 1, null, null); insert into cluster_type_tbl (configuration_id, name, title, dependency, replicated, min_machines, max_machines, min_repl_machines, max_repl_machines ) values(1, 'nosql', 'NoSQL Repository', -1, true, 6, 12, 3, 10); insert into cluster_type_tbl (configuration_id, name, title, dependency, replicated, min_machines, max_machines, min_repl_machines, max_repl_machines ) values(1, 'bigdata', 'Big Data Repository', -1, true, 7, 12, 3, 10); insert into cluster_type_tbl (configuration_id, name, title, dependency, replicated, min_machines, max_machines, min_repl_machines, max_repl_machines ) values(1, 'ee', 'EE Platform', -1, false, 1, 12, null, null); insert into cluster_type_tbl (configuration_id, name, title, dependency, replicated, min_machines, max_machines, min_repl_machines, max_repl_machines ) values(1, 'ecm', 'Enterprise Content Management', -1, false, 1, 12, null, null); insert into cloud_provider_tbl (id, name) values(0, 'Amazon'); insert into cloud_provider_tbl (id, name) values(1, 'Eucalyptus'); insert into availability_zone_tbl (id, cloud_id, name) values(1, 0, 'aws-cluster01'); insert into availability_zone_tbl (id, cloud_id, name) values(2, 0, 'aws-cluster02'); insert into availability_zone_tbl (id, cloud_id, name) values(3, 1, 'dev-cluster01'); insert into machine_type_tbl values (0, 'Small', 'Cores: 1, RAM: 1GB, Disk: 10GB', 1, 512, 6); insert into machine_type_tbl values (1, 'Medium', 'Cores: 2, RAM: 2GB, Disk: 10GB', 1, 1024, 10); insert into machine_type_tbl values (2, 'Large', 'Cores: 4, RAM: 4GB, Disk: 10GB', 1, 2048, 10); insert into machine_type_tbl values (3, 'XLarge', 'Cores: 8, RAM: 8GB, Disk: 10GB', 1, 3072, 10); insert into machine_type_tbl values (4, 'XXLarge', 'Cores: 16, RAM: 16GB, Disk: 10GB', 1, 4096, 10); insert into cluster_type_tbl (configuration_id, name, title, dependency, replicated, min_machines, max_machines, min_repl_machines, max_repl_machines ) values(1, 'jbossportal', 'JBoss Portal Platform', -1, false, 1, 12, null, null); insert into cluster_type_tbl (configuration_id, name, title, dependency, replicated, min_machines, max_machines, min_repl_machines, max_repl_machines ) values(1, 'jbossservice', 'JBoss Service Platform', -1, false, 1, 12, null, null); -- ACCESS CONTROL RULES -- allow OPPYATOAS to use Eucalyptus only insert into acl_cloud_provider_tbl values ('OPPYATOAS', 1); -- allow TOAS to use all providers insert into acl_cloud_provider_tbl select 'TOAS', id from cloud_provider_tbl; -- allow Tieto Finland to use all providers insert into acl_cloud_provider_tbl select 'Tieto Finland', id from cloud_provider_tbl; -- allow OPPYATOAS to use all zones from euca insert into acl_availability_zone_tbl select 'OPPYATOAS', id from availability_zone_tbl where cloud_id = 1; -- allow TOAS to use all zones insert into acl_availability_zone_tbl select 'TOAS', id from availability_zone_tbl; -- allow Tieto Finland to use all zones insert into acl_availability_zone_tbl select 'Tieto Finland', id from availability_zone_tbl; -- OPPYATOAS can use only jbossportal and jbossservice insert into acl_cluster_type_tbl select 'OPPYATOAS', id from cluster_type_tbl where name in ('jbossportal', 'jbossservice'); -- allow all platforms except jbossportal and jbossservice insert into acl_cluster_type_tbl select 'TOAS', id from cluster_type_tbl where name not in ('jbossportal', 'jbossservice'); -- allow all platforms jbossportal and jbossservice insert into acl_cluster_type_tbl select 'Tieto Finland', id from cluster_type_tbl where name not in ('jbossportal', 'jbossservice'); insert into acl_machine_type_tbl select 'OPPYATOAS', id from machine_type_tbl; insert into acl_machine_type_tbl select 'TOAS', id from machine_type_tbl; insert into acl_machine_type_tbl select 'Tieto Finland', id from machine_type_tbl; -- Configuration template test data insert into cfg_template_element_tbl values(1, 2, 'bas', '1.2.2', 'Tomcat with TOAS goodies', NULL, 3, 8, 0, NULL, NULL); insert into cfg_template_tbl values (1, 'TEMPLATE_WEB_SIMPLE', 'Platforms suitable for simple web services'); insert into cfg_template_tbl values (2, 'TEMPLATE_WEB_IG', 'Platforms suitable for web services with authentication support'); insert into cfg_template_organization_tbl values (1, 1); insert into cfg_template_organization_tbl values (1, 2); insert into cfg_template_organization_tbl values (1, 3); insert into cfg_template_organization_tbl values (1, 4); -- SSP billing test data insert into usage_hours_tbl values(1, 10687, 1513, 5, 3532, 1, '2013-10-17 10:30:01'); insert into usage_hours_tbl values(2, 10687, 1513, 5, 3532, 3, '2013-10-17 10:35:01'); insert into machine_tbl (machine_id, machine_instance_id, project_id, machine_name, machine_dns_name, machine_key, active, machine_username, machine_running, machine_state, machine_cluster_id, machine_private_dns_name, machine_type, machine_configured, machine_last_update, machine_cloud_type, machine_extra_ebs_volume_id, machine_extra_ebs_volume_device, machine_extra_ebs_volume_size) values(3532, 'machine1', '0', 'BAS platform', '127.0.0.1', '0', '1', 'root', '1', 'running', '1', 'dns', 'loadbalancer', '3', '2013-10-01 13:03:47', '1', 'NULL', 'NULL', '0'); insert into cluster_tbl (cluster_id, cluster_type) values(1, '0');
true
4a84f6c0518cf08588026231ed0b4e7c40d26733
SQL
yalgun/Bil372_Odev2_6
/Bil372_Homework/sql_scripts/submissions_generator.sql
UTF-8
212
2.734375
3
[]
no_license
create table Submissions( SubmissionID int primary key, prevSubmissionID int, AuthenticationID int foreign key references [User](AuthenticationID), ConfID Varchar(20) foreign key references Conference(ConfID) )
true
54dd96353c5197dbbee66919d333a1e5d2c2c5a4
SQL
Aristiklever-R-Sousa/CRUD-Laravel-Project
/DER/doctoroffice.sql
UTF-8
3,409
3.46875
3
[]
no_license
-- MySQL Script generated by MySQL Workbench -- Tue May 4 17:26:23 2021 -- Model: New Model Version: 1.0 -- MySQL Workbench Forward Engineering SET @OLD_UNIQUE_CHECKS=@@UNIQUE_CHECKS, UNIQUE_CHECKS=0; SET @OLD_FOREIGN_KEY_CHECKS=@@FOREIGN_KEY_CHECKS, FOREIGN_KEY_CHECKS=0; SET @OLD_SQL_MODE=@@SQL_MODE, SQL_MODE='ONLY_FULL_GROUP_BY,STRICT_TRANS_TABLES,NO_ZERO_IN_DATE,NO_ZERO_DATE,ERROR_FOR_DIVISION_BY_ZERO,NO_ENGINE_SUBSTITUTION'; -- ----------------------------------------------------- -- Schema doctoroffce -- ----------------------------------------------------- DROP SCHEMA IF EXISTS `doctoroffce` ; -- ----------------------------------------------------- -- Schema doctoroffce -- ----------------------------------------------------- CREATE SCHEMA IF NOT EXISTS `doctoroffce` DEFAULT CHARACTER SET utf8 ; USE `doctoroffce` ; -- ----------------------------------------------------- -- Table `doctoroffce`.`users` -- ----------------------------------------------------- DROP TABLE IF EXISTS `doctoroffce`.`users` ; CREATE TABLE IF NOT EXISTS `doctoroffce`.`users` ( `id` INT NOT NULL AUTO_INCREMENT, `name` VARCHAR(45) NOT NULL, `email` VARCHAR(45) NOT NULL, `password` VARCHAR(256) NOT NULL, `created_at` DATETIME NOT NULL, `updated_at_` DATETIME NOT NULL, PRIMARY KEY (`id`)) ENGINE = InnoDB; -- ----------------------------------------------------- -- Table `doctoroffce`.`doctors` -- ----------------------------------------------------- DROP TABLE IF EXISTS `doctoroffce`.`doctors` ; CREATE TABLE IF NOT EXISTS `doctoroffce`.`doctors` ( `id` INT NOT NULL AUTO_INCREMENT, `name` VARCHAR(45) NOT NULL, `especiality` VARCHAR(45) NOT NULL, PRIMARY KEY (`id`)) ENGINE = InnoDB; -- ----------------------------------------------------- -- Table `doctoroffce`.`consults` -- ----------------------------------------------------- DROP TABLE IF EXISTS `doctoroffce`.`consults` ; CREATE TABLE IF NOT EXISTS `doctoroffce`.`consults` ( `id` INT NOT NULL AUTO_INCREMENT, `desc` LONGTEXT NOT NULL, `timeMarked` DATETIME NOT NULL, `created_at` DATETIME NOT NULL, `updated_at` DATETIME NOT NULL, `user` INT NOT NULL, `doctor` INT NOT NULL, PRIMARY KEY (`id`, `user`, `doctor`), INDEX `fk_consults_users1_idx` (`user` ASC) VISIBLE, INDEX `fk_consults_doctors1_idx` (`doctor` ASC) VISIBLE, CONSTRAINT `fk_consults_users1` FOREIGN KEY (`user`) REFERENCES `doctoroffce`.`users` (`id`) ON DELETE NO ACTION ON UPDATE NO ACTION, CONSTRAINT `fk_consults_doctors1` FOREIGN KEY (`doctor`) REFERENCES `doctoroffce`.`doctors` (`id`) ON DELETE NO ACTION ON UPDATE NO ACTION) ENGINE = InnoDB; SET SQL_MODE=@OLD_SQL_MODE; SET FOREIGN_KEY_CHECKS=@OLD_FOREIGN_KEY_CHECKS; SET UNIQUE_CHECKS=@OLD_UNIQUE_CHECKS; -- ----------------------------------------------------- -- Data for table `doctoroffce`.`doctors` -- ----------------------------------------------------- START TRANSACTION; USE `doctoroffce`; INSERT INTO `doctoroffce`.`doctors` (`id`, `name`, `especiality`) VALUES (1, 'Dr. Pedro', 'Dermatologista'); INSERT INTO `doctoroffce`.`doctors` (`id`, `name`, `especiality`) VALUES (2, 'Dra. Fabiana', 'Pediatra'); INSERT INTO `doctoroffce`.`doctors` (`id`, `name`, `especiality`) VALUES (3, 'Dra. Gabriela', 'Cardilogista'); INSERT INTO `doctoroffce`.`doctors` (`id`, `name`, `especiality`) VALUES (4, 'Dr. Alceu', 'Ortopedista'); COMMIT;
true
7ca814333569840075a11a72c6b586b8514d7b40
SQL
hackeziah/EFB_CodeIgiter
/EFB_accounting/db_efb.sql
UTF-8
14,602
3
3
[ "LicenseRef-scancode-unknown-license-reference", "MIT" ]
permissive
-- phpMyAdmin SQL Dump -- version 4.6.5.2 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Generation Time: Oct 22, 2017 at 11:58 PM -- Server version: 10.1.21-MariaDB -- PHP Version: 5.6.30 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: `db_efb` -- -- -------------------------------------------------------- -- -- Table structure for table `sample` -- CREATE TABLE `sample` ( `emp_no` int(11) NOT NULL, `first_name` varchar(22) NOT NULL, `last_name` varchar(29) NOT NULL ) ENGINE=InnoDB DEFAULT CHARSET=latin1; -- -- Dumping data for table `sample` -- INSERT INTO `sample` (`emp_no`, `first_name`, `last_name`) VALUES (1, 'dgsdfg', 'sdfgsdfg'); -- -------------------------------------------------------- -- -- Table structure for table `tbl_attendance` -- CREATE TABLE `tbl_attendance` ( `attId` int(11) NOT NULL, `attEmpID` varchar(255) NOT NULL DEFAULT '', `attDate` date NOT NULL, `attonTime` varchar(255) NOT NULL DEFAULT '', `attoffTime` varchar(255) NOT NULL DEFAULT '', `created_date` varchar(255) NOT NULL DEFAULT '', `status` varchar(255) NOT NULL DEFAULT '0' ) ENGINE=InnoDB DEFAULT CHARSET=latin1; -- -- Dumping data for table `tbl_attendance` -- INSERT INTO `tbl_attendance` (`attId`, `attEmpID`, `attDate`, `attonTime`, `attoffTime`, `created_date`, `status`) VALUES (1, '3', '2017-08-22', '3:15 PM', '6:15 PM', '2017-08-27 10:09:24', '0'), (2, '4', '2017-08-28', '8:45 PM', '10:45 PM', '2017-08-28 17:13:36', '0'), (3, '3', '2017-08-04', '10:15 PM', '12:15 AM', '2017-08-28 17:13:55', '0'), (4, '5', '2017-10-13', 'dsf', 'sdfsf', '', '0'); -- -------------------------------------------------------- -- -- Table structure for table `tbl_credvou` -- CREATE TABLE `tbl_credvou` ( `voucher_name` varchar(100) NOT NULL, `date` date NOT NULL, `credit_account` varchar(100) NOT NULL, `sno` int(100) NOT NULL, `code` varchar(100) NOT NULL, `name_of_ac` varchar(100) NOT NULL, `amount` int(100) NOT NULL, `narration` varchar(50) NOT NULL, `total` int(100) NOT NULL, `authorize_by` varchar(20) NOT NULL, `prepared_by` varchar(20) NOT NULL ) ENGINE=InnoDB DEFAULT CHARSET=latin1; -- -- Dumping data for table `tbl_credvou` -- INSERT INTO `tbl_credvou` (`voucher_name`, `date`, `credit_account`, `sno`, `code`, `name_of_ac`, `amount`, `narration`, `total`, `authorize_by`, `prepared_by`) VALUES ('nana', '2017-10-18', '2332', 322, 'd23', 'fadsf', 333, 'dito', 322, 'ddddddddddd', 'hhhhh'), ('kaksdfadf', '2001-11-11', 'dsafasdf', 322, 'sdffdg', 'adfdf', 333, 'asdfsf', 33, 'asdfasd', 'dsafasdfasdf'); -- -------------------------------------------------------- -- -- Table structure for table `tbl_debvou` -- CREATE TABLE `tbl_debvou` ( `voucher_name` varchar(100) NOT NULL, `date` date NOT NULL, `debit_account` varchar(100) NOT NULL, `sno` int(100) NOT NULL, `code` varchar(100) NOT NULL, `name_of_ac` varchar(100) NOT NULL, `amount` int(100) NOT NULL, `narration` varchar(50) NOT NULL, `total` int(100) NOT NULL, `authorize_by` varchar(100) NOT NULL, `prepared_by` varchar(100) NOT NULL ) ENGINE=InnoDB DEFAULT CHARSET=latin1; -- -- Dumping data for table `tbl_debvou` -- INSERT INTO `tbl_debvou` (`voucher_name`, `date`, `debit_account`, `sno`, `code`, `name_of_ac`, `amount`, `narration`, `total`, `authorize_by`, `prepared_by`) VALUES ('12345', '0000-00-00', '2345', 333, 'vgg', 'ttggg', 222, 'jnjnjn', 222, 'kevin1', 'kevin3'), ('hahaha', '0000-00-00', 'kdk', 2323, '323', '4343', 3223, 'dfsdf', 323, 'ksdfsdf', 'sfsdfsdf'); -- -------------------------------------------------------- -- -- Table structure for table `tbl_employee` -- CREATE TABLE `tbl_employee` ( `empID` int(11) NOT NULL, `empFirstName` varchar(255) NOT NULL DEFAULT '', `empLastName` varchar(255) NOT NULL DEFAULT '', `empNO` varchar(255) NOT NULL DEFAULT '', `empemail` varchar(255) NOT NULL DEFAULT '', `empMobile` varchar(255) NOT NULL DEFAULT '', `empbdate` date NOT NULL, `empaddress` varchar(255) NOT NULL DEFAULT '', `empshifID_FK` varchar(255) NOT NULL DEFAULT '', `created_date` datetime DEFAULT CURRENT_TIMESTAMP, `status` varchar(255) NOT NULL DEFAULT '0' ) ENGINE=InnoDB DEFAULT CHARSET=latin1; -- -- Dumping data for table `tbl_employee` -- INSERT INTO `tbl_employee` (`empID`, `empFirstName`, `empLastName`, `empNO`, `empemail`, `empMobile`, `empbdate`, `empaddress`, `empshifID_FK`, `created_date`, `status`) VALUES (5, 'KEvin paul', 'lamadrid', '1', 'lamadridkevin@gmail.com', '3233223', '2017-09-19', 'asdf', 'adf', '2017-09-30 16:17:08', 'okay na man'), (6, 'Kevin papappa', 'asdfasd', '12', 'adfad@gmail.com', '3232', '0000-00-00', 'adsfasdf', '', '2017-10-01 07:31:11', '0'), (7, 'Kevin papappa', 'asdfasd', '12', 'adfad@gmail.com', '3232', '0000-00-00', 'adsfasdf', '', '2017-10-01 07:31:20', '0'), (8, 'Kevin pad', 'asdfasdf', '23', 'adsf@gmail.com', '32322', '0000-00-00', 'fsdfsdf', '', '2017-10-01 07:46:01', '0'), (9, 'va', 'asdfasdf', '23', 'adsf@gmail.com', '32322', '0000-00-00', 'fsdfsdf', '', '2017-10-01 07:47:20', '0'), (10, 'kakak', 'dasf', '323', 'allala@gamil.com', '323', '0000-00-00', 'asdfa', '', '2017-10-01 07:51:04', '0'), (11, 'Toni', 'koko', '33', 'lal@gmail.com', '323234', '1999-12-12', 'adsfaldsfasdf', '', '2017-10-05 04:51:27', '0'); -- -------------------------------------------------------- -- -- Table structure for table `tbl_employees` -- CREATE TABLE `tbl_employees` ( `id` int(11) NOT NULL, `employee_name` varchar(50) NOT NULL, `address` varchar(100) NOT NULL, `created_at` date NOT NULL, `updated_at` date NOT NULL ) ENGINE=InnoDB DEFAULT CHARSET=latin1; -- -- Dumping data for table `tbl_employees` -- INSERT INTO `tbl_employees` (`id`, `employee_name`, `address`, `created_at`, `updated_at`) VALUES (4, 'Jonard', 'ffggfg', '2017-09-22', '2017-09-22'), (5, 'kevin', 'asdfasdfasdf', '2017-09-23', '0000-00-00'), (6, 'dfgdfg', 'sdfgsdfgsdfg', '2017-09-23', '0000-00-00'); -- -------------------------------------------------------- -- -- Table structure for table `tbl_holiday` -- CREATE TABLE `tbl_holiday` ( `holID` int(11) NOT NULL, `holName` varchar(255) NOT NULL DEFAULT '', `holDate` date NOT NULL, `holDescription` text NOT NULL, `created_date` datetime DEFAULT CURRENT_TIMESTAMP, `status` varchar(255) NOT NULL DEFAULT '0' ) ENGINE=InnoDB DEFAULT CHARSET=latin1; -- -- Dumping data for table `tbl_holiday` -- INSERT INTO `tbl_holiday` (`holID`, `holName`, `holDate`, `holDescription`, `created_date`, `status`) VALUES (1, 'Diwali', '2017-08-27', 'not avaialble', '2017-08-27 10:10:00', '0'), (2, 'Utarayan', '2017-08-30', 'not', '2017-08-28 17:14:28', '0'); -- -------------------------------------------------------- -- -- Table structure for table `tbl_salary` -- CREATE TABLE `tbl_salary` ( `salID` int(11) NOT NULL, `salEmpID` varchar(255) NOT NULL DEFAULT '', `salBeginDate` date NOT NULL, `salBasicSalary` varchar(255) NOT NULL DEFAULT '', `salGrade` varchar(255) NOT NULL DEFAULT '', `created_date` datetime DEFAULT CURRENT_TIMESTAMP, `status` varchar(255) NOT NULL DEFAULT '0' ) ENGINE=InnoDB DEFAULT CHARSET=latin1; -- -- Dumping data for table `tbl_salary` -- INSERT INTO `tbl_salary` (`salID`, `salEmpID`, `salBeginDate`, `salBasicSalary`, `salGrade`, `created_date`, `status`) VALUES (1, '1', '2017-08-01', '2000', '5000', '2017-08-27 10:09:44', '0'), (2, '4', '2017-08-30', '2000', '1000', '2017-08-28 17:14:13', '0'), (3, '5', '2017-10-26', '33', '33', '2017-10-01 11:57:15', '0'); -- -------------------------------------------------------- -- -- Table structure for table `tbl_shift_allocation` -- CREATE TABLE `tbl_shift_allocation` ( `aloID` int(11) NOT NULL, `aloEmpID` varchar(255) NOT NULL DEFAULT '', `aloDay` date NOT NULL, `aloTimeIn` varchar(255) NOT NULL DEFAULT '', `aloTimeOut` varchar(255) NOT NULL DEFAULT '', `created_date` datetime DEFAULT CURRENT_TIMESTAMP, `status` varchar(255) NOT NULL DEFAULT '0' ) ENGINE=InnoDB DEFAULT CHARSET=latin1; -- -- Dumping data for table `tbl_shift_allocation` -- INSERT INTO `tbl_shift_allocation` (`aloID`, `aloEmpID`, `aloDay`, `aloTimeIn`, `aloTimeOut`, `created_date`, `status`) VALUES (1, '2', '2017-08-02', '1:45 PM', '4:00 PM', '2017-08-27 10:05:02', '0'), (2, '3', '2017-08-27', '1:45 PM', '4:45 PM', '2017-08-27 10:07:44', '0'), (3, '1', '2017-08-30', '8:45 PM', '10:45 PM', '2017-08-28 17:04:51', '0'), (4, '5', '2017-08-26', '8:45 PM', '12:00 AM', '2017-08-28 17:05:13', '0'); -- -------------------------------------------------------- -- -- Table structure for table `tbl_shift_attendance` -- CREATE TABLE `tbl_shift_attendance` ( `aloID` int(11) NOT NULL, `aloEmpID` varchar(255) NOT NULL DEFAULT '', `aloDay` date NOT NULL, `aloTimeIn` varchar(255) NOT NULL DEFAULT '', `aloTimeOut` varchar(255) NOT NULL DEFAULT '', `created_date` datetime DEFAULT CURRENT_TIMESTAMP, `status` varchar(255) NOT NULL DEFAULT '0' ) ENGINE=InnoDB DEFAULT CHARSET=latin1; -- -- Dumping data for table `tbl_shift_attendance` -- INSERT INTO `tbl_shift_attendance` (`aloID`, `aloEmpID`, `aloDay`, `aloTimeIn`, `aloTimeOut`, `created_date`, `status`) VALUES (1, '1', '2017-08-01', '1:45 PM', '12:15 AM', '2017-08-27 10:08:16', '0'), (2, '3', '2017-08-27', '1:45 PM', '3:15 PM', '2017-08-27 10:08:42', '0'), (3, '5', '2017-08-28', '8:45 PM', '10:30 PM', '2017-08-28 17:12:07', '0'), (5, '5', '2017-10-27', '12', '12', '2017-10-01 13:03:17', '0'); -- -------------------------------------------------------- -- -- Table structure for table `tbl_trans` -- CREATE TABLE `tbl_trans` ( `voucher_name` varchar(100) NOT NULL, `date` date NOT NULL, `credit_account` varchar(100) NOT NULL, `debit_account` varchar(100) NOT NULL, `amount` int(100) NOT NULL, `narration` varchar(50) NOT NULL, `authorize_by` varchar(20) NOT NULL, `prepared_by` varchar(20) NOT NULL ) ENGINE=InnoDB DEFAULT CHARSET=latin1; -- -- Dumping data for table `tbl_trans` -- INSERT INTO `tbl_trans` (`voucher_name`, `date`, `credit_account`, `debit_account`, `amount`, `narration`, `authorize_by`, `prepared_by`) VALUES ('2323', '0000-00-00', 'dfd', 'asdfa', 34343, 'dfgdfg', 'kevin1', 'kevin3'), ('32323', '0000-00-00', '2323', '21212', 2323, 'sdfdf', 'asdfadf', 'sdfasdf'), ('32323', '0000-00-00', '2323', '21212', 2323, 'CCCCCCCCCCCCC', 'asdfadf', 'sdfasdf'), ('dfds', '0000-00-00', 'ddd', 'dd', 2, 'ddd', 'fff', '1111'), ('dfds', '0000-00-00', 'ddd', 'dd', 2, 'ddd', 'fff', '1111'), ('232', '0000-00-00', 'adfasdf', 'adfas', 323, 'aadf', 'adsfsd', 'asdfasdf'); -- -------------------------------------------------------- -- -- Table structure for table `tbl_users` -- CREATE TABLE `tbl_users` ( `username` varchar(20) NOT NULL, `password` varchar(20) NOT NULL ) ENGINE=InnoDB DEFAULT CHARSET=latin1; -- -- Dumping data for table `tbl_users` -- INSERT INTO `tbl_users` (`username`, `password`) VALUES ('admin', 'admin'); -- -------------------------------------------------------- -- -- Table structure for table `tb_user` -- CREATE TABLE `tb_user` ( `id` int(11) NOT NULL, `name` varchar(255) NOT NULL, `email` varchar(255) NOT NULL, `username` varchar(255) NOT NULL, `phone` varchar(255) NOT NULL, `password` varchar(255) NOT NULL, `is_admin` varchar(255) NOT NULL DEFAULT '0', `date` datetime NOT NULL, `status` varchar(255) NOT NULL DEFAULT '0' ) ENGINE=InnoDB DEFAULT CHARSET=latin1; -- -- Dumping data for table `tb_user` -- INSERT INTO `tb_user` (`id`, `name`, `email`, `username`, `phone`, `password`, `is_admin`, `date`, `status`) VALUES (1, 'kevin paul', 'admin@bladephp.co', 'user', '9979133538', '123456', '1', '2017-04-29 03:07:07', '0'), (2, 'mely', 'diamond@gmail.com', 'user', '9979133538', '123456', '0', '2017-04-29 13:41:07', '1'), (3, 'paul', 'mitul@gmail.com', 'uer', '9979133538', '123456', '0', '2017-04-29 14:10:53', '0'), (4, 'anthony', 'kevindsfadf@gmail.com', 'admin', '9979133538', 'admin', '0', '2017-04-29 14:11:40', '0'); -- -- Indexes for dumped tables -- -- -- Indexes for table `sample` -- ALTER TABLE `sample` ADD PRIMARY KEY (`emp_no`); -- -- Indexes for table `tbl_attendance` -- ALTER TABLE `tbl_attendance` ADD PRIMARY KEY (`attId`); -- -- Indexes for table `tbl_employee` -- ALTER TABLE `tbl_employee` ADD PRIMARY KEY (`empID`); -- -- Indexes for table `tbl_employees` -- ALTER TABLE `tbl_employees` ADD PRIMARY KEY (`id`); -- -- Indexes for table `tbl_holiday` -- ALTER TABLE `tbl_holiday` ADD PRIMARY KEY (`holID`); -- -- Indexes for table `tbl_salary` -- ALTER TABLE `tbl_salary` ADD PRIMARY KEY (`salID`); -- -- Indexes for table `tbl_shift_allocation` -- ALTER TABLE `tbl_shift_allocation` ADD PRIMARY KEY (`aloID`); -- -- Indexes for table `tbl_shift_attendance` -- ALTER TABLE `tbl_shift_attendance` ADD PRIMARY KEY (`aloID`); -- -- Indexes for table `tb_user` -- ALTER TABLE `tb_user` ADD PRIMARY KEY (`id`); -- -- AUTO_INCREMENT for dumped tables -- -- -- AUTO_INCREMENT for table `sample` -- ALTER TABLE `sample` MODIFY `emp_no` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=2; -- -- AUTO_INCREMENT for table `tbl_attendance` -- ALTER TABLE `tbl_attendance` MODIFY `attId` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=5; -- -- AUTO_INCREMENT for table `tbl_employee` -- ALTER TABLE `tbl_employee` MODIFY `empID` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=12; -- -- AUTO_INCREMENT for table `tbl_employees` -- ALTER TABLE `tbl_employees` MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=7; -- -- AUTO_INCREMENT for table `tbl_holiday` -- ALTER TABLE `tbl_holiday` MODIFY `holID` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=3; -- -- AUTO_INCREMENT for table `tbl_salary` -- ALTER TABLE `tbl_salary` MODIFY `salID` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=4; -- -- AUTO_INCREMENT for table `tbl_shift_allocation` -- ALTER TABLE `tbl_shift_allocation` MODIFY `aloID` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=5; -- -- AUTO_INCREMENT for table `tbl_shift_attendance` -- ALTER TABLE `tbl_shift_attendance` MODIFY `aloID` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=6; -- -- AUTO_INCREMENT for table `tb_user` -- ALTER TABLE `tb_user` MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=5; /*!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
4a401201252929b4ee567cfc88ce7386809aecaa
SQL
aadityatadas/nabhitsolutions
/csv/CI CSV Import/ciaddressimport.sql
UTF-8
2,360
2.859375
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 3.5.1 -- http://www.phpmyadmin.net -- -- Host: localhost -- Generation Time: Jan 29, 2014 at 06:52 PM -- Server version: 5.5.24-log -- PHP Version: 5.3.13 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: `ciaddressimport` -- -- -------------------------------------------------------- -- -- Table structure for table `addressbook` -- CREATE TABLE IF NOT EXISTS `addressbook` ( `id` int(11) NOT NULL AUTO_INCREMENT, `firstname` varchar(255) DEFAULT NULL, `lastname` varchar(255) DEFAULT NULL, `phone` varchar(100) DEFAULT NULL, `email` varchar(255) DEFAULT NULL, PRIMARY KEY (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=latin1 AUTO_INCREMENT=21 ; -- -- Dumping data for table `addressbook` -- INSERT INTO `addressbook` (`id`, `firstname`, `lastname`, `phone`, `email`) VALUES (1, 'Veda', 'Zane', '1-822-111-8722', 'tristique.neque@imperdietullamcorperDuis.ca'), (2, 'Debra', 'Barclay', '1-834-403-5169', 'eu@Donecfeugiatmetus.com'), (3, 'Cameran', 'Ethan', '1-424-207-4344', 'sed.tortor@Suspendissealiquetmolestie.net'), (4, 'Bertha', 'Uriah', '1-213-739-6455', 'feugiat.tellus@Curabiturconsequatlectus.com'), (5, 'Adrian', 'Geoffrey', '1-401-946-3860', 'arcu@id.ca'), (6, 'Hammett', 'Keaton', '1-365-910-5682', 'Donec.feugiat@pharetra.ca'), (7, 'Gay', 'Brock', '1-577-863-9970', 'Sed@laoreetlibero.net'), (8, 'Candace', 'Felix', '1-624-293-4547', 'velit.eget@leo.org'), (9, 'Theodore', 'Ezra', '1-357-355-3798', 'suscipit.est@nullamagnamalesuada.com'), (10, 'Dalton', 'Dennis', '1-515-960-7108', 'hendrerit.neque.In@nonummyipsumnon.net'), (11, 'Eden', 'Rashad', '1-173-452-1081', 'aliquet.magna.a@nullaat.ca'), (12, 'Keely', 'Palmer', '1-527-238-0028', 'nisi@elit.edu'), (13, 'Summer', 'Donovan', '1-535-643-7231', 'nec.ante@euelit.org'), (14, 'Sierra', 'Zephania', '1-628-730-5416', 'iaculis.enim@ligulatortor.net'), (15, 'Stephen', 'Derek', '1-425-259-2099', 'ultricies@posuereatvelit.co.uk'), (16, 'Zelda', 'Amery', '1-721-373-8263', 'dignissim@ornare.net'), (17, 'Jenna', 'Troy', '1-909-208-1319', 'aliquet.vel@Crasdolordolor.co.uk'), (18, 'Christian', 'Preston', '1-290-927-2204', 'Duis.volutpat@actellusSuspendisse.net'), (19, 'Yuli', 'Graham', '1-102-244-0059', 'elementum.dui@vehicula.ca'), (20, 'Cailin', 'Jason', '1-532-863-2211', 'ipsum.dolor.sit@odio.co.uk'); /*!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
9b64465bb21455ae9a8b06cee7438ce588c39c0f
SQL
mailliam/ITK-I244
/Kodused ülesanded/11. nädal/ylesanne.sql
UTF-8
656
3.171875
3
[]
no_license
CREATE TABLE mkeerus_loomaaed ( id integer PRIMARY KEY auto_increment, nimi text, vanus integer, liik text, puur integer ); INSERT INTO mkeerus_loomaaed (nimi, vanus, liik, puur) VALUES ('Kunn', 23, 'lõvi', 2), ('Jänn', 6, 'jänes', 1), ('Repsu', 5, 'rebane', 3), ('Hundu', 12, 'hunt', 3), ('Reelika', 20, 'lõvi', 2), ('Bambi', 7, 'metskits', 1), ('Sarvik', 14, 'põder', 1); SELECT puur, nimi FROM mkeerus_loomaaed WHERE puur=1; SELECT MIN(vanus) AS 'Noorim', MAX(vanus) AS 'Vanim' FROM mkeerus_loomaaed; SELECT puur, COUNT(puur) AS 'Loomade arv' FROM mkeerus_loomaaed GROUP BY puur; UPDATE mkeerus_loomaaed SET vanus=vanus+1;
true
95abf1e280e24b1b1270afca2da5a5a51befe782
SQL
joemontibello/iii-sql-queries
/spanlangfilms.sql
UTF-8
844
3.78125
4
[]
no_license
SELECT record_num FROM (SELECT distinct 'b' || bib_view.record_num || 'a' AS record_num, bib_view.cataloging_date_gmt FROM sierra_view.bib_view, sierra_view.control_field, sierra_view.bib_record_item_record_link, sierra_view.item_record WHERE bib_view.bcode3 = E'-' --bib status AND bib_view.id = control_field.record_id AND bib_view.language_code = E'spa' AND ((control_field.control_num = 6 AND control_field.p05 || control_field.p06 = E'g') OR (bib_view.bcode1 = E'g')) --mat type or "Project" AND bib_view.cataloging_date_gmt IS DISTINCT FROM NULL AND CAST (bib_view.cataloging_date_gmt AS DATE) < CURRENT_DATE - INTERVAL '1 day' AND item_record.id = bib_record_item_record_link.item_record_id AND bib_view.id = bib_record_item_record_link.bib_record_id ORDER BY bib_view.cataloging_date_gmt desc, record_num desc limit 200 ) AS foo
true
7596bdf1abe0b3778f859ada78d00ddb2cf55c44
SQL
abrehamgezahegn/graphql-experss
/prisma/migrations/20210813211356_added_shopify_session/migration.sql
UTF-8
195
2.703125
3
[]
no_license
-- CreateTable CREATE TABLE "store" ( "id" TEXT NOT NULL, "shop" TEXT NOT NULL, "accessToken" TEXT NOT NULL ); -- CreateIndex CREATE UNIQUE INDEX "store.id_unique" ON "store"("id");
true
4a6761d7676cfd8c5f18083bbec5bbe2bba225e5
SQL
acmlmboard/acmlmboard-2
/sql/old/updates/spritecateg.sql
UTF-8
499
3.0625
3
[]
no_license
#Creates and populates a table used to show franchise names on sprites. #Date: 1/27/2014 CREATE TABLE `spritecateg` ( `id` INT NOT NULL, `name` VARCHAR( 32 ) NOT NULL ) ENGINE = MYISAM ; INSERT INTO `spritecateg` (`id`, `name`) VALUES ('0', 'Miscellaneous/Unclassified'), ('1', 'Super Mario Brothers Series'), ('2', 'Legend of Zelda Series'), ('3', 'Metroid Series'), ('4', 'Pok&#233;mon Series'), ('5', 'Kirby Series'), ('6', 'Legend of the Evil PLACEHOLDER'), ('7', 'Sonic the Hedgehog Series');
true
6744ff55423880c63ecba444e315936a9a78219b
SQL
ihe-brasil/gazelle
/gazelle-tm/gazelle-tm-ear/src/main/scripts/itb_scripts/[update]-tf_hl7_message_profile.sql
UTF-8
7,919
2.96875
3
[]
no_license
/* This update script updates the profile_content column in database table tf_hl7_message_profile with the */ /* contents of the gazelle profile XML file(s). The script requires that the profile XML files must be present */ /* in the gazelle_hl7_profiles folder of the postgres data directory. For example, in windows, the data directory */ /* is C:\Program Files\PostgreSQL\9.1\data. */ /* PIX Feed (Patient Admit) request */ /* load profile XML for domain = 'ITI', actor = PAT_IDENTITY_SRC, transaction = 'ITI-8', message_type = 'ADT_A01' and hl7_version = '2.3.1' */ UPDATE tf_hl7_message_profile profile SET profile_content=(SELECT f_readfile('gazelle_hl7_profiles/ADT_A01.xml')) WHERE profile.domain_id = 2 and profile.actor_id = 45 and profile.transaction_id = 50 and profile.message_type = 'ADT_A01' and profile.hl7_version = '2.3.1'; /* PIX Feed (Patient Register) request */ /* load profile XML for domain = 'ITI', actor = PAT_IDENTITY_SRC, transaction = 'ITI-8', message_type = 'ADT_A04' and hl7_version = '2.3.1' */ UPDATE tf_hl7_message_profile profile SET profile_content=(SELECT f_readfile('gazelle_hl7_profiles/ADT_A04.xml')) WHERE profile.domain_id = 2 and profile.actor_id = 45 and profile.transaction_id = 50 and profile.message_type = 'ADT_A04' and profile.hl7_version = '2.3.1'; /* PIX Feed (Patient Pre-admit) request */ /* load profile XML for domain = 'ITI', actor = PAT_IDENTITY_SRC, transaction = 'ITI-8', message_type = 'ADT_A05' and hl7_version = '2.3.1' */ UPDATE tf_hl7_message_profile profile SET profile_content=(SELECT f_readfile('gazelle_hl7_profiles/ADT_A05.xml')) WHERE profile.domain_id = 2 and profile.actor_id = 45 and profile.transaction_id = 50 and profile.message_type = 'ADT_A05' and profile.hl7_version = '2.3.1'; /* PIX Feed (Patient Update) request */ /* load profile XML for domain = 'ITI', actor = PAT_IDENTITY_SRC, transaction = 'ITI-8', message_type = 'ADT_A08' and hl7_version = '2.3.1' */ UPDATE tf_hl7_message_profile profile SET profile_content=(SELECT f_readfile('gazelle_hl7_profiles/ADT_A08.xml')) WHERE profile.domain_id = 2 and profile.actor_id = 45 and profile.transaction_id = 50 and profile.message_type = 'ADT_A08' and profile.hl7_version = '2.3.1'; /* PIX Feed (Patient Merge) request */ /* load profile XML for domain = 'ITI', actor = PAT_IDENTITY_SRC, transaction = 'ITI-8', message_type = 'ADT_A40' and hl7_version = '2.3.1' */ UPDATE tf_hl7_message_profile profile SET profile_content=(SELECT f_readfile('gazelle_hl7_profiles/ADT_A40.xml')) WHERE profile.domain_id = 2 and profile.actor_id = 45 and profile.transaction_id = 50 and profile.message_type = 'ADT_A40' and profile.hl7_version = '2.3.1'; /* PIX Feed (Patient Admit) acknowledgement */ /* load profile XML for domain = 'ITI', actor = PAT_IDENTITY_X_REF_MGR, transaction = 'ITI-8', message_type = 'ACK_A01' and hl7_version = '2.3.1' */ UPDATE tf_hl7_message_profile profile SET profile_content=(SELECT f_readfile('gazelle_hl7_profiles/ACK_A01.xml')) WHERE profile.domain_id = 2 and profile.actor_id = 27 and profile.transaction_id = 50 and profile.message_type = 'ACK_A01' and profile.hl7_version = '2.3.1'; /* PIX Feed (Patient Register) acknowledgement */ /* load profile XML for domain = 'ITI', actor = PAT_IDENTITY_X_REF_MGR, transaction = 'ITI-8', message_type = 'ACK_A04' and hl7_version = '2.3.1' */ UPDATE tf_hl7_message_profile profile SET profile_content=(SELECT f_readfile('gazelle_hl7_profiles/ACK_A04.xml')) WHERE profile.domain_id = 2 and profile.actor_id = 27 and profile.transaction_id = 50 and profile.message_type = 'ACK_A04' and profile.hl7_version = '2.3.1'; /* PIX Feed (Patient Pre-admit) acknowledgement */ /* load profile XML for domain = 'ITI', actor = PAT_IDENTITY_X_REF_MGR, transaction = 'ITI-8', message_type = 'ACK_A05' and hl7_version = '2.3.1' */ UPDATE tf_hl7_message_profile profile SET profile_content=(SELECT f_readfile('gazelle_hl7_profiles/ACK_A05.xml')) WHERE profile.domain_id = 2 and profile.actor_id = 27 and profile.transaction_id = 50 and profile.message_type = 'ACK_A05' and profile.hl7_version = '2.3.1'; /* PIX Feed (Patient Update) acknowledgement */ /* load profile XML for domain = 'ITI', actor = PAT_IDENTITY_X_REF_MGR, transaction = 'ITI-8', message_type = 'ACK_A08' and hl7_version = '2.3.1' */ UPDATE tf_hl7_message_profile profile SET profile_content=(SELECT f_readfile('gazelle_hl7_profiles/ACK_A08.xml')) WHERE profile.domain_id = 2 and profile.actor_id = 27 and profile.transaction_id = 50 and profile.message_type = 'ACK_A08' and profile.hl7_version = '2.3.1'; /* PIX Feed (Patient Merge) acknowledgement */ /* load profile XML for domain = 'ITI', actor = PAT_IDENTITY_X_REF_MGR, transaction = 'ITI-8', message_type = 'ACK_A40' and hl7_version = '2.3.1' */ UPDATE tf_hl7_message_profile profile SET profile_content=(SELECT f_readfile('gazelle_hl7_profiles/ACK_A40.xml')) WHERE profile.domain_id = 2 and profile.actor_id = 27 and profile.transaction_id = 50 and profile.message_type = 'ACK_A40' and profile.hl7_version = '2.3.1'; /* PIX Update request */ /* load profile XML for domain = 'ITI', actor = PAT_IDENTITY_X_REF_MGR, transaction = 'ITI-10', message_type = 'ADT_A31' and hl7_version = '2.5' */ UPDATE tf_hl7_message_profile profile SET profile_content=(SELECT f_readfile('gazelle_hl7_profiles/ADT_A31.xml')) WHERE profile.domain_id = 2 and profile.actor_id = 27 and profile.transaction_id = 52 and profile.message_type = 'ADT_A31' and profile.hl7_version = '2.5'; /* PIX Update acknowledgement */ /* load profile XML for domain = 'ITI', actor = PDC, transaction = 'ITI-30', message_type = 'ACK' and hl7_version = '2.5' */ UPDATE tf_hl7_message_profile profile SET profile_content=(SELECT f_readfile('gazelle_hl7_profiles/ACK_ALL.xml')) WHERE profile.domain_id = 2 and profile.actor_id = 36 and profile.transaction_id = 91 and profile.message_type = 'ACK' and profile.hl7_version = '2.5'; /* PIX Query request */ /* load profile XML for domain = 'ITI', actor = PAT_IDENTITY_CONSUMER, transaction = 'ITI-9', message_type = 'QBP_Q23' and hl7_version = '2.5' */ UPDATE tf_hl7_message_profile profile SET profile_content=(SELECT f_readfile('gazelle_hl7_profiles/QBP_Q23.xml')) WHERE profile.domain_id = 2 and profile.actor_id = 67 and profile.transaction_id = 51 and profile.message_type = 'QBP_Q23' and profile.hl7_version = '2.5'; /* PIX Query response */ /* load profile XML for domain = 'ITI', actor = PAT_IDENTITY_X_REF_MGR, transaction = 'ITI-9', message_type = 'RSP_K23' and hl7_version = '2.5' */ UPDATE tf_hl7_message_profile profile SET profile_content=(SELECT f_readfile('gazelle_hl7_profiles/RSP_K23.xml')) WHERE profile.domain_id = 2 and profile.actor_id = 27 and profile.transaction_id = 51 and profile.message_type = 'RSP_K23' and profile.hl7_version = '2.5'; /* PDQ Query request */ /* load profile XML for domain = 'ITI', actor = PDC, transaction = 'ITI-21', message_type = 'QBP_Q22' and hl7_version = '2.5' */ UPDATE tf_hl7_message_profile profile SET profile_content=(SELECT f_readfile('gazelle_hl7_profiles/QBP_Q22.xml')) WHERE profile.domain_id = 2 and profile.actor_id = 36 and profile.transaction_id = 70 and profile.message_type = 'QBP_Q22' and profile.hl7_version = '2.5'; /* PDQ Query response */ /* load profile XML for domain = 'ITI', actor = PDS, transaction = 'ITI-21', message_type = 'RSP_K22' and hl7_version = '2.5' */ UPDATE tf_hl7_message_profile profile SET profile_content=(SELECT f_readfile('gazelle_hl7_profiles/RSP_K22.xml')) WHERE profile.domain_id = 2 and profile.actor_id = 37 and profile.transaction_id = 70 and profile.message_type = 'RSP_K22' and profile.hl7_version = '2.5';
true
0110de6cacbe70e05f129bff23611de3679a5808
SQL
z4444a/AIM
/misc/database/changesets/master/AIM-011.sql
UTF-8
903
3.390625
3
[]
no_license
CREATE SEQUENCE aim.pool_parameter_value_seq; CREATE TABLE aim.pool_parameter_values( parameter_value_id integer PRIMARY KEY DEFAULT nextval('aim.pool_parameter_value_seq'), parameter_id integer NOT NULL, pool_id integer NOT NULL, number_value integer, string_value text, date_value timestamp, list_value_id integer ); ALTER SEQUENCE aim.pool_parameter_value_seq OWNED BY aim.pool_parameter_values.parameter_value_id; ALTER TABLE aim.pool_parameter_values ADD CONSTRAINT fk_list_value FOREIGN KEY (list_value_id) REFERENCES aim.value_list (value_list_id); ALTER TABLE aim.pool_parameter_values ADD CONSTRAINT fk_parameter FOREIGN KEY (parameter_id) REFERENCES aim.parameters (parameter_id); ALTER TABLE aim.pool_parameter_values ADD CONSTRAINT fk_pool FOREIGN KEY (pool_id) REFERENCES aim.resource_pools (resource_pool_id);
true
fa90a351628426f2c883ded7b84c588062071f95
SQL
novikor/sqlc
/sql/mysql/procedures.sql
UTF-8
292
2.734375
3
[]
no_license
DROP PROCEDURE IF EXISTS clearTable; DELIMITER 1488; CREATE PROCEDURE clearTable(tableName VARCHAR(30)) BEGIN SET @query = CONCAT('TRUNCATE ', tableName); PREPARE statement FROM @query; EXECUTE statement; DEALLOCATE PREPARE statement; END; 1488; CALL clearTable('text');
true
50b6b5a079a6c63febaae4e0870dcda25785df17
SQL
meyerAlexis/tuto-sql
/car.sql
UTF-8
82,983
2.671875
3
[]
no_license
create table car ( id BIGSERIAL NOT NULL PRIMARY KEY, make VARCHAR(100) NOT NULL, model VARCHAR(100) NOT NULL, price NUMERIC (19, 2) NOT NULL ); insert into car (id, make, model, price) values (1, 'Mitsubishi', 'Chariot', 72853); insert into car (id, make, model, price) values (2, 'Nissan', 'Pathfinder', 70458); insert into car (id, make, model, price) values (3, 'Mercedes-Benz', 'SL-Class', 12264); insert into car (id, make, model, price) values (4, 'Hummer', 'H1', 23680); insert into car (id, make, model, price) values (5, 'Mercury', 'Grand Marquis', 58094); insert into car (id, make, model, price) values (6, 'Geo', 'Tracker', 52083); insert into car (id, make, model, price) values (7, 'Oldsmobile', 'Cutlass', 23904); insert into car (id, make, model, price) values (8, 'Mitsubishi', 'Galant', 42147); insert into car (id, make, model, price) values (9, 'Maybach', '57', 49732); insert into car (id, make, model, price) values (10, 'Rolls-Royce', 'Phantom', 53382); insert into car (id, make, model, price) values (11, 'Ford', 'Focus', 54887); insert into car (id, make, model, price) values (12, 'Lexus', 'RX Hybrid', 30714); insert into car (id, make, model, price) values (13, 'Audi', 'R8', 31800); insert into car (id, make, model, price) values (14, 'Chevrolet', 'Silverado 3500', 78743); insert into car (id, make, model, price) values (15, 'GMC', 'Jimmy', 27479); insert into car (id, make, model, price) values (16, 'Cadillac', 'Escalade EXT', 56847); insert into car (id, make, model, price) values (17, 'Ford', 'Escape', 23462); insert into car (id, make, model, price) values (18, 'Toyota', 'Paseo', 53551); insert into car (id, make, model, price) values (19, 'Audi', 'Quattro', 12504); insert into car (id, make, model, price) values (20, 'Pontiac', 'Grand Prix', 35384); insert into car (id, make, model, price) values (21, 'BMW', '3 Series', 98409); insert into car (id, make, model, price) values (22, 'Mazda', '626', 92764); insert into car (id, make, model, price) values (23, 'BMW', '5 Series', 35193); insert into car (id, make, model, price) values (24, 'Kia', 'Sephia', 57989); insert into car (id, make, model, price) values (25, 'Chrysler', 'Sebring', 94808); insert into car (id, make, model, price) values (26, 'Cadillac', 'Fleetwood', 18781); insert into car (id, make, model, price) values (27, 'Lamborghini', 'Diablo', 12353); insert into car (id, make, model, price) values (28, 'Mercedes-Benz', 'E-Class', 90309); insert into car (id, make, model, price) values (29, 'Chevrolet', '2500', 61268); insert into car (id, make, model, price) values (30, 'Ford', 'Thunderbird', 40781); insert into car (id, make, model, price) values (31, 'GMC', 'Yukon XL 1500', 34373); insert into car (id, make, model, price) values (32, 'Chevrolet', 'Astro', 19460); insert into car (id, make, model, price) values (33, 'GMC', 'Yukon XL 1500', 12934); insert into car (id, make, model, price) values (34, 'Toyota', 'Corolla', 47554); insert into car (id, make, model, price) values (35, 'Chevrolet', 'Metro', 91572); insert into car (id, make, model, price) values (36, 'BMW', 'X5', 23519); insert into car (id, make, model, price) values (37, 'Ford', 'Thunderbird', 27461); insert into car (id, make, model, price) values (38, 'Lincoln', 'MKZ', 40390); insert into car (id, make, model, price) values (39, 'Oldsmobile', 'Cutlass', 95489); insert into car (id, make, model, price) values (40, 'Dodge', 'Caravan', 52805); insert into car (id, make, model, price) values (41, 'Honda', 'Accord Crosstour', 43289); insert into car (id, make, model, price) values (42, 'Isuzu', 'i-Series', 28574); insert into car (id, make, model, price) values (43, 'Nissan', 'Quest', 50422); insert into car (id, make, model, price) values (44, 'MINI', 'Clubman', 77440); insert into car (id, make, model, price) values (45, 'GMC', 'Canyon', 77864); insert into car (id, make, model, price) values (46, 'BMW', 'X5', 35472); insert into car (id, make, model, price) values (47, 'Mercury', 'Milan', 60136); insert into car (id, make, model, price) values (48, 'Isuzu', 'Hombre', 97812); insert into car (id, make, model, price) values (49, 'GMC', 'Yukon', 94287); insert into car (id, make, model, price) values (50, 'Nissan', '300ZX', 90103); insert into car (id, make, model, price) values (51, 'Toyota', 'Land Cruiser', 42007); insert into car (id, make, model, price) values (52, 'Mercedes-Benz', '600SL', 21430); insert into car (id, make, model, price) values (53, 'Mazda', '626', 25895); insert into car (id, make, model, price) values (54, 'Mazda', '626', 75863); insert into car (id, make, model, price) values (55, 'Suzuki', 'Vitara', 68215); insert into car (id, make, model, price) values (56, 'Toyota', 'FJ Cruiser', 22024); insert into car (id, make, model, price) values (57, 'Land Rover', 'Discovery Series II', 21750); insert into car (id, make, model, price) values (58, 'Honda', 'Insight', 90539); insert into car (id, make, model, price) values (59, 'Pontiac', 'GTO', 14496); insert into car (id, make, model, price) values (60, 'Cadillac', 'DTS', 44315); insert into car (id, make, model, price) values (61, 'Volkswagen', 'Cabriolet', 41068); insert into car (id, make, model, price) values (62, 'Mazda', 'Protege', 47410); insert into car (id, make, model, price) values (63, 'Toyota', 'Camry Hybrid', 58123); insert into car (id, make, model, price) values (64, 'Chrysler', 'Sebring', 28911); insert into car (id, make, model, price) values (65, 'Ford', 'Probe', 37317); insert into car (id, make, model, price) values (66, 'Dodge', 'Intrepid', 96358); insert into car (id, make, model, price) values (67, 'Honda', 'Accord', 63933); insert into car (id, make, model, price) values (68, 'Oldsmobile', 'Regency', 80851); insert into car (id, make, model, price) values (69, 'Ford', 'Excursion', 70257); insert into car (id, make, model, price) values (70, 'Infiniti', 'Q', 66791); insert into car (id, make, model, price) values (71, 'Ford', 'Escort', 46166); insert into car (id, make, model, price) values (72, 'Jeep', 'Wrangler', 78988); insert into car (id, make, model, price) values (73, 'Ford', 'E350', 66638); insert into car (id, make, model, price) values (74, 'BMW', 'M6', 24614); insert into car (id, make, model, price) values (75, 'Lotus', 'Esprit', 62499); insert into car (id, make, model, price) values (76, 'Suzuki', 'Aerio', 52505); insert into car (id, make, model, price) values (77, 'Oldsmobile', 'Bravada', 43234); insert into car (id, make, model, price) values (78, 'Jeep', 'Liberty', 91200); insert into car (id, make, model, price) values (79, 'Buick', 'Riviera', 99757); insert into car (id, make, model, price) values (80, 'Volkswagen', 'Passat', 76680); insert into car (id, make, model, price) values (81, 'GMC', 'Savana 1500', 59119); insert into car (id, make, model, price) values (82, 'Hummer', 'H2', 60579); insert into car (id, make, model, price) values (83, 'BMW', '760', 21302); insert into car (id, make, model, price) values (84, 'Nissan', 'Maxima', 92765); insert into car (id, make, model, price) values (85, 'Nissan', 'Altima', 57638); insert into car (id, make, model, price) values (86, 'Jeep', 'Grand Cherokee', 76301); insert into car (id, make, model, price) values (87, 'Maserati', 'Spyder', 83348); insert into car (id, make, model, price) values (88, 'Jaguar', 'S-Type', 61362); insert into car (id, make, model, price) values (89, 'Ford', 'Fiesta', 57050); insert into car (id, make, model, price) values (90, 'Kia', 'Sephia', 21712); insert into car (id, make, model, price) values (91, 'Porsche', '911', 65003); insert into car (id, make, model, price) values (92, 'Buick', 'Park Avenue', 50457); insert into car (id, make, model, price) values (93, 'Lotus', 'Elan', 65239); insert into car (id, make, model, price) values (94, 'Chevrolet', 'Sonic', 51952); insert into car (id, make, model, price) values (95, 'Ford', 'Expedition EL', 79204); insert into car (id, make, model, price) values (96, 'Chevrolet', 'Suburban 1500', 34868); insert into car (id, make, model, price) values (97, 'Volvo', 'S40', 33572); insert into car (id, make, model, price) values (98, 'Pontiac', 'Grand Prix', 98429); insert into car (id, make, model, price) values (99, 'Pontiac', 'Grand Am', 47858); insert into car (id, make, model, price) values (100, 'Lincoln', 'Town Car', 19743); insert into car (id, make, model, price) values (101, 'Eagle', 'Vision', 80675); insert into car (id, make, model, price) values (102, 'Dodge', 'Ram Van B250', 28074); insert into car (id, make, model, price) values (103, 'Ford', 'Bronco', 55264); insert into car (id, make, model, price) values (104, 'Buick', 'Regal', 40994); insert into car (id, make, model, price) values (105, 'Infiniti', 'Q', 58704); insert into car (id, make, model, price) values (106, 'Toyota', 'RAV4', 55030); insert into car (id, make, model, price) values (107, 'Volkswagen', 'Touareg 2', 32494); insert into car (id, make, model, price) values (108, 'GMC', 'Envoy', 37075); insert into car (id, make, model, price) values (109, 'Lincoln', 'Mark VIII', 30143); insert into car (id, make, model, price) values (110, 'Cadillac', 'Escalade', 84066); insert into car (id, make, model, price) values (111, 'Lexus', 'LX', 45684); insert into car (id, make, model, price) values (112, 'Pontiac', 'Grand Prix', 73600); insert into car (id, make, model, price) values (113, 'Volkswagen', 'Eurovan', 94807); insert into car (id, make, model, price) values (114, 'Ford', 'F150', 16203); insert into car (id, make, model, price) values (115, 'Hyundai', 'Elantra', 32930); insert into car (id, make, model, price) values (116, 'BMW', 'X6', 10035); insert into car (id, make, model, price) values (117, 'Suzuki', 'Verona', 16063); insert into car (id, make, model, price) values (118, 'Dodge', 'D150', 15401); insert into car (id, make, model, price) values (119, 'Dodge', 'Viper', 24799); insert into car (id, make, model, price) values (120, 'Audi', 'Quattro', 99514); insert into car (id, make, model, price) values (121, 'Lotus', 'Exige', 96218); insert into car (id, make, model, price) values (122, 'GMC', 'Safari', 93783); insert into car (id, make, model, price) values (123, 'GMC', 'Sonoma', 63117); insert into car (id, make, model, price) values (124, 'Lexus', 'RX', 52478); insert into car (id, make, model, price) values (125, 'Land Rover', 'Discovery Series II', 66693); insert into car (id, make, model, price) values (126, 'Toyota', 'Highlander', 36991); insert into car (id, make, model, price) values (127, 'Honda', 'Civic', 30873); insert into car (id, make, model, price) values (128, 'Toyota', 'Land Cruiser', 37965); insert into car (id, make, model, price) values (129, 'Saab', '9-3', 24075); insert into car (id, make, model, price) values (130, 'Chevrolet', 'Suburban 1500', 77744); insert into car (id, make, model, price) values (131, 'Plymouth', 'Colt', 87354); insert into car (id, make, model, price) values (132, 'Pontiac', 'Grand Prix', 68135); insert into car (id, make, model, price) values (133, 'Suzuki', 'Aerio', 92515); insert into car (id, make, model, price) values (134, 'Dodge', 'Colt', 66691); insert into car (id, make, model, price) values (135, 'Kia', 'Rio', 24497); insert into car (id, make, model, price) values (136, 'Mercedes-Benz', 'M-Class', 26319); insert into car (id, make, model, price) values (137, 'Audi', 'A6', 94837); insert into car (id, make, model, price) values (138, 'Mazda', 'Mazda3', 59650); insert into car (id, make, model, price) values (139, 'Toyota', 'Corolla', 13217); insert into car (id, make, model, price) values (140, 'Lexus', 'RX', 62692); insert into car (id, make, model, price) values (141, 'Mazda', 'GLC', 44317); insert into car (id, make, model, price) values (142, 'Hyundai', 'Elantra', 58246); insert into car (id, make, model, price) values (143, 'Dodge', 'Caliber', 46776); insert into car (id, make, model, price) values (144, 'Ford', 'Taurus', 56788); insert into car (id, make, model, price) values (145, 'Hyundai', 'Elantra', 66717); insert into car (id, make, model, price) values (146, 'Bentley', 'Continental GTC', 26867); insert into car (id, make, model, price) values (147, 'Subaru', 'Outback', 97820); insert into car (id, make, model, price) values (148, 'Daewoo', 'Lanos', 84647); insert into car (id, make, model, price) values (149, 'Ford', 'GT500', 77460); insert into car (id, make, model, price) values (150, 'Mazda', 'MX-5', 79423); insert into car (id, make, model, price) values (151, 'Land Rover', 'Range Rover', 64223); insert into car (id, make, model, price) values (152, 'Mercury', 'Sable', 93467); insert into car (id, make, model, price) values (153, 'Mercedes-Benz', 'SLK-Class', 28633); insert into car (id, make, model, price) values (154, 'Volkswagen', 'Cabriolet', 95080); insert into car (id, make, model, price) values (155, 'Buick', 'Estate', 41965); insert into car (id, make, model, price) values (156, 'Isuzu', 'Oasis', 15866); insert into car (id, make, model, price) values (157, 'Plymouth', 'Neon', 32401); insert into car (id, make, model, price) values (158, 'GMC', 'Jimmy', 16402); insert into car (id, make, model, price) values (159, 'Oldsmobile', '88', 44004); insert into car (id, make, model, price) values (160, 'Buick', 'Electra', 73158); insert into car (id, make, model, price) values (161, 'Nissan', '300ZX', 14248); insert into car (id, make, model, price) values (162, 'Pontiac', 'Grand Am', 29106); insert into car (id, make, model, price) values (163, 'Mercury', 'Capri', 55729); insert into car (id, make, model, price) values (164, 'Ford', 'Thunderbird', 38611); insert into car (id, make, model, price) values (165, 'Chevrolet', 'Cobalt', 81750); insert into car (id, make, model, price) values (166, 'Volkswagen', 'Touareg', 38912); insert into car (id, make, model, price) values (167, 'Isuzu', 'VehiCROSS', 21663); insert into car (id, make, model, price) values (168, 'Mazda', 'MPV', 26017); insert into car (id, make, model, price) values (169, 'Mazda', 'CX-9', 63281); insert into car (id, make, model, price) values (170, 'Audi', 'S4', 53656); insert into car (id, make, model, price) values (171, 'Mazda', 'B-Series', 96527); insert into car (id, make, model, price) values (172, 'Chevrolet', 'Suburban 2500', 19956); insert into car (id, make, model, price) values (173, 'Toyota', 'TundraMax', 68452); insert into car (id, make, model, price) values (174, 'Chevrolet', 'Blazer', 92143); insert into car (id, make, model, price) values (175, 'Volkswagen', 'Golf', 15093); insert into car (id, make, model, price) values (176, 'Volkswagen', 'Passat', 76778); insert into car (id, make, model, price) values (177, 'Dodge', 'Grand Caravan', 21340); insert into car (id, make, model, price) values (178, 'GMC', 'Envoy', 59980); insert into car (id, make, model, price) values (179, 'Mazda', 'Navajo', 98653); insert into car (id, make, model, price) values (180, 'Honda', 'Prelude', 19598); insert into car (id, make, model, price) values (181, 'Ford', 'E-Series', 42312); insert into car (id, make, model, price) values (182, 'Volvo', 'S60', 80065); insert into car (id, make, model, price) values (183, 'Ford', 'Ranger', 40600); insert into car (id, make, model, price) values (184, 'Cadillac', 'Catera', 60903); insert into car (id, make, model, price) values (185, 'Lamborghini', 'Aventador', 77738); insert into car (id, make, model, price) values (186, 'Chevrolet', '1500', 43838); insert into car (id, make, model, price) values (187, 'Mitsubishi', 'Mirage', 45858); insert into car (id, make, model, price) values (188, 'Volkswagen', 'Rabbit', 39080); insert into car (id, make, model, price) values (189, 'Toyota', 'Land Cruiser', 49438); insert into car (id, make, model, price) values (190, 'Ford', 'E350', 30511); insert into car (id, make, model, price) values (191, 'Nissan', 'Pathfinder', 22029); insert into car (id, make, model, price) values (192, 'Audi', 'riolet', 23883); insert into car (id, make, model, price) values (193, 'Lexus', 'ES', 72607); insert into car (id, make, model, price) values (194, 'Pontiac', 'Bonneville', 45750); insert into car (id, make, model, price) values (195, 'Audi', '5000S', 41518); insert into car (id, make, model, price) values (196, 'Nissan', 'JUKE', 78939); insert into car (id, make, model, price) values (197, 'Toyota', 'Land Cruiser', 12235); insert into car (id, make, model, price) values (198, 'Nissan', 'Armada', 69860); insert into car (id, make, model, price) values (199, 'Saab', '900', 96234); insert into car (id, make, model, price) values (200, 'Chevrolet', 'Lumina APV', 25438); insert into car (id, make, model, price) values (201, 'Dodge', 'Ram Van 2500', 98433); insert into car (id, make, model, price) values (202, 'Volkswagen', 'Scirocco', 26518); insert into car (id, make, model, price) values (203, 'Toyota', 'T100', 49973); insert into car (id, make, model, price) values (204, 'Chevrolet', 'Monte Carlo', 83115); insert into car (id, make, model, price) values (205, 'Nissan', 'Titan', 66270); insert into car (id, make, model, price) values (206, 'Toyota', 'Celica', 63048); insert into car (id, make, model, price) values (207, 'Bentley', 'Arnage', 42492); insert into car (id, make, model, price) values (208, 'Dodge', 'Ram 1500', 72415); insert into car (id, make, model, price) values (209, 'Dodge', 'Monaco', 62921); insert into car (id, make, model, price) values (210, 'Jaguar', 'XK Series', 19793); insert into car (id, make, model, price) values (211, 'Audi', '80', 77097); insert into car (id, make, model, price) values (212, 'Lexus', 'LX', 96947); insert into car (id, make, model, price) values (213, 'Subaru', 'B9 Tribeca', 78687); insert into car (id, make, model, price) values (214, 'Porsche', '924', 22542); insert into car (id, make, model, price) values (215, 'BMW', '7 Series', 68668); insert into car (id, make, model, price) values (216, 'Acura', 'TL', 34267); insert into car (id, make, model, price) values (217, 'Chevrolet', 'S10 Blazer', 89179); insert into car (id, make, model, price) values (218, 'Lincoln', 'Town Car', 30166); insert into car (id, make, model, price) values (219, 'Dodge', 'Grand Caravan', 89754); insert into car (id, make, model, price) values (220, 'Toyota', 'Tacoma Xtra', 18690); insert into car (id, make, model, price) values (221, 'BMW', 'M3', 90305); insert into car (id, make, model, price) values (222, 'Aston Martin', 'V8 Vantage', 20768); insert into car (id, make, model, price) values (223, 'Subaru', 'Outback', 89239); insert into car (id, make, model, price) values (224, 'Ford', 'E-Series', 33286); insert into car (id, make, model, price) values (225, 'Suzuki', 'SJ', 71058); insert into car (id, make, model, price) values (226, 'Pontiac', 'Grand Am', 76496); insert into car (id, make, model, price) values (227, 'Pontiac', 'LeMans', 90783); insert into car (id, make, model, price) values (228, 'BMW', '3 Series', 35192); insert into car (id, make, model, price) values (229, 'Buick', 'Enclave', 13094); insert into car (id, make, model, price) values (230, 'Buick', 'LeSabre', 33535); insert into car (id, make, model, price) values (231, 'Mercedes-Benz', 'GL-Class', 64909); insert into car (id, make, model, price) values (232, 'Chevrolet', 'Impala SS', 30531); insert into car (id, make, model, price) values (233, 'Dodge', 'Durango', 63551); insert into car (id, make, model, price) values (234, 'Suzuki', 'SJ 410', 30624); insert into car (id, make, model, price) values (235, 'Volvo', 'S80', 76112); insert into car (id, make, model, price) values (236, 'Cadillac', 'Catera', 68663); insert into car (id, make, model, price) values (237, 'Suzuki', 'SX4', 66345); insert into car (id, make, model, price) values (238, 'Mercedes-Benz', 'M-Class', 80848); insert into car (id, make, model, price) values (239, 'Ford', 'Mustang', 48688); insert into car (id, make, model, price) values (240, 'Mazda', 'RX-8', 61100); insert into car (id, make, model, price) values (241, 'Lexus', 'GS', 17591); insert into car (id, make, model, price) values (242, 'Hyundai', 'Elantra', 15636); insert into car (id, make, model, price) values (243, 'Mazda', '626', 67722); insert into car (id, make, model, price) values (244, 'GMC', 'Savana', 22533); insert into car (id, make, model, price) values (245, 'Acura', 'NSX', 74129); insert into car (id, make, model, price) values (246, 'Volvo', 'XC90', 69818); insert into car (id, make, model, price) values (247, 'Buick', 'Park Avenue', 15736); insert into car (id, make, model, price) values (248, 'Ford', 'Taurus', 62245); insert into car (id, make, model, price) values (249, 'Ford', 'F-Series', 24948); insert into car (id, make, model, price) values (250, 'Chevrolet', 'Caprice', 85145); insert into car (id, make, model, price) values (251, 'Mitsubishi', '3000GT', 55699); insert into car (id, make, model, price) values (252, 'Toyota', 'Tacoma', 31692); insert into car (id, make, model, price) values (253, 'Chevrolet', 'Monte Carlo', 23618); insert into car (id, make, model, price) values (254, 'Chevrolet', 'Vega', 55705); insert into car (id, make, model, price) values (255, 'Mercury', 'Mountaineer', 31198); insert into car (id, make, model, price) values (256, 'Ford', 'Econoline E150', 60684); insert into car (id, make, model, price) values (257, 'Porsche', '911', 61799); insert into car (id, make, model, price) values (258, 'BMW', '3 Series', 10715); insert into car (id, make, model, price) values (259, 'Chevrolet', 'Suburban 2500', 13582); insert into car (id, make, model, price) values (260, 'Infiniti', 'G37', 20528); insert into car (id, make, model, price) values (261, 'Ford', 'Econoline E350', 37363); insert into car (id, make, model, price) values (262, 'Toyota', 'Camry', 84925); insert into car (id, make, model, price) values (263, 'Suzuki', 'Sidekick', 45926); insert into car (id, make, model, price) values (264, 'Mercury', 'Villager', 69664); insert into car (id, make, model, price) values (265, 'Porsche', 'Boxster', 21241); insert into car (id, make, model, price) values (266, 'Volkswagen', 'Jetta', 90297); insert into car (id, make, model, price) values (267, 'Chrysler', 'New Yorker', 16484); insert into car (id, make, model, price) values (268, 'Volvo', 'S80', 64640); insert into car (id, make, model, price) values (269, 'Audi', 'A6', 11316); insert into car (id, make, model, price) values (270, 'Kia', 'Sedona', 60675); insert into car (id, make, model, price) values (271, 'Land Rover', 'Discovery', 72016); insert into car (id, make, model, price) values (272, 'Toyota', 'MR2', 28329); insert into car (id, make, model, price) values (273, 'Chevrolet', 'G-Series G20', 10907); insert into car (id, make, model, price) values (274, 'Ford', 'Festiva', 91023); insert into car (id, make, model, price) values (275, 'Lexus', 'IS', 78387); insert into car (id, make, model, price) values (276, 'Porsche', 'Cayman', 94077); insert into car (id, make, model, price) values (277, 'Kia', 'Carens', 46430); insert into car (id, make, model, price) values (278, 'Cadillac', 'Escalade EXT', 10186); insert into car (id, make, model, price) values (279, 'GMC', '2500 Club Coupe', 24214); insert into car (id, make, model, price) values (280, 'Nissan', 'Versa', 93487); insert into car (id, make, model, price) values (281, 'Subaru', 'Justy', 80947); insert into car (id, make, model, price) values (282, 'Land Rover', 'LR4', 60466); insert into car (id, make, model, price) values (283, 'Ford', 'Econoline E150', 92578); insert into car (id, make, model, price) values (284, 'Suzuki', 'SX4', 21354); insert into car (id, make, model, price) values (285, 'Honda', 'Odyssey', 86888); insert into car (id, make, model, price) values (286, 'Dodge', 'Viper', 15323); insert into car (id, make, model, price) values (287, 'Mercedes-Benz', 'G-Class', 90222); insert into car (id, make, model, price) values (288, 'Ford', 'Expedition', 75147); insert into car (id, make, model, price) values (289, 'Volkswagen', 'Golf', 92547); insert into car (id, make, model, price) values (290, 'Volvo', 'S70', 24084); insert into car (id, make, model, price) values (291, 'Pontiac', 'Sunfire', 24378); insert into car (id, make, model, price) values (292, 'Acura', 'NSX', 78404); insert into car (id, make, model, price) values (293, 'Chevrolet', 'Silverado 3500', 86424); insert into car (id, make, model, price) values (294, 'Toyota', 'Avalon', 26798); insert into car (id, make, model, price) values (295, 'Infiniti', 'G35', 87682); insert into car (id, make, model, price) values (296, 'Honda', 'Accord', 70238); insert into car (id, make, model, price) values (297, 'Volkswagen', 'Jetta', 35051); insert into car (id, make, model, price) values (298, 'Mazda', 'MPV', 28010); insert into car (id, make, model, price) values (299, 'Chevrolet', 'Monte Carlo', 62662); insert into car (id, make, model, price) values (300, 'Ford', 'F-Series', 11835); insert into car (id, make, model, price) values (301, 'Volkswagen', 'Type 2', 78994); insert into car (id, make, model, price) values (302, 'Lamborghini', 'Gallardo', 99773); insert into car (id, make, model, price) values (303, 'Oldsmobile', 'Achieva', 45346); insert into car (id, make, model, price) values (304, 'Acura', 'RL', 63148); insert into car (id, make, model, price) values (305, 'Suzuki', 'XL-7', 86377); insert into car (id, make, model, price) values (306, 'Aston Martin', 'V8 Vantage', 25432); insert into car (id, make, model, price) values (307, 'Ford', 'F150', 54493); insert into car (id, make, model, price) values (308, 'Ford', 'Fusion', 48477); insert into car (id, make, model, price) values (309, 'Lincoln', 'Navigator', 48380); insert into car (id, make, model, price) values (310, 'Infiniti', 'M', 78792); insert into car (id, make, model, price) values (311, 'Scion', 'tC', 90049); insert into car (id, make, model, price) values (312, 'Volkswagen', 'GTI', 73923); insert into car (id, make, model, price) values (313, 'Volvo', '960', 95847); insert into car (id, make, model, price) values (314, 'Honda', 'Passport', 20457); insert into car (id, make, model, price) values (315, 'Jaguar', 'XK Series', 55548); insert into car (id, make, model, price) values (316, 'Chevrolet', 'Astro', 73657); insert into car (id, make, model, price) values (317, 'Mercedes-Benz', 'CLK-Class', 97294); insert into car (id, make, model, price) values (318, 'Chevrolet', 'Camaro', 57306); insert into car (id, make, model, price) values (319, 'Chevrolet', 'Corvette', 64808); insert into car (id, make, model, price) values (320, 'Nissan', 'Frontier', 92008); insert into car (id, make, model, price) values (321, 'Jaguar', 'XK Series', 32879); insert into car (id, make, model, price) values (322, 'Lotus', 'Exige', 21094); insert into car (id, make, model, price) values (323, 'Chevrolet', 'Express 2500', 70405); insert into car (id, make, model, price) values (324, 'Chevrolet', 'Silverado 3500', 26938); insert into car (id, make, model, price) values (325, 'Hyundai', 'Sonata', 31217); insert into car (id, make, model, price) values (326, 'Acura', 'TSX', 32317); insert into car (id, make, model, price) values (327, 'Mercury', 'Mountaineer', 54703); insert into car (id, make, model, price) values (328, 'Saab', '9-3', 17031); insert into car (id, make, model, price) values (329, 'GMC', '1500 Club Coupe', 69872); insert into car (id, make, model, price) values (330, 'Audi', 'A8', 78342); insert into car (id, make, model, price) values (331, 'BMW', '325', 40749); insert into car (id, make, model, price) values (332, 'GMC', 'Savana 1500', 54939); insert into car (id, make, model, price) values (333, 'Pontiac', 'Bonneville', 71501); insert into car (id, make, model, price) values (334, 'Ford', 'Explorer', 97007); insert into car (id, make, model, price) values (335, 'Volkswagen', 'Golf III', 79830); insert into car (id, make, model, price) values (336, 'Maybach', '57', 48798); insert into car (id, make, model, price) values (337, 'Nissan', 'Pathfinder', 53672); insert into car (id, make, model, price) values (338, 'Mitsubishi', 'Galant', 92288); insert into car (id, make, model, price) values (339, 'Pontiac', 'Firebird', 95501); insert into car (id, make, model, price) values (340, 'Dodge', 'Ram Van 2500', 30311); insert into car (id, make, model, price) values (341, 'Ford', 'LTD Crown Victoria', 56244); insert into car (id, make, model, price) values (342, 'Oldsmobile', 'Ciera', 36681); insert into car (id, make, model, price) values (343, 'Nissan', 'Pathfinder', 52669); insert into car (id, make, model, price) values (344, 'Volkswagen', 'Passat', 74341); insert into car (id, make, model, price) values (345, 'Acura', 'TL', 68921); insert into car (id, make, model, price) values (346, 'Chevrolet', 'Sonic', 42119); insert into car (id, make, model, price) values (347, 'Toyota', 'Land Cruiser', 67119); insert into car (id, make, model, price) values (348, 'Honda', 'Prelude', 31682); insert into car (id, make, model, price) values (349, 'Kia', 'Forte', 18895); insert into car (id, make, model, price) values (350, 'Chevrolet', 'Malibu', 57940); insert into car (id, make, model, price) values (351, 'Oldsmobile', 'Achieva', 21058); insert into car (id, make, model, price) values (352, 'Mitsubishi', 'Chariot', 53733); insert into car (id, make, model, price) values (353, 'Lexus', 'LS', 72768); insert into car (id, make, model, price) values (354, 'Mitsubishi', 'Raider', 53830); insert into car (id, make, model, price) values (355, 'Maserati', 'Quattroporte', 99563); insert into car (id, make, model, price) values (356, 'Kia', 'Sorento', 97327); insert into car (id, make, model, price) values (357, 'Ford', 'Mustang', 98924); insert into car (id, make, model, price) values (358, 'Toyota', 'Matrix', 64712); insert into car (id, make, model, price) values (359, 'Mitsubishi', 'Truck', 36606); insert into car (id, make, model, price) values (360, 'Chevrolet', 'Camaro', 57867); insert into car (id, make, model, price) values (361, 'Ford', 'Freestyle', 56834); insert into car (id, make, model, price) values (362, 'Pontiac', 'Firebird', 53768); insert into car (id, make, model, price) values (363, 'Volvo', '740', 49021); insert into car (id, make, model, price) values (364, 'Saab', '9-7X', 11143); insert into car (id, make, model, price) values (365, 'Jaguar', 'XJ Series', 67699); insert into car (id, make, model, price) values (366, 'Nissan', 'Datsun/Nissan Z-car', 41789); insert into car (id, make, model, price) values (367, 'Mitsubishi', 'Mirage', 34410); insert into car (id, make, model, price) values (368, 'Mercury', 'Grand Marquis', 71592); insert into car (id, make, model, price) values (369, 'Hyundai', 'Tucson', 52523); insert into car (id, make, model, price) values (370, 'BMW', '1 Series', 84397); insert into car (id, make, model, price) values (371, 'Kia', 'Carens', 71557); insert into car (id, make, model, price) values (372, 'Ford', 'E350', 28681); insert into car (id, make, model, price) values (373, 'Pontiac', 'Safari', 21953); insert into car (id, make, model, price) values (374, 'Land Rover', 'Discovery', 98780); insert into car (id, make, model, price) values (375, 'Volkswagen', 'Cabriolet', 27049); insert into car (id, make, model, price) values (376, 'Infiniti', 'G', 62482); insert into car (id, make, model, price) values (377, 'Maserati', 'Biturbo', 45449); insert into car (id, make, model, price) values (378, 'GMC', 'Savana 2500', 69703); insert into car (id, make, model, price) values (379, 'Chevrolet', 'Camaro', 11655); insert into car (id, make, model, price) values (380, 'Toyota', 'Tacoma', 18448); insert into car (id, make, model, price) values (381, 'GMC', 'Sonoma', 18791); insert into car (id, make, model, price) values (382, 'Dodge', 'Challenger', 30339); insert into car (id, make, model, price) values (383, 'Toyota', 'Truck Xtracab SR5', 65634); insert into car (id, make, model, price) values (384, 'Mazda', 'Mazda6 Sport', 87915); insert into car (id, make, model, price) values (385, 'Dodge', 'Ram Van 1500', 62263); insert into car (id, make, model, price) values (386, 'Eagle', 'Talon', 55338); insert into car (id, make, model, price) values (387, 'Ford', 'Explorer', 69286); insert into car (id, make, model, price) values (388, 'Dodge', 'Viper', 66198); insert into car (id, make, model, price) values (389, 'MINI', 'Cooper', 34500); insert into car (id, make, model, price) values (390, 'Nissan', 'Xterra', 41002); insert into car (id, make, model, price) values (391, 'Ford', 'Aerostar', 71261); insert into car (id, make, model, price) values (392, 'Toyota', 'Highlander', 68353); insert into car (id, make, model, price) values (393, 'Mitsubishi', 'Lancer', 67476); insert into car (id, make, model, price) values (394, 'Ford', 'E-Series', 46565); insert into car (id, make, model, price) values (395, 'Subaru', 'XT', 38090); insert into car (id, make, model, price) values (396, 'Acura', 'NSX', 10055); insert into car (id, make, model, price) values (397, 'BMW', '8 Series', 47079); insert into car (id, make, model, price) values (398, 'Mitsubishi', 'Tundra', 66231); insert into car (id, make, model, price) values (399, 'Ford', 'Thunderbird', 13910); insert into car (id, make, model, price) values (400, 'Plymouth', 'Laser', 57871); insert into car (id, make, model, price) values (401, 'Ford', 'Thunderbird', 64432); insert into car (id, make, model, price) values (402, 'Honda', 'Odyssey', 99867); insert into car (id, make, model, price) values (403, 'Jaguar', 'XF', 49324); insert into car (id, make, model, price) values (404, 'Mitsubishi', 'Cordia', 24847); insert into car (id, make, model, price) values (405, 'Lexus', 'SC', 29426); insert into car (id, make, model, price) values (406, 'Subaru', 'Legacy', 90833); insert into car (id, make, model, price) values (407, 'Lexus', 'LS', 61296); insert into car (id, make, model, price) values (408, 'Saturn', 'S-Series', 16734); insert into car (id, make, model, price) values (409, 'Porsche', '911', 63666); insert into car (id, make, model, price) values (410, 'Maserati', '228', 11593); insert into car (id, make, model, price) values (411, 'Suzuki', 'Forenza', 45961); insert into car (id, make, model, price) values (412, 'Lincoln', 'MKT', 17301); insert into car (id, make, model, price) values (413, 'Isuzu', 'Hombre', 98717); insert into car (id, make, model, price) values (414, 'Ford', 'F150', 94798); insert into car (id, make, model, price) values (415, 'BMW', 'Alpina B7', 44466); insert into car (id, make, model, price) values (416, 'Mercury', 'Sable', 47550); insert into car (id, make, model, price) values (417, 'Lamborghini', 'Diablo', 56775); insert into car (id, make, model, price) values (418, 'Nissan', 'Murano', 28362); insert into car (id, make, model, price) values (419, 'Oldsmobile', 'Achieva', 48557); insert into car (id, make, model, price) values (420, 'Nissan', 'Cube', 27863); insert into car (id, make, model, price) values (421, 'Bentley', 'Continental GTC', 82131); insert into car (id, make, model, price) values (422, 'Lamborghini', 'Countach', 57889); insert into car (id, make, model, price) values (423, 'Mitsubishi', 'Outlander', 84889); insert into car (id, make, model, price) values (424, 'Chevrolet', 'Camaro', 14537); insert into car (id, make, model, price) values (425, 'Acura', 'TL', 47657); insert into car (id, make, model, price) values (426, 'Ford', 'Fusion', 60836); insert into car (id, make, model, price) values (427, 'Hyundai', 'Scoupe', 34986); insert into car (id, make, model, price) values (428, 'Mazda', 'MX-3', 24814); insert into car (id, make, model, price) values (429, 'Ford', 'Mustang', 84365); insert into car (id, make, model, price) values (430, 'Mazda', 'Protege', 19568); insert into car (id, make, model, price) values (431, 'Toyota', 'Avalon', 35862); insert into car (id, make, model, price) values (432, 'Acura', 'MDX', 73540); insert into car (id, make, model, price) values (433, 'BMW', 'Z8', 64519); insert into car (id, make, model, price) values (434, 'Mazda', 'Millenia', 33071); insert into car (id, make, model, price) values (435, 'Kia', 'Carens', 93653); insert into car (id, make, model, price) values (436, 'Dodge', 'Ram 1500', 93854); insert into car (id, make, model, price) values (437, 'Honda', 'Accord', 91778); insert into car (id, make, model, price) values (438, 'Nissan', 'Pathfinder', 46422); insert into car (id, make, model, price) values (439, 'Volkswagen', 'Golf', 31119); insert into car (id, make, model, price) values (440, 'Chevrolet', 'Traverse', 52310); insert into car (id, make, model, price) values (441, 'Bentley', 'Continental GT', 30454); insert into car (id, make, model, price) values (442, 'Cadillac', 'Sixty Special', 92233); insert into car (id, make, model, price) values (443, 'Mercedes-Benz', 'R-Class', 53433); insert into car (id, make, model, price) values (444, 'Subaru', 'Forester', 95916); insert into car (id, make, model, price) values (445, 'Chrysler', 'PT Cruiser', 43211); insert into car (id, make, model, price) values (446, 'Ferrari', '430 Scuderia', 66401); insert into car (id, make, model, price) values (447, 'Hyundai', 'Genesis', 32628); insert into car (id, make, model, price) values (448, 'Dodge', 'Shadow', 24157); insert into car (id, make, model, price) values (449, 'Saab', '900', 41277); insert into car (id, make, model, price) values (450, 'GMC', 'Sonoma', 42454); insert into car (id, make, model, price) values (451, 'Chevrolet', 'Malibu', 52706); insert into car (id, make, model, price) values (452, 'Lamborghini', 'Murciélago', 87594); insert into car (id, make, model, price) values (453, 'Toyota', 'T100', 34188); insert into car (id, make, model, price) values (454, 'Mitsubishi', 'Mighty Max', 63404); insert into car (id, make, model, price) values (455, 'Mercedes-Benz', 'S-Class', 49719); insert into car (id, make, model, price) values (456, 'GMC', 'Yukon XL 2500', 81872); insert into car (id, make, model, price) values (457, 'Lamborghini', 'Murciélago', 65946); insert into car (id, make, model, price) values (458, 'Volkswagen', 'New Beetle', 54172); insert into car (id, make, model, price) values (459, 'Chevrolet', 'Caprice', 51429); insert into car (id, make, model, price) values (460, 'Buick', 'Regal', 53036); insert into car (id, make, model, price) values (461, 'Ford', 'Bronco', 44758); insert into car (id, make, model, price) values (462, 'GMC', 'Savana 1500', 21393); insert into car (id, make, model, price) values (463, 'Lexus', 'GS', 98572); insert into car (id, make, model, price) values (464, 'Chevrolet', 'Volt', 40662); insert into car (id, make, model, price) values (465, 'Dodge', 'Avenger', 85073); insert into car (id, make, model, price) values (466, 'GMC', 'Sonoma', 15540); insert into car (id, make, model, price) values (467, 'BMW', '760', 21301); insert into car (id, make, model, price) values (468, 'Lexus', 'GX', 24220); insert into car (id, make, model, price) values (469, 'Ford', 'Taurus', 34602); insert into car (id, make, model, price) values (470, 'Suzuki', 'Swift', 44818); insert into car (id, make, model, price) values (471, 'Ford', 'Explorer Sport', 18286); insert into car (id, make, model, price) values (472, 'BMW', '325', 70839); insert into car (id, make, model, price) values (473, 'Kia', 'Sportage', 26850); insert into car (id, make, model, price) values (474, 'Saturn', 'Ion', 53751); insert into car (id, make, model, price) values (475, 'Mazda', 'MPV', 34428); insert into car (id, make, model, price) values (476, 'Toyota', 'Highlander', 59446); insert into car (id, make, model, price) values (477, 'Audi', 'RS 6', 35283); insert into car (id, make, model, price) values (478, 'Maserati', 'GranSport', 35592); insert into car (id, make, model, price) values (479, 'Lexus', 'SC', 35503); insert into car (id, make, model, price) values (480, 'Mazda', 'MX-5', 16153); insert into car (id, make, model, price) values (481, 'Chevrolet', 'S10', 24163); insert into car (id, make, model, price) values (482, 'Volkswagen', 'Type 2', 39704); insert into car (id, make, model, price) values (483, 'Lexus', 'RX', 71570); insert into car (id, make, model, price) values (484, 'Mazda', 'Protege', 66296); insert into car (id, make, model, price) values (485, 'Volkswagen', 'Passat', 77778); insert into car (id, make, model, price) values (486, 'Mercedes-Benz', 'C-Class', 78327); insert into car (id, make, model, price) values (487, 'Volkswagen', 'Fox', 67586); insert into car (id, make, model, price) values (488, 'Volkswagen', 'Vanagon', 62193); insert into car (id, make, model, price) values (489, 'Pontiac', 'Grand Am', 50413); insert into car (id, make, model, price) values (490, 'GMC', 'Sierra 3500', 71345); insert into car (id, make, model, price) values (491, 'Chevrolet', 'Corvette', 31594); insert into car (id, make, model, price) values (492, 'Toyota', '4Runner', 45102); insert into car (id, make, model, price) values (493, 'Cadillac', 'Catera', 64241); insert into car (id, make, model, price) values (494, 'Lotus', 'Exige', 90987); insert into car (id, make, model, price) values (495, 'Suzuki', 'XL-7', 36241); insert into car (id, make, model, price) values (496, 'Honda', 'Accord', 77585); insert into car (id, make, model, price) values (497, 'Mazda', 'MX-5', 50183); insert into car (id, make, model, price) values (498, 'GMC', 'Vandura 1500', 45845); insert into car (id, make, model, price) values (499, 'Toyota', 'Yaris', 52678); insert into car (id, make, model, price) values (500, 'Mazda', 'CX-9', 52729); insert into car (id, make, model, price) values (501, 'Buick', 'Century', 96748); insert into car (id, make, model, price) values (502, 'Volkswagen', 'Rabbit', 50780); insert into car (id, make, model, price) values (503, 'Ford', 'Fusion', 60635); insert into car (id, make, model, price) values (504, 'GMC', 'Savana 1500', 35658); insert into car (id, make, model, price) values (505, 'Mitsubishi', 'Mighty Max', 46475); insert into car (id, make, model, price) values (506, 'Mitsubishi', 'Lancer', 68198); insert into car (id, make, model, price) values (507, 'Mercedes-Benz', '300SL', 60040); insert into car (id, make, model, price) values (508, 'Lincoln', 'Continental', 91491); insert into car (id, make, model, price) values (509, 'Hummer', 'H1', 45960); insert into car (id, make, model, price) values (510, 'Pontiac', 'Parisienne', 69442); insert into car (id, make, model, price) values (511, 'Pontiac', 'Grand Prix', 43054); insert into car (id, make, model, price) values (512, 'Volvo', 'S90', 97870); insert into car (id, make, model, price) values (513, 'Chevrolet', 'Tahoe', 75307); insert into car (id, make, model, price) values (514, 'Toyota', 'Sequoia', 49690); insert into car (id, make, model, price) values (515, 'Dodge', 'Ram 3500', 58917); insert into car (id, make, model, price) values (516, 'Dodge', 'Omni', 16799); insert into car (id, make, model, price) values (517, 'Pontiac', 'Bonneville', 85287); insert into car (id, make, model, price) values (518, 'Dodge', 'Ram 2500', 50713); insert into car (id, make, model, price) values (519, 'Hyundai', 'Accent', 67566); insert into car (id, make, model, price) values (520, 'Isuzu', 'i-370', 62010); insert into car (id, make, model, price) values (521, 'Suzuki', 'X-90', 43031); insert into car (id, make, model, price) values (522, 'Mazda', 'B2600', 75196); insert into car (id, make, model, price) values (523, 'Kia', 'Spectra', 95910); insert into car (id, make, model, price) values (524, 'Honda', 'Accord', 63326); insert into car (id, make, model, price) values (525, 'Mercedes-Benz', '300D', 15047); insert into car (id, make, model, price) values (526, 'Lotus', 'Evora', 32460); insert into car (id, make, model, price) values (527, 'Jeep', 'Cherokee', 45951); insert into car (id, make, model, price) values (528, 'Mazda', 'Tribute', 19937); insert into car (id, make, model, price) values (529, 'Mitsubishi', 'Tredia', 75745); insert into car (id, make, model, price) values (530, 'Plymouth', 'Colt', 79624); insert into car (id, make, model, price) values (531, 'Mercedes-Benz', 'S-Class', 47865); insert into car (id, make, model, price) values (532, 'Hyundai', 'Tucson', 83045); insert into car (id, make, model, price) values (533, 'Chevrolet', 'Silverado 1500', 37983); insert into car (id, make, model, price) values (534, 'Acura', 'RL', 55727); insert into car (id, make, model, price) values (535, 'Mazda', 'B-Series', 38105); insert into car (id, make, model, price) values (536, 'Scion', 'tC', 29566); insert into car (id, make, model, price) values (537, 'Toyota', 'Tacoma', 33530); insert into car (id, make, model, price) values (538, 'Subaru', 'Legacy', 94864); insert into car (id, make, model, price) values (539, 'Isuzu', 'Hombre', 21143); insert into car (id, make, model, price) values (540, 'GMC', 'Sierra 1500', 53338); insert into car (id, make, model, price) values (541, 'Toyota', 'RAV4', 70273); insert into car (id, make, model, price) values (542, 'Dodge', 'Nitro', 68030); insert into car (id, make, model, price) values (543, 'Mercedes-Benz', 'CL-Class', 11468); insert into car (id, make, model, price) values (544, 'Lexus', 'ES', 53665); insert into car (id, make, model, price) values (545, 'Mazda', 'MX-6', 30376); insert into car (id, make, model, price) values (546, 'Dodge', 'Ram 1500', 75722); insert into car (id, make, model, price) values (547, 'Toyota', 'Sienna', 21996); insert into car (id, make, model, price) values (548, 'Oldsmobile', '88', 67853); insert into car (id, make, model, price) values (549, 'Mercedes-Benz', 'S-Class', 95505); insert into car (id, make, model, price) values (550, 'Ford', 'Fiesta', 26384); insert into car (id, make, model, price) values (551, 'Land Rover', 'Discovery', 87325); insert into car (id, make, model, price) values (552, 'Mazda', 'Tribute', 26676); insert into car (id, make, model, price) values (553, 'Pontiac', 'Sunfire', 35463); insert into car (id, make, model, price) values (554, 'GMC', '2500 Club Coupe', 60814); insert into car (id, make, model, price) values (555, 'Volkswagen', 'Jetta', 18110); insert into car (id, make, model, price) values (556, 'Mitsubishi', 'Lancer Evolution', 14529); insert into car (id, make, model, price) values (557, 'BMW', '745', 94543); insert into car (id, make, model, price) values (558, 'Volkswagen', 'Cabriolet', 43256); insert into car (id, make, model, price) values (559, 'Chevrolet', 'Express 1500', 86163); insert into car (id, make, model, price) values (560, 'Mitsubishi', 'Mirage', 24429); insert into car (id, make, model, price) values (561, 'BMW', '745', 66564); insert into car (id, make, model, price) values (562, 'Suzuki', 'Swift', 78570); insert into car (id, make, model, price) values (563, 'Dodge', 'Ram Van B250', 47001); insert into car (id, make, model, price) values (564, 'Ford', 'E-Series', 87971); insert into car (id, make, model, price) values (565, 'Geo', 'Tracker', 22200); insert into car (id, make, model, price) values (566, 'Ford', 'Mustang', 23990); insert into car (id, make, model, price) values (567, 'Ford', 'Fiesta', 42409); insert into car (id, make, model, price) values (568, 'Chevrolet', 'Caprice', 31668); insert into car (id, make, model, price) values (569, 'Cadillac', 'Escalade ESV', 18113); insert into car (id, make, model, price) values (570, 'Dodge', 'Colt', 20799); insert into car (id, make, model, price) values (571, 'Chevrolet', 'Blazer', 68543); insert into car (id, make, model, price) values (572, 'Porsche', '928', 55531); insert into car (id, make, model, price) values (573, 'Lincoln', 'Navigator', 47852); insert into car (id, make, model, price) values (574, 'Cadillac', 'SRX', 19719); insert into car (id, make, model, price) values (575, 'Hyundai', 'XG350', 71537); insert into car (id, make, model, price) values (576, 'Maserati', 'Quattroporte', 99735); insert into car (id, make, model, price) values (577, 'Infiniti', 'Q', 91353); insert into car (id, make, model, price) values (578, 'GMC', 'Envoy', 62617); insert into car (id, make, model, price) values (579, 'Mercedes-Benz', 'CLS-Class', 84806); insert into car (id, make, model, price) values (580, 'Hyundai', 'Sonata', 30559); insert into car (id, make, model, price) values (581, 'Toyota', 'Camry', 49937); insert into car (id, make, model, price) values (582, 'Pontiac', 'G6', 71610); insert into car (id, make, model, price) values (583, 'Hyundai', 'Equus', 77493); insert into car (id, make, model, price) values (584, 'GMC', '3500 Club Coupe', 76898); insert into car (id, make, model, price) values (585, 'Mazda', 'Mazda3', 92418); insert into car (id, make, model, price) values (586, 'Lexus', 'LS', 81962); insert into car (id, make, model, price) values (587, 'Nissan', 'Maxima', 54581); insert into car (id, make, model, price) values (588, 'Infiniti', 'Q', 63983); insert into car (id, make, model, price) values (589, 'Ford', 'F350', 97075); insert into car (id, make, model, price) values (590, 'Nissan', 'Frontier', 12934); insert into car (id, make, model, price) values (591, 'Dodge', 'Viper', 64116); insert into car (id, make, model, price) values (592, 'Mitsubishi', 'Endeavor', 68055); insert into car (id, make, model, price) values (593, 'Oldsmobile', 'Cutlass', 89572); insert into car (id, make, model, price) values (594, 'Dodge', 'Dakota', 15053); insert into car (id, make, model, price) values (595, 'Fiat', '500', 19867); insert into car (id, make, model, price) values (596, 'Bentley', 'Continental Flying Spur', 36763); insert into car (id, make, model, price) values (597, 'Jeep', 'Grand Cherokee', 33825); insert into car (id, make, model, price) values (598, 'Land Rover', 'Discovery', 20673); insert into car (id, make, model, price) values (599, 'Ford', 'E-Series', 28778); insert into car (id, make, model, price) values (600, 'Pontiac', 'LeMans', 92773); insert into car (id, make, model, price) values (601, 'Geo', 'Metro', 31663); insert into car (id, make, model, price) values (602, 'Plymouth', 'Colt', 77306); insert into car (id, make, model, price) values (603, 'Pontiac', 'Grand Am', 42048); insert into car (id, make, model, price) values (604, 'Plymouth', 'Colt', 11126); insert into car (id, make, model, price) values (605, 'Geo', 'Metro', 86606); insert into car (id, make, model, price) values (606, 'Volvo', '960', 19073); insert into car (id, make, model, price) values (607, 'Nissan', 'GT-R', 84142); insert into car (id, make, model, price) values (608, 'Chevrolet', 'TrailBlazer', 26094); insert into car (id, make, model, price) values (609, 'Toyota', 'Camry', 44251); insert into car (id, make, model, price) values (610, 'Volkswagen', 'Jetta', 77055); insert into car (id, make, model, price) values (611, 'Maserati', 'Spyder', 44791); insert into car (id, make, model, price) values (612, 'GMC', 'Vandura 3500', 18225); insert into car (id, make, model, price) values (613, 'Acura', 'RL', 15591); insert into car (id, make, model, price) values (614, 'GMC', 'Sierra 2500', 38668); insert into car (id, make, model, price) values (615, 'Dodge', 'Ram 1500', 24270); insert into car (id, make, model, price) values (616, 'Mercury', 'Tracer', 34488); insert into car (id, make, model, price) values (617, 'Mercedes-Benz', 'S-Class', 38065); insert into car (id, make, model, price) values (618, 'Chevrolet', 'Silverado 3500', 65756); insert into car (id, make, model, price) values (619, 'Jaguar', 'S-Type', 95827); insert into car (id, make, model, price) values (620, 'Volkswagen', 'Golf', 77547); insert into car (id, make, model, price) values (621, 'Lexus', 'LS', 56500); insert into car (id, make, model, price) values (622, 'Dodge', 'Charger', 73558); insert into car (id, make, model, price) values (623, 'Chrysler', 'Sebring', 96144); insert into car (id, make, model, price) values (624, 'Bentley', 'Continental Flying Spur', 36765); insert into car (id, make, model, price) values (625, 'Ford', 'Flex', 49794); insert into car (id, make, model, price) values (626, 'Lincoln', 'Town Car', 46332); insert into car (id, make, model, price) values (627, 'Mercedes-Benz', 'G-Class', 47856); insert into car (id, make, model, price) values (628, 'Subaru', 'SVX', 77484); insert into car (id, make, model, price) values (629, 'Mazda', 'Tribute', 95071); insert into car (id, make, model, price) values (630, 'Lamborghini', 'Diablo', 19890); insert into car (id, make, model, price) values (631, 'Subaru', 'Outback', 37226); insert into car (id, make, model, price) values (632, 'Ford', 'F250', 39093); insert into car (id, make, model, price) values (633, 'Jaguar', 'S-Type', 64913); insert into car (id, make, model, price) values (634, 'Subaru', 'Leone', 62879); insert into car (id, make, model, price) values (635, 'Maybach', '62', 74400); insert into car (id, make, model, price) values (636, 'Dodge', 'Durango', 50838); insert into car (id, make, model, price) values (637, 'Toyota', 'Supra', 82591); insert into car (id, make, model, price) values (638, 'Toyota', 'Camry', 54366); insert into car (id, make, model, price) values (639, 'Saab', '9-5', 52106); insert into car (id, make, model, price) values (640, 'GMC', 'Yukon Denali', 90798); insert into car (id, make, model, price) values (641, 'Mitsubishi', 'Pajero', 50667); insert into car (id, make, model, price) values (642, 'Suzuki', 'Swift', 89647); insert into car (id, make, model, price) values (643, 'Audi', 'S6', 82120); insert into car (id, make, model, price) values (644, 'Ford', 'Thunderbird', 20292); insert into car (id, make, model, price) values (645, 'Nissan', 'Murano', 44387); insert into car (id, make, model, price) values (646, 'Ford', 'F250', 22723); insert into car (id, make, model, price) values (647, 'Land Rover', 'Range Rover', 45458); insert into car (id, make, model, price) values (648, 'Volvo', 'V50', 86540); insert into car (id, make, model, price) values (649, 'Chevrolet', 'Suburban 1500', 23312); insert into car (id, make, model, price) values (650, 'Isuzu', 'Ascender', 89621); insert into car (id, make, model, price) values (651, 'Ford', 'F-Series', 94977); insert into car (id, make, model, price) values (652, 'Suzuki', 'X-90', 20933); insert into car (id, make, model, price) values (653, 'Pontiac', 'Grand Prix', 55116); insert into car (id, make, model, price) values (654, 'Mazda', 'Protege', 51560); insert into car (id, make, model, price) values (655, 'Ford', 'Festiva', 43284); insert into car (id, make, model, price) values (656, 'Chrysler', 'Concorde', 41436); insert into car (id, make, model, price) values (657, 'Porsche', 'Cayenne', 29220); insert into car (id, make, model, price) values (658, 'Ford', 'Escort', 68688); insert into car (id, make, model, price) values (659, 'Ford', 'Escape', 72812); insert into car (id, make, model, price) values (660, 'GMC', 'Savana 1500', 20221); insert into car (id, make, model, price) values (661, 'Hyundai', 'XG350', 58652); insert into car (id, make, model, price) values (662, 'Saab', '9000', 51426); insert into car (id, make, model, price) values (663, 'Audi', 'A4', 50323); insert into car (id, make, model, price) values (664, 'Chrysler', 'Aspen', 73194); insert into car (id, make, model, price) values (665, 'BMW', 'Z3', 86368); insert into car (id, make, model, price) values (666, 'Porsche', 'Boxster', 92370); insert into car (id, make, model, price) values (667, 'Ford', 'F450', 75795); insert into car (id, make, model, price) values (668, 'Ford', 'Explorer', 82783); insert into car (id, make, model, price) values (669, 'Audi', '5000S', 49365); insert into car (id, make, model, price) values (670, 'Infiniti', 'G25', 18553); insert into car (id, make, model, price) values (671, 'Hyundai', 'Azera', 93706); insert into car (id, make, model, price) values (672, 'Nissan', 'Altima', 94020); insert into car (id, make, model, price) values (673, 'Pontiac', 'Sunfire', 12701); insert into car (id, make, model, price) values (674, 'Subaru', 'SVX', 12859); insert into car (id, make, model, price) values (675, 'Volkswagen', 'Rabbit', 13833); insert into car (id, make, model, price) values (676, 'Plymouth', 'Fury', 10520); insert into car (id, make, model, price) values (677, 'Mitsubishi', 'Lancer', 24807); insert into car (id, make, model, price) values (678, 'Nissan', 'Armada', 86458); insert into car (id, make, model, price) values (679, 'Ford', 'Explorer', 52488); insert into car (id, make, model, price) values (680, 'Acura', 'TSX', 41093); insert into car (id, make, model, price) values (681, 'GMC', 'Savana 3500', 74715); insert into car (id, make, model, price) values (682, 'Dodge', 'Caravan', 41179); insert into car (id, make, model, price) values (683, 'Pontiac', 'Grand Am', 24996); insert into car (id, make, model, price) values (684, 'Ford', 'Freestar', 70720); insert into car (id, make, model, price) values (685, 'Mitsubishi', 'Lancer', 11298); insert into car (id, make, model, price) values (686, 'Ford', 'Taurus', 56897); insert into car (id, make, model, price) values (687, 'GMC', 'Savana 2500', 17411); insert into car (id, make, model, price) values (688, 'Acura', 'RL', 68742); insert into car (id, make, model, price) values (689, 'Chevrolet', 'Silverado 2500', 91470); insert into car (id, make, model, price) values (690, 'Chevrolet', 'SSR', 47714); insert into car (id, make, model, price) values (691, 'GMC', 'Yukon Denali', 17020); insert into car (id, make, model, price) values (692, 'Acura', 'RL', 51400); insert into car (id, make, model, price) values (693, 'Mercury', 'Topaz', 70944); insert into car (id, make, model, price) values (694, 'Subaru', 'Outback', 54345); insert into car (id, make, model, price) values (695, 'Mercedes-Benz', 'C-Class', 87994); insert into car (id, make, model, price) values (696, 'Chevrolet', 'APV', 92905); insert into car (id, make, model, price) values (697, 'Mazda', 'Mazdaspeed 3', 19133); insert into car (id, make, model, price) values (698, 'Acura', 'TL', 63610); insert into car (id, make, model, price) values (699, 'Pontiac', 'Grand Am', 73750); insert into car (id, make, model, price) values (700, 'Buick', 'Rainier', 77661); insert into car (id, make, model, price) values (701, 'MINI', 'Cooper Clubman', 74571); insert into car (id, make, model, price) values (702, 'Chevrolet', 'Camaro', 81749); insert into car (id, make, model, price) values (703, 'Cadillac', 'DeVille', 48365); insert into car (id, make, model, price) values (704, 'Mitsubishi', 'Galant', 70879); insert into car (id, make, model, price) values (705, 'Mazda', 'Protege', 32734); insert into car (id, make, model, price) values (706, 'Ford', 'F250', 82297); insert into car (id, make, model, price) values (707, 'Mercury', 'Mariner', 56832); insert into car (id, make, model, price) values (708, 'Chrysler', 'Town & Country', 26741); insert into car (id, make, model, price) values (709, 'Scion', 'tC', 43204); insert into car (id, make, model, price) values (710, 'Jeep', 'Patriot', 85978); insert into car (id, make, model, price) values (711, 'Dodge', 'Ram 1500', 65157); insert into car (id, make, model, price) values (712, 'Chevrolet', 'Tahoe', 71635); insert into car (id, make, model, price) values (713, 'Dodge', 'Grand Caravan', 76858); insert into car (id, make, model, price) values (714, 'Suzuki', 'XL-7', 93326); insert into car (id, make, model, price) values (715, 'Aptera', 'Typ-1', 14314); insert into car (id, make, model, price) values (716, 'Pontiac', 'GTO', 36960); insert into car (id, make, model, price) values (717, 'Volvo', 'S60', 28351); insert into car (id, make, model, price) values (718, 'Kia', 'Rio', 26604); insert into car (id, make, model, price) values (719, 'Ford', 'Laser', 28967); insert into car (id, make, model, price) values (720, 'Ford', 'Bronco', 60799); insert into car (id, make, model, price) values (721, 'Audi', 'A8', 89737); insert into car (id, make, model, price) values (722, 'Saab', '900', 75156); insert into car (id, make, model, price) values (723, 'GMC', 'Yukon', 37156); insert into car (id, make, model, price) values (724, 'Jaguar', 'XF', 42582); insert into car (id, make, model, price) values (725, 'Chevrolet', 'Express 1500', 18838); insert into car (id, make, model, price) values (726, 'Toyota', 'Supra', 49005); insert into car (id, make, model, price) values (727, 'Pontiac', 'GTO', 95331); insert into car (id, make, model, price) values (728, 'BMW', 'Z4', 34561); insert into car (id, make, model, price) values (729, 'Austin', 'Mini Cooper S', 73587); insert into car (id, make, model, price) values (730, 'Lotus', 'Evora', 27784); insert into car (id, make, model, price) values (731, 'Saturn', 'Outlook', 53582); insert into car (id, make, model, price) values (732, 'Studebaker', 'Avanti', 28580); insert into car (id, make, model, price) values (733, 'Ford', 'Econoline E150', 39517); insert into car (id, make, model, price) values (734, 'Kia', 'Sorento', 84288); insert into car (id, make, model, price) values (735, 'Chrysler', '300', 54301); insert into car (id, make, model, price) values (736, 'Mazda', 'Millenia', 36285); insert into car (id, make, model, price) values (737, 'Subaru', 'Impreza WRX', 13377); insert into car (id, make, model, price) values (738, 'Mitsubishi', 'Eclipse', 16119); insert into car (id, make, model, price) values (739, 'Maserati', 'GranTurismo', 17653); insert into car (id, make, model, price) values (740, 'Toyota', 'Matrix', 15744); insert into car (id, make, model, price) values (741, 'Dodge', 'Caravan', 99111); insert into car (id, make, model, price) values (742, 'Maybach', '62', 13114); insert into car (id, make, model, price) values (743, 'Mitsubishi', 'Pajero', 82046); insert into car (id, make, model, price) values (744, 'Toyota', '4Runner', 73622); insert into car (id, make, model, price) values (745, 'Ford', 'Bronco', 22060); insert into car (id, make, model, price) values (746, 'Lexus', 'LS', 20558); insert into car (id, make, model, price) values (747, 'Alfa Romeo', 'Spider', 32725); insert into car (id, make, model, price) values (748, 'Nissan', 'Rogue', 88169); insert into car (id, make, model, price) values (749, 'Suzuki', 'Swift', 15038); insert into car (id, make, model, price) values (750, 'Saab', '9-7X', 78690); insert into car (id, make, model, price) values (751, 'Infiniti', 'G', 98984); insert into car (id, make, model, price) values (752, 'Mazda', '626', 27818); insert into car (id, make, model, price) values (753, 'Chevrolet', 'Caprice', 11553); insert into car (id, make, model, price) values (754, 'Mercedes-Benz', 'Sprinter 2500', 12911); insert into car (id, make, model, price) values (755, 'Subaru', 'Outback', 85125); insert into car (id, make, model, price) values (756, 'Mazda', 'Miata MX-5', 33755); insert into car (id, make, model, price) values (757, 'Volkswagen', 'rio', 83619); insert into car (id, make, model, price) values (758, 'Nissan', 'Maxima', 34486); insert into car (id, make, model, price) values (759, 'Lincoln', 'Navigator L', 81214); insert into car (id, make, model, price) values (760, 'Dodge', 'Dakota Club', 30577); insert into car (id, make, model, price) values (761, 'Dodge', 'Aspen', 78053); insert into car (id, make, model, price) values (762, 'Chevrolet', 'Suburban 2500', 45138); insert into car (id, make, model, price) values (763, 'Jeep', 'Wrangler', 52103); insert into car (id, make, model, price) values (764, 'Jaguar', 'X-Type', 45692); insert into car (id, make, model, price) values (765, 'Chevrolet', 'Caprice', 90737); insert into car (id, make, model, price) values (766, 'Alfa Romeo', '164', 32583); insert into car (id, make, model, price) values (767, 'Chevrolet', 'Tahoe', 41683); insert into car (id, make, model, price) values (768, 'Hyundai', 'Santa Fe', 90337); insert into car (id, make, model, price) values (769, 'Mitsubishi', 'Montero Sport', 47748); insert into car (id, make, model, price) values (770, 'Oldsmobile', 'Intrigue', 74394); insert into car (id, make, model, price) values (771, 'Mercedes-Benz', 'SL65 AMG', 35761); insert into car (id, make, model, price) values (772, 'Honda', 'Civic', 77832); insert into car (id, make, model, price) values (773, 'Nissan', 'Altima', 92401); insert into car (id, make, model, price) values (774, 'Porsche', '911', 81471); insert into car (id, make, model, price) values (775, 'Volvo', 'V70', 51762); insert into car (id, make, model, price) values (776, 'MINI', 'Clubman', 39919); insert into car (id, make, model, price) values (777, 'Nissan', 'Pathfinder', 30202); insert into car (id, make, model, price) values (778, 'Chevrolet', 'Lumina', 54881); insert into car (id, make, model, price) values (779, 'Chrysler', 'Concorde', 93927); insert into car (id, make, model, price) values (780, 'Pontiac', 'Parisienne', 58590); insert into car (id, make, model, price) values (781, 'Saab', '9-5', 11004); insert into car (id, make, model, price) values (782, 'Toyota', 'Xtra', 71322); insert into car (id, make, model, price) values (783, 'Chrysler', '300', 84210); insert into car (id, make, model, price) values (784, 'GMC', 'Savana 3500', 48968); insert into car (id, make, model, price) values (785, 'Mercury', 'Sable', 69568); insert into car (id, make, model, price) values (786, 'Nissan', 'Altima', 92468); insert into car (id, make, model, price) values (787, 'Toyota', 'Echo', 25207); insert into car (id, make, model, price) values (788, 'Toyota', 'T100', 27760); insert into car (id, make, model, price) values (789, 'Acura', 'Legend', 52546); insert into car (id, make, model, price) values (790, 'Porsche', '911', 34716); insert into car (id, make, model, price) values (791, 'Dodge', 'Charger', 99987); insert into car (id, make, model, price) values (792, 'Pontiac', 'Firebird', 40471); insert into car (id, make, model, price) values (793, 'Ford', 'Th!nk', 89089); insert into car (id, make, model, price) values (794, 'GMC', 'Sonoma', 12768); insert into car (id, make, model, price) values (795, 'Jaguar', 'X-Type', 54321); insert into car (id, make, model, price) values (796, 'Ram', '3500', 76141); insert into car (id, make, model, price) values (797, 'Dodge', 'Caravan', 15797); insert into car (id, make, model, price) values (798, 'Mazda', 'B-Series Plus', 30588); insert into car (id, make, model, price) values (799, 'Chevrolet', 'Express', 41902); insert into car (id, make, model, price) values (800, 'Maybach', '62', 19963); insert into car (id, make, model, price) values (801, 'Volkswagen', 'GTI', 44323); insert into car (id, make, model, price) values (802, 'Ford', 'Explorer', 60437); insert into car (id, make, model, price) values (803, 'Honda', 'CR-V', 20341); insert into car (id, make, model, price) values (804, 'Audi', 'A6', 43527); insert into car (id, make, model, price) values (805, 'Jeep', 'Grand Cherokee', 21001); insert into car (id, make, model, price) values (806, 'Hyundai', 'Elantra', 48302); insert into car (id, make, model, price) values (807, 'Volkswagen', 'Routan', 94408); insert into car (id, make, model, price) values (808, 'Toyota', 'Solara', 53275); insert into car (id, make, model, price) values (809, 'GMC', 'Savana 2500', 15186); insert into car (id, make, model, price) values (810, 'Hummer', 'H3', 27069); insert into car (id, make, model, price) values (811, 'Mercedes-Benz', 'W201', 27621); insert into car (id, make, model, price) values (812, 'Pontiac', 'Grand Prix', 46589); insert into car (id, make, model, price) values (813, 'Pontiac', 'Torrent', 35314); insert into car (id, make, model, price) values (814, 'Saab', '900', 63913); insert into car (id, make, model, price) values (815, 'Cadillac', 'CTS', 61345); insert into car (id, make, model, price) values (816, 'Mitsubishi', 'Montero Sport', 40382); insert into car (id, make, model, price) values (817, 'Ford', 'F350', 62314); insert into car (id, make, model, price) values (818, 'Lexus', 'IS', 56757); insert into car (id, make, model, price) values (819, 'Kia', 'Sportage', 61126); insert into car (id, make, model, price) values (820, 'Pontiac', 'Bonneville', 21004); insert into car (id, make, model, price) values (821, 'Chevrolet', 'Corvette', 88757); insert into car (id, make, model, price) values (822, 'Ford', 'Excursion', 65185); insert into car (id, make, model, price) values (823, 'Mercedes-Benz', 'R-Class', 24523); insert into car (id, make, model, price) values (824, 'Porsche', 'Boxster', 97837); insert into car (id, make, model, price) values (825, 'Suzuki', 'Daewoo Lacetti', 95996); insert into car (id, make, model, price) values (826, 'Nissan', 'Sentra', 48127); insert into car (id, make, model, price) values (827, 'Audi', 'Cabriolet', 96234); insert into car (id, make, model, price) values (828, 'Pontiac', 'Fiero', 97053); insert into car (id, make, model, price) values (829, 'Infiniti', 'G', 75698); insert into car (id, make, model, price) values (830, 'Ford', 'F150', 41277); insert into car (id, make, model, price) values (831, 'GMC', 'Yukon XL 1500', 34858); insert into car (id, make, model, price) values (832, 'Chevrolet', 'S10', 53495); insert into car (id, make, model, price) values (833, 'Suzuki', 'Sidekick', 73621); insert into car (id, make, model, price) values (834, 'Mitsubishi', 'Galant', 12941); insert into car (id, make, model, price) values (835, 'GMC', 'Yukon', 91689); insert into car (id, make, model, price) values (836, 'Dodge', 'Dakota', 20830); insert into car (id, make, model, price) values (837, 'Buick', 'Regal', 80260); insert into car (id, make, model, price) values (838, 'Mercury', 'Lynx', 87433); insert into car (id, make, model, price) values (839, 'Lexus', 'ES', 60167); insert into car (id, make, model, price) values (840, 'Subaru', 'Legacy', 75543); insert into car (id, make, model, price) values (841, 'Mitsubishi', 'GTO', 75919); insert into car (id, make, model, price) values (842, 'Suzuki', 'SX4', 12802); insert into car (id, make, model, price) values (843, 'Chevrolet', '1500', 30694); insert into car (id, make, model, price) values (844, 'Acura', 'TSX', 33203); insert into car (id, make, model, price) values (845, 'Mazda', 'Protege', 19968); insert into car (id, make, model, price) values (846, 'Bentley', 'Mulsanne', 69364); insert into car (id, make, model, price) values (847, 'Chevrolet', 'Express 2500', 67574); insert into car (id, make, model, price) values (848, 'Chrysler', 'New Yorker', 93802); insert into car (id, make, model, price) values (849, 'Audi', 'S8', 67801); insert into car (id, make, model, price) values (850, 'Buick', 'Regal', 64914); insert into car (id, make, model, price) values (851, 'Land Rover', 'Discovery', 51431); insert into car (id, make, model, price) values (852, 'Kia', 'Spectra', 62882); insert into car (id, make, model, price) values (853, 'Nissan', '300ZX', 82219); insert into car (id, make, model, price) values (854, 'Audi', 'TT', 74761); insert into car (id, make, model, price) values (855, 'Dodge', 'Ram Van B150', 54360); insert into car (id, make, model, price) values (856, 'Ford', 'Freestar', 18709); insert into car (id, make, model, price) values (857, 'Volvo', '940', 39507); insert into car (id, make, model, price) values (858, 'Dodge', 'Ram 2500', 69752); insert into car (id, make, model, price) values (859, 'Maserati', 'Quattroporte', 90106); insert into car (id, make, model, price) values (860, 'Geo', 'Prizm', 92288); insert into car (id, make, model, price) values (861, 'Pontiac', 'Monterey', 83173); insert into car (id, make, model, price) values (862, 'GMC', 'Envoy', 63706); insert into car (id, make, model, price) values (863, 'Buick', 'LeSabre', 36157); insert into car (id, make, model, price) values (864, 'GMC', 'Savana 3500', 96678); insert into car (id, make, model, price) values (865, 'Audi', 'A4', 14832); insert into car (id, make, model, price) values (866, 'Mazda', 'B-Series', 18988); insert into car (id, make, model, price) values (867, 'Chrysler', 'Pacifica', 62307); insert into car (id, make, model, price) values (868, 'GMC', 'Terrain', 90534); insert into car (id, make, model, price) values (869, 'GMC', 'Jimmy', 67981); insert into car (id, make, model, price) values (870, 'Hyundai', 'Accent', 10403); insert into car (id, make, model, price) values (871, 'Mercury', 'Sable', 50294); insert into car (id, make, model, price) values (872, 'Audi', 'A3', 39818); insert into car (id, make, model, price) values (873, 'Dodge', 'D150', 85889); insert into car (id, make, model, price) values (874, 'Infiniti', 'I', 37315); insert into car (id, make, model, price) values (875, 'Nissan', 'Xterra', 85939); insert into car (id, make, model, price) values (876, 'Ford', 'Escort', 45664); insert into car (id, make, model, price) values (877, 'Lamborghini', 'Diablo', 92366); insert into car (id, make, model, price) values (878, 'Ford', 'Fusion', 76147); insert into car (id, make, model, price) values (879, 'Mitsubishi', 'Truck', 88907); insert into car (id, make, model, price) values (880, 'Pontiac', 'Sunfire', 78420); insert into car (id, make, model, price) values (881, 'Pontiac', 'GTO', 83521); insert into car (id, make, model, price) values (882, 'Kia', 'Rio', 94466); insert into car (id, make, model, price) values (883, 'Saab', '900', 75598); insert into car (id, make, model, price) values (884, 'Honda', 'Odyssey', 49859); insert into car (id, make, model, price) values (885, 'Lincoln', 'Navigator L', 63207); insert into car (id, make, model, price) values (886, 'Chevrolet', 'Silverado 1500', 79685); insert into car (id, make, model, price) values (887, 'Ford', 'Edge', 95634); insert into car (id, make, model, price) values (888, 'Ford', 'Econoline E150', 49573); insert into car (id, make, model, price) values (889, 'Audi', 'A4', 41153); insert into car (id, make, model, price) values (890, 'Oldsmobile', 'Silhouette', 61569); insert into car (id, make, model, price) values (891, 'Chevrolet', 'Sportvan G20', 58011); insert into car (id, make, model, price) values (892, 'Volkswagen', 'New Beetle', 64072); insert into car (id, make, model, price) values (893, 'Lamborghini', 'Murciélago', 89138); insert into car (id, make, model, price) values (894, 'Bentley', 'Azure', 87657); insert into car (id, make, model, price) values (895, 'Ford', 'Thunderbird', 86535); insert into car (id, make, model, price) values (896, 'Saturn', 'Astra', 70935); insert into car (id, make, model, price) values (897, 'Ford', 'Crown Victoria', 72321); insert into car (id, make, model, price) values (898, 'Lexus', 'GS', 30945); insert into car (id, make, model, price) values (899, 'Mitsubishi', 'Montero Sport', 91341); insert into car (id, make, model, price) values (900, 'Audi', 'S8', 90495); insert into car (id, make, model, price) values (901, 'Pontiac', 'Solstice', 40515); insert into car (id, make, model, price) values (902, 'Lincoln', 'Continental', 17329); insert into car (id, make, model, price) values (903, 'Cadillac', 'Eldorado', 93411); insert into car (id, make, model, price) values (904, 'Nissan', 'Sentra', 97852); insert into car (id, make, model, price) values (905, 'Oldsmobile', '88', 87911); insert into car (id, make, model, price) values (906, 'Ford', 'E150', 74005); insert into car (id, make, model, price) values (907, 'Buick', 'LaCrosse', 37244); insert into car (id, make, model, price) values (908, 'Infiniti', 'I', 62986); insert into car (id, make, model, price) values (909, 'Hyundai', 'Accent', 13849); insert into car (id, make, model, price) values (910, 'Mazda', 'Miata MX-5', 57102); insert into car (id, make, model, price) values (911, 'Mazda', 'MX-6', 89477); insert into car (id, make, model, price) values (912, 'Land Rover', 'Range Rover Classic', 18009); insert into car (id, make, model, price) values (913, 'Toyota', 'Highlander', 45171); insert into car (id, make, model, price) values (914, 'Audi', 'A8', 35955); insert into car (id, make, model, price) values (915, 'Acura', 'RDX', 90848); insert into car (id, make, model, price) values (916, 'Toyota', 'Sienna', 44548); insert into car (id, make, model, price) values (917, 'Chevrolet', 'Express 3500', 43364); insert into car (id, make, model, price) values (918, 'Lexus', 'IS F', 70320); insert into car (id, make, model, price) values (919, 'Pontiac', 'Fiero', 35364); insert into car (id, make, model, price) values (920, 'Dodge', 'Ram Van 1500', 57224); insert into car (id, make, model, price) values (921, 'BMW', 'X3', 83281); insert into car (id, make, model, price) values (922, 'Jeep', 'Liberty', 42173); insert into car (id, make, model, price) values (923, 'Kia', 'Forte', 32823); insert into car (id, make, model, price) values (924, 'Mercedes-Benz', 'GLK-Class', 46266); insert into car (id, make, model, price) values (925, 'Saturn', 'Outlook', 97164); insert into car (id, make, model, price) values (926, 'Nissan', 'Murano', 99948); insert into car (id, make, model, price) values (927, 'Honda', 'Accord', 73586); insert into car (id, make, model, price) values (928, 'Nissan', 'Frontier', 38482); insert into car (id, make, model, price) values (929, 'Mercedes-Benz', 'SL-Class', 30936); insert into car (id, make, model, price) values (930, 'Bentley', 'Continental', 87325); insert into car (id, make, model, price) values (931, 'Hyundai', 'Tiburon', 93915); insert into car (id, make, model, price) values (932, 'Lexus', 'LX', 83987); insert into car (id, make, model, price) values (933, 'Ford', 'Thunderbird', 86276); insert into car (id, make, model, price) values (934, 'Mercedes-Benz', 'CLK-Class', 64009); insert into car (id, make, model, price) values (935, 'Honda', 'Ridgeline', 36316); insert into car (id, make, model, price) values (936, 'Cadillac', 'DeVille', 91200); insert into car (id, make, model, price) values (937, 'Subaru', 'Legacy', 13793); insert into car (id, make, model, price) values (938, 'Nissan', 'Quest', 36541); insert into car (id, make, model, price) values (939, 'Chevrolet', 'Express 1500', 32372); insert into car (id, make, model, price) values (940, 'Subaru', 'Brat', 39852); insert into car (id, make, model, price) values (941, 'Lexus', 'RX', 99302); insert into car (id, make, model, price) values (942, 'Lincoln', 'Town Car', 56117); insert into car (id, make, model, price) values (943, 'BMW', '5 Series', 24984); insert into car (id, make, model, price) values (944, 'Nissan', 'Frontier', 35452); insert into car (id, make, model, price) values (945, 'Lincoln', 'Navigator', 29307); insert into car (id, make, model, price) values (946, 'Hummer', 'H1', 60545); insert into car (id, make, model, price) values (947, 'Chevrolet', 'S10', 88089); insert into car (id, make, model, price) values (948, 'Suzuki', 'Grand Vitara', 34224); insert into car (id, make, model, price) values (949, 'Honda', 'CR-X', 55697); insert into car (id, make, model, price) values (950, 'Hyundai', 'Genesis', 60693); insert into car (id, make, model, price) values (951, 'Mitsubishi', 'Tredia', 49086); insert into car (id, make, model, price) values (952, 'Maybach', 'Landaulet', 22233); insert into car (id, make, model, price) values (953, 'Chrysler', '200', 59535); insert into car (id, make, model, price) values (954, 'Nissan', 'Titan', 61192); insert into car (id, make, model, price) values (955, 'Jeep', 'Wrangler', 15738); insert into car (id, make, model, price) values (956, 'Buick', 'LeSabre', 64634); insert into car (id, make, model, price) values (957, 'Honda', 'Prelude', 94261); insert into car (id, make, model, price) values (958, 'Pontiac', 'G5', 80982); insert into car (id, make, model, price) values (959, 'Chrysler', 'Crossfire', 20203); insert into car (id, make, model, price) values (960, 'Plymouth', 'Voyager', 22856); insert into car (id, make, model, price) values (961, 'Chevrolet', 'Camaro', 72765); insert into car (id, make, model, price) values (962, 'Jeep', 'Comanche', 46856); insert into car (id, make, model, price) values (963, 'Ford', 'F150', 12809); insert into car (id, make, model, price) values (964, 'Volvo', 'XC70', 86844); insert into car (id, make, model, price) values (965, 'Nissan', 'Cube', 38214); insert into car (id, make, model, price) values (966, 'Nissan', 'Maxima', 61785); insert into car (id, make, model, price) values (967, 'Toyota', 'Sequoia', 87874); insert into car (id, make, model, price) values (968, 'GMC', 'Sierra', 82516); insert into car (id, make, model, price) values (969, 'Dodge', 'Grand Caravan', 77201); insert into car (id, make, model, price) values (970, 'Honda', 'Civic', 58286); insert into car (id, make, model, price) values (971, 'Mercedes-Benz', 'GLK-Class', 76962); insert into car (id, make, model, price) values (972, 'Kia', 'Carens', 74819); insert into car (id, make, model, price) values (973, 'Panoz', 'Esperante', 47853); insert into car (id, make, model, price) values (974, 'Dodge', 'Ram Van 1500', 16634); insert into car (id, make, model, price) values (975, 'Jeep', 'Commander', 42992); insert into car (id, make, model, price) values (976, 'BMW', 'M6', 42626); insert into car (id, make, model, price) values (977, 'GMC', 'Savana 1500', 86583); insert into car (id, make, model, price) values (978, 'Holden', 'VS Commodore', 11453); insert into car (id, make, model, price) values (979, 'Ford', 'Ranger', 36266); insert into car (id, make, model, price) values (980, 'Mercury', 'Grand Marquis', 82623); insert into car (id, make, model, price) values (981, 'Cadillac', 'Escalade ESV', 70462); insert into car (id, make, model, price) values (982, 'Hummer', 'H3', 96779); insert into car (id, make, model, price) values (983, 'Ford', 'Expedition', 42192); insert into car (id, make, model, price) values (984, 'Mazda', 'MX-5', 20611); insert into car (id, make, model, price) values (985, 'Toyota', '4Runner', 43320); insert into car (id, make, model, price) values (986, 'Cadillac', 'Catera', 57540); insert into car (id, make, model, price) values (987, 'GMC', 'Safari', 27681); insert into car (id, make, model, price) values (988, 'Mitsubishi', 'Pajero', 20829); insert into car (id, make, model, price) values (989, 'Buick', 'Reatta', 80664); insert into car (id, make, model, price) values (990, 'Acura', 'TL', 27629); insert into car (id, make, model, price) values (991, 'Land Rover', 'Discovery', 35007); insert into car (id, make, model, price) values (992, 'Lexus', 'LX', 28191); insert into car (id, make, model, price) values (993, 'Ford', 'Mustang', 13561); insert into car (id, make, model, price) values (994, 'Dodge', 'Stratus', 59901); insert into car (id, make, model, price) values (995, 'Plymouth', 'Laser', 52090); insert into car (id, make, model, price) values (996, 'Dodge', 'Stratus', 68361); insert into car (id, make, model, price) values (997, 'Acura', 'Legend', 42420); insert into car (id, make, model, price) values (998, 'Chevrolet', 'Equinox', 91364); insert into car (id, make, model, price) values (999, 'Nissan', 'Maxima', 99532); insert into car (id, make, model, price) values (1000, 'Acura', 'CL', 25911);
true
5194b742f5fe8df91d567a648adc3e2a68b0374f
SQL
paulo280799/RegistraClinicPscicoWEB
/RegistraClinicPsico_WEB/Banco/Script.sql
UTF-8
8,732
2.9375
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 4.8.5 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1:3306 -- Generation Time: 29-Ago-2019 às 23:24 -- Versão do servidor: 5.7.26 -- versão do PHP: 7.2.18 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: `psico` -- CREATE DATABASE IF NOT EXISTS `psico` DEFAULT CHARACTER SET utf8 COLLATE utf8_unicode_ci; USE `psico`; -- -------------------------------------------------------- -- -- Estrutura da tabela `aluno` -- DROP TABLE IF EXISTS `aluno`; CREATE TABLE IF NOT EXISTS `aluno` ( `IDALUNO` int(11) NOT NULL AUTO_INCREMENT, `NOMEALUNO` varchar(255) NOT NULL, `MATRICULAALUNO` varchar(255) NOT NULL, `CPFALUNO` varchar(255) NOT NULL, `RGALUNO` varchar(255) NOT NULL, `SEXOALUNO` varchar(255) NOT NULL, `TELEFONEALUNO` varchar(255) NOT NULL, `DATANASCIMENTOALUNO` varchar(255) NOT NULL, `ESTADOALUNO` varchar(255) NOT NULL, `CIDADEALUNO` varchar(255) NOT NULL, `BAIRROALUNO` varchar(255) NOT NULL, `RUAALUNO` varchar(255) NOT NULL, `NUMCASAALUNO` varchar(255) NOT NULL, `EMAILALUNO` varchar(255) NOT NULL, `COMPLEMENTOALUNO` varchar(255) NOT NULL, `TURMAALUNO` varchar(255) NOT NULL, PRIMARY KEY (`IDALUNO`) ) ENGINE=InnoDB AUTO_INCREMENT=4 DEFAULT CHARSET=utf8; -- -- Extraindo dados da tabela `aluno` -- INSERT INTO `aluno` (`IDALUNO`, `NOMEALUNO`, `MATRICULAALUNO`, `CPFALUNO`, `RGALUNO`, `SEXOALUNO`, `TELEFONEALUNO`, `DATANASCIMENTOALUNO`, `ESTADOALUNO`, `CIDADEALUNO`, `BAIRROALUNO`, `RUAALUNO`, `NUMCASAALUNO`, `EMAILALUNO`, `COMPLEMENTOALUNO`, `TURMAALUNO`) VALUES (3, 'Aluno', '', '', '', '', '', '', '', '', '', '', '', '', '', ''); -- -------------------------------------------------------- -- -- Estrutura da tabela `paciente` -- DROP TABLE IF EXISTS `paciente`; CREATE TABLE IF NOT EXISTS `paciente` ( `IDPACIENTE` int(11) NOT NULL AUTO_INCREMENT, `PRONTUARIO` varchar(255) NOT NULL, `DATACADASTRO`DATE, `NOMEPACIENTE` varchar(255) NOT NULL, `DATANASCIMENTO` DATE, `CPFPACIENTE` varchar(255) NOT NULL, `RGPACIENTE` varchar(255) NOT NULL, `SEXOPACIENTE` varchar(255) NOT NULL, `TELEFONEPACIENTE` varchar(255) NOT NULL, `TELEFONEOPCIONALPACIENTE` varchar(255) NOT NULL, `ESTADOCIVIL` varchar(255) NOT NULL, `CIDADEPACIENTE` varchar(255) NOT NULL, `BAIRROPACIENTE` varchar(255) NOT NULL, `RUAPACIENTE` varchar(255) NOT NULL, `ENDERECO` varchar(255) NOT NULL, `RESPONSAVEL` varchar(255) NOT NULL, `SITUACAOPACIENTE` varchar(255) NOT NULL, `TIPOPACIENTE` varchar(255) NOT NULL, `QUEIXAPRINCIPAL` varchar(255) NOT NULL, `DISPONIBILIDADE` varchar(255) NOT NULL, `SETORDEENCAMINHAMENTO` varchar(255) NOT NULL, `CONTRARREFERENCIA` varchar(255) NOT NULL, `OUTROS` varchar(255) NOT NULL, PRIMARY KEY (`IDPACIENTE`) ) ENGINE=InnoDB AUTO_INCREMENT=2 DEFAULT CHARSET=utf8; -- -- Extraindo dados da tabela `paciente` -- INSERT INTO `paciente` (`IDPACIENTE`, `NOMEPACIENTE`, `IDADEPACIENTE`, `CPFPACIENTE`, `RGPACIENTE`, `SEXOPACIENTE`, `TELEFONEPACIENTE`, `TELEFONEOPCIONALPACIENTE`, `ESTADOCIVIL`, `CIDADEPACIENTE`, `BAIRROPACIENTE`, `RUAPACIENTE`, `ENDERECO`, `RESPONSAVEL`, `SITUACAOPACIENTE`, `TIPOPACIENTE`, `QUEIXAPRINCIPAL`, `DISPONIBILIDADE`, `SETORDEENCAMINHAMENTO`, `CONTRARREFERENCIA`, `OUTROS`) VALUES (1, 'Paciente 001', 30, '31231231231', '31231231', '', '', '', '', 'Icó', 'Centro', 'Rua da Pai', '', '', '', '', '', '', '', '', ''); -- -------------------------------------------------------- -- -- Estrutura da tabela `supervisor` -- DROP TABLE IF EXISTS `supervisor`; CREATE TABLE IF NOT EXISTS `supervisor` ( `idSupervisor` int(11) NOT NULL AUTO_INCREMENT, `bairroSupervisor` varchar(550) DEFAULT NULL, `cidadeSupervisor` varchar(500) DEFAULT NULL, `complementoSupervisor` varchar(300) DEFAULT NULL, `cpfSupervisor` varchar(20) DEFAULT NULL, `dataNascimentoSupervisor` varchar(15) DEFAULT NULL, `emailSupervisor` varchar(50) DEFAULT NULL, `enderecoNumeroSupervisor` varchar(16) DEFAULT NULL, `enderecoSupervisor` varchar(550) DEFAULT NULL, `especializacaoSupervisor` varchar(50) DEFAULT NULL, `estadoSupervisor` varchar(20) DEFAULT NULL, `nomeSupervisor` varchar(500) NOT NULL, `rgSupervisor` varchar(50) DEFAULT NULL, `sexoSupervisor` varchar(10) DEFAULT NULL, `telefoneSupervisor` varchar(20) DEFAULT NULL, `turmaSupervisor` varchar(40) DEFAULT NULL, PRIMARY KEY (`idSupervisor`) ) ENGINE=InnoDB AUTO_INCREMENT=2 DEFAULT CHARSET=utf8; -- -- Extraindo dados da tabela `supervisor` -- INSERT INTO `supervisor` (`idSupervisor`, `bairroSupervisor`, `cidadeSupervisor`, `complementoSupervisor`, `cpfSupervisor`, `dataNascimentoSupervisor`, `emailSupervisor`, `enderecoNumeroSupervisor`, `enderecoSupervisor`, `especializacaoSupervisor`, `estadoSupervisor`, `nomeSupervisor`, `rgSupervisor`, `sexoSupervisor`, `telefoneSupervisor`, `turmaSupervisor`) VALUES (1, 'Centro', 'Pereiro', 'Casa', '123123123', '2019-08-02', 'dadasda@dadsa', '1234', 'RUa', 'Loucura', 'Ceará', 'Danylo', '231231eqweq', 'M', '131231231231', 'Turma da quebrada'); -- -------------------------------------------------------- -- -- Estrutura da tabela `usuario` -- DROP TABLE IF EXISTS `usuario`; CREATE TABLE IF NOT EXISTS `usuario` ( `idUsuario` int(11) NOT NULL AUTO_INCREMENT, `loginUsuario` varchar(255) DEFAULT NULL, `nomeUsuario` varchar(255) DEFAULT NULL, `senhaUsuario` varchar(255) DEFAULT NULL, `tipoUsuario` varchar(255) DEFAULT NULL, PRIMARY KEY (`idUsuario`) ) ENGINE=InnoDB AUTO_INCREMENT=2 DEFAULT CHARSET=utf8; -- -- Extraindo dados da tabela `usuario` -- INSERT INTO `usuario` (`idUsuario`, `loginUsuario`, `nomeUsuario`, `senhaUsuario`, `tipoUsuario`) VALUES (7, 'danylo', 'Danylo Alysson Dias de Aquino', 'admin', 'Administrador'), (9, 'teste', 'Teste', 'teste', 'Funcionario'); -- -------------------------------------------------------- -- -- Estrutura da tabela `vincularalunosupervisor` -- DROP TABLE IF EXISTS `vincularalunosupervisor`; CREATE TABLE IF NOT EXISTS `vincularalunosupervisor` ( `idVincularAlunosSupervisor` int(11) NOT NULL AUTO_INCREMENT, `dataInicioSupervisao` date DEFAULT NULL, `aluno_idAluno` int(11) DEFAULT NULL, `supervisor_idSupervisor` int(11) DEFAULT NULL, PRIMARY KEY (`idVincularAlunosSupervisor`), KEY `FK_iamtqc06nq8uq4o73r5ajw0uw` (`aluno_idAluno`), KEY `FK_espcv5e9bc814dryitant0sv` (`supervisor_idSupervisor`) ) ENGINE=InnoDB AUTO_INCREMENT=7 DEFAULT CHARSET=latin1; -- -- Extraindo dados da tabela `vincularalunosupervisor` -- INSERT INTO `vincularalunosupervisor` (`idVincularAlunosSupervisor`, `dataInicioSupervisao`, `aluno_idAluno`, `supervisor_idSupervisor`) VALUES (4, '2019-08-01', 3, 1), (5, '2019-08-25', 3, 1), (6, '2020-10-30', 3, 1); -- -------------------------------------------------------- -- -- Estrutura da tabela `vincularpacientealuno` -- DROP TABLE IF EXISTS `vincularpacientealuno`; CREATE TABLE IF NOT EXISTS `vincularpacientealuno` ( `idVincularPacienteAluno` int(11) NOT NULL AUTO_INCREMENT, `dataInicioAtendimento` date NOT NULL, `aluno_idAluno` int(11) NOT NULL, `paciente_idPaciente` int(11) NOT NULL, PRIMARY KEY (`idVincularPacienteAluno`), KEY `aluno_idAluno` (`aluno_idAluno`), KEY `paciente_idPaciente` (`paciente_idPaciente`) ) ENGINE=InnoDB AUTO_INCREMENT=2 DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci; -- -- Constraints for dumped tables -- -- -- Limitadores para a tabela `vincularalunosupervisor` -- ALTER TABLE `vincularalunosupervisor` ADD CONSTRAINT `FK_espcv5e9bc814dryitant0sv` FOREIGN KEY (`supervisor_idSupervisor`) REFERENCES `supervisor` (`idSupervisor`), ADD CONSTRAINT `FK_iamtqc06nq8uq4o73r5ajw0uw` FOREIGN KEY (`aluno_idAluno`) REFERENCES `aluno` (`IDALUNO`); -- -- Limitadores para a tabela `vincularpacientealuno` -- ALTER TABLE `vincularpacientealuno` ADD CONSTRAINT `vincularpacientealuno_ibfk_1` FOREIGN KEY (`aluno_idAluno`) REFERENCES `aluno` (`IDALUNO`), ADD CONSTRAINT `vincularpacientealuno_ibfk_2` FOREIGN KEY (`paciente_idPaciente`) REFERENCES `paciente` (`IDPACIENTE`); 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
6e2c85eab0b1eef797e5da2127c584c673f1ea2d
SQL
Nikunj1703/SchedulingApp
/SQLScripts/SFSystem_Scripts.sql
UTF-8
3,126
3.421875
3
[]
no_license
create table USERS ( USER_ID INTEGER CONSTRAINT user_pk primary key GENERATED ALWAYS AS IDENTITY (START WITH 1, INCREMENT BY 1), ULID VARCHAR(32), PASSWORD VARCHAR(32), ISADMIN INTEGER, CREATED_TS TIMESTAMP, LAST_UPDT_TS TIMESTAMP ); create table REVIEW_COMMENT ( COMMENT_ID INTEGER CONSTRAINT review_comment_pk primary key GENERATED ALWAYS AS IDENTITY (START WITH 1, INCREMENT BY 1), ULID VARCHAR(32), ALL_SCH_ID INTEGER, COMMENT_TEXT VARCHAR(3000), CREATED_TS TIMESTAMP, LAST_UPDT_TS TIMESTAMP ); create table ALL_SCHEDULE ( ALL_SCH_ID INTEGER CONSTRAINT all_schedule_pk primary key GENERATED ALWAYS AS IDENTITY (START WITH 1, INCREMENT BY 1), SCHEDULE_NAME VARCHAR(100), DESCRIPTION VARCHAR(255), CREATED_TS TIMESTAMP, LAST_UPDT_TS TIMESTAMP ); create table TO_DO ( TO_DO_ID INTEGER CONSTRAINT to_do_pk primary key GENERATED ALWAYS AS IDENTITY (START WITH 1, INCREMENT BY 1), ULID VARCHAR(32), ALL_SCH_ID INTEGER, STATUS INTEGER, CREATED_TS TIMESTAMP, LAST_UPDT_TS TIMESTAMP ); create table COURSE_SECTION ( SECTION_ID INTEGER CONSTRAINT section_pk primary key GENERATED ALWAYS AS IDENTITY (START WITH 1, INCREMENT BY 1), COURSE_ID INTEGER, ALL_SCH_ID INTEGER, SECTION_NUMBR VARCHAR(32), CREATED_TS TIMESTAMP, LAST_UPDT_TS TIMESTAMP ); create table COURSE_PREFERENCE ( COURSE_PREFERENCE_ID INTEGER CONSTRAINT course_pref_pk primary key GENERATED ALWAYS AS IDENTITY (START WITH 1, INCREMENT BY 1), PROF_ID INTEGER, COURSE_ID INTEGER, LAB_NEEDED INTEGER, COMMENTS VARCHAR(3000), CREATED_TS TIMESTAMP, LAST_UPDT_TS TIMESTAMP ); create table DAY_PREFERENCE ( DAY_PREFERENCE_ID INTEGER CONSTRAINT day_pref_pk primary key GENERATED ALWAYS AS IDENTITY (START WITH 1, INCREMENT BY 1), PROF_ID INTEGER, DAYS VARCHAR(100), IS_EVENING INTEGER, CREATED_TS TIMESTAMP, LAST_UPDT_TS TIMESTAMP ); CREATE TABLE PROFESSOR ( PROF_ID INTEGER CONSTRAINT professor_pk primary key GENERATED ALWAYS AS IDENTITY (START WITH 1, INCREMENT BY 1), PROF_NAME varchar(100), ULID varchar(100), EMPLOYMENT_STATUS INTEGER, TEACHING_STATUS INTEGER, CREATED_TS TIMESTAMP , LAST_UPDT_TS TIMESTAMP ); CREATE TABLE ROOM ( ROOM_ID INTEGER CONSTRAINT room_pk primary key GENERATED ALWAYS AS IDENTITY (START WITH 1, INCREMENT BY 1), ROOM_NAME varchar(100), IS_LAB INTEGER, IS_AVAILABLE INTEGER, CREATED_TS TIMESTAMP , LAST_UPDT_TS TIMESTAMP ); CREATE TABLE COURSE ( COURSE_ID INTEGER CONSTRAINT course_pk primary key GENERATED ALWAYS AS IDENTITY (START WITH 1, INCREMENT BY 1), COURSE_CODE varchar(100), COURSE_NAME varchar(100), CREATED_TS TIMESTAMP , LAST_UPDT_TS TIMESTAMP ); CREATE TABLE SCHEDULE ( SCHEDULE_ID INTEGER CONSTRAINT schedule_pk primary key GENERATED ALWAYS AS IDENTITY (START WITH 1, INCREMENT BY 1), ALL_SCH_ID INTEGER, SECTION_ID INTEGER, PROF_ID INTEGER, ROOM_ID INTEGER, DAYS varchar(100), CLASS_TIME varchar(100), CREATED_TS TIMESTAMP , LAST_UPDT_TS TIMESTAMP );
true
df31ba8a5a6d06572882c04297e89e52fd483fcb
SQL
cruz-thomas-cory-caroline/master-of-music
/src/main/theorySeeder.sql
UTF-8
1,146
3
3
[]
no_license
USE master_of_music_db; INSERT INTO questions (id, question, game_id)VALUES (1,'What scale does the Phrygian mode belong to?',2), (2, 'What is the most common time signature?', 2), (3, 'What is the third mode of the G Major Scale?',2), (4,'Assuming a guitar is in standard tuning, what note is on the 5th fret of the low E string?',2), (5,'Which of the following can be played over a b phrygian chord progression?',2), (6,'What notes are in the E minor scale?',2); INSERT INTO answers (id, answer, is_correct, question_id) VALUES (1,'Harmonic Minor',true,1), (2,'Diminished',false,1), (3,'Pentatonic',false,1), (4,'Major',false,1), (5,'4/4',true,2), (6,'7/8',false,2), (7,'5/4',false,2), (8,'6/4',false,2), (9,'Phrygian',true,3), (10,'Dorian',false,3), (11,'Aeolian',false,3), (12,'Mixolydian',false,3), (13,'B',false,4), (14,'F#',false,4), (15,'B flat',false,4), (16,'A',true,4), (17,'E major scale',false,5), (18,'E phrygian dominant',false,5), (19,'E Hungarian Minor',true,5), (20,'G Minor',false,5), (21,'E,E#,F,D,A,B,Octave',false,6), (22,'E,F,A♭,A,B,B#,E#',false,6), (23,'E,F#,G,A,B,C,D',true,6), (24,'G♭,G,A,B,B#,C#,Octave',false,6);
true
9d6e6d9bcaf7a7c653b2cd94597c69ed06184107
SQL
battenadam04/EverythingBackpacker
/everythingbackpacker_2017-08-29.sql
UTF-8
7,748
3.25
3
[]
no_license
# ************************************************************ # Sequel Pro SQL dump # Version 4541 # # http://www.sequelpro.com/ # https://github.com/sequelpro/sequelpro # # Host: 127.0.0.1 (MySQL 5.5.5-10.1.19-MariaDB) # Database: everythingbackpacker # Generation Time: 2017-08-29 20:13:03 +0000 # ************************************************************ /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; /*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */; /*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */; /*!40101 SET NAMES utf8 */; /*!40014 SET @OLD_FOREIGN_KEY_CHECKS=@@FOREIGN_KEY_CHECKS, FOREIGN_KEY_CHECKS=0 */; /*!40101 SET @OLD_SQL_MODE=@@SQL_MODE, SQL_MODE='NO_AUTO_VALUE_ON_ZERO' */; /*!40111 SET @OLD_SQL_NOTES=@@SQL_NOTES, SQL_NOTES=0 */; # Dump of table Accomodation # ------------------------------------------------------------ DROP TABLE IF EXISTS `Accomodation`; CREATE TABLE `Accomodation` ( `ID` bigint(11) NOT NULL, `Title` char(80) NOT NULL, `Description` varchar(800) NOT NULL, `Location` char(100) NOT NULL, `State` varchar(10) NOT NULL, `Image` varchar(300) NOT NULL, `Wifi` varchar(20) NOT NULL, `Parking` varchar(20) NOT NULL, `Bond` decimal(10,2) NOT NULL, `IDad` int(30) NOT NULL, KEY `ID` (`ID`) ) ENGINE=InnoDB DEFAULT CHARSET=latin1; LOCK TABLES `Accomodation` WRITE; /*!40000 ALTER TABLE `Accomodation` DISABLE KEYS */; INSERT INTO `Accomodation` (`ID`, `Title`, `Description`, `Location`, `State`, `Image`, `Wifi`, `Parking`, `Bond`, `IDad`) VALUES (0,'1 bedroom for rent','bedroom for rent that include Single bed, tv and ensuite. This is for a single person and not a couple and the owners are a quiet couple so no loud tennants thanks.','Brisbane','QLD','images/accom/adam23@live.co.uk.jpg','Yes','Yes',1000.00,0), (1,'Double bed bedroom for single person or couple','lovely double bed room with balcony for either 1 person or a couple. You get your own bathroom and access to kitchen and living room','Melbourne','VIC','images/accom/adam23@live.co.uk.jpg','Yes','No',2000.00,0); /*!40000 ALTER TABLE `Accomodation` ENABLE KEYS */; UNLOCK TABLES; # Dump of table Advertiser # ------------------------------------------------------------ DROP TABLE IF EXISTS `Advertiser`; CREATE TABLE `Advertiser` ( `Permission` int(10) NOT NULL, `Fname` char(80) NOT NULL, `Sname` char(80) NOT NULL, `Email` char(80) NOT NULL, `Phone` bigint(20) NOT NULL, `Password` varchar(50) NOT NULL, `BusinessName` char(80) NOT NULL, `IDad` bigint(20) NOT NULL, `Term` int(20) NOT NULL, `Joined` date NOT NULL, `ID` int(11) DEFAULT NULL, `EndDate` date DEFAULT NULL, KEY `ID` (`IDad`), KEY `IDad` (`IDad`) ) ENGINE=InnoDB DEFAULT CHARSET=latin1; LOCK TABLES `Advertiser` WRITE; /*!40000 ALTER TABLE `Advertiser` DISABLE KEYS */; INSERT INTO `Advertiser` (`Permission`, `Fname`, `Sname`, `Email`, `Phone`, `Password`, `BusinessName`, `IDad`, `Term`, `Joined`, `ID`, `EndDate`) VALUES (2,'adam','batten','adam23@live.co.uk',2498298,'password','Autos',0,3,'2016-12-27',0,'2017-03-27'), (4,'john','mike','adamda@live.co.uk',45345,'password37','SydneyCo',1,6,'2016-12-27',1,'2017-06-27'), (4,'mike','batten','mike@live.co.uk',80808,'password','co',2,12,'2017-07-22',2,'2018-07-22'); /*!40000 ALTER TABLE `Advertiser` ENABLE KEYS */; UNLOCK TABLES; # Dump of table backpacker # ------------------------------------------------------------ DROP TABLE IF EXISTS `backpacker`; CREATE TABLE `backpacker` ( `Permission` int(10) NOT NULL, `Fname` char(80) NOT NULL, `Sname` char(80) NOT NULL, `Email` char(80) NOT NULL, `Phone` int(20) NOT NULL, `Password` varchar(100) NOT NULL, `ID` int(11) NOT NULL, `Term` int(20) NOT NULL, `Joined` date NOT NULL, `EndDate` date DEFAULT NULL, KEY `ID` (`ID`), KEY `ID_2` (`ID`) ) ENGINE=InnoDB DEFAULT CHARSET=latin1; LOCK TABLES `backpacker` WRITE; /*!40000 ALTER TABLE `backpacker` DISABLE KEYS */; INSERT INTO `backpacker` (`Permission`, `Fname`, `Sname`, `Email`, `Phone`, `Password`, `ID`, `Term`, `Joined`, `EndDate`) VALUES (1,'adam','batten','adambatten@live.co.uk',495959,'password',0,3,'2017-01-03','2017-04-03'), (3,'james','batten','jbatten@live.co.uk',90900,'password',1,6,'2017-01-03','2017-04-03'), (1,'james','brown','adam@live.co.uk',80808,'password',0,3,'2017-08-29','2017-11-29'); /*!40000 ALTER TABLE `backpacker` ENABLE KEYS */; UNLOCK TABLES; # Dump of table Jobs # ------------------------------------------------------------ DROP TABLE IF EXISTS `Jobs`; CREATE TABLE `Jobs` ( `ID` bigint(20) NOT NULL, `Title` char(100) NOT NULL, `Description` varchar(800) NOT NULL, `Employer` char(100) NOT NULL, `Location` char(100) NOT NULL, `State` varchar(10) NOT NULL, `Visa` varchar(40) NOT NULL, `PayRate` decimal(10,2) NOT NULL, `IDad` int(30) NOT NULL, `Permission` int(11) DEFAULT NULL, KEY `ID` (`ID`) ) ENGINE=InnoDB DEFAULT CHARSET=latin1; LOCK TABLES `Jobs` WRITE; /*!40000 ALTER TABLE `Jobs` DISABLE KEYS */; INSERT INTO `Jobs` (`ID`, `Title`, `Description`, `Employer`, `Location`, `State`, `Visa`, `PayRate`, `IDad`, `Permission`) VALUES (0,'Farm labour','picking apples, bananas and general labour work.','J&J','brisbane','nsw','Yes',22.00,0,2), (2,'General labour','working on a construction site and using a range of power tools','Buidling Co','ljlj','vic','No',40.00,1,4), (3,'couple wanted for farm work','need young and fit couple to work around a farm for 2 weeks.','Apple Farm','Mooroopna','nsw','No',26.00,0,2), (4,'Skilled Labour wanted for temp work','looking for someone for temporary work that has experience with tools and machinery and can work without supervision','Co','Brisbane','Qld','Yes',24.00,2,4); /*!40000 ALTER TABLE `Jobs` ENABLE KEYS */; UNLOCK TABLES; # Dump of table Transport # ------------------------------------------------------------ DROP TABLE IF EXISTS `Transport`; CREATE TABLE `Transport` ( `ID` bigint(20) NOT NULL, `Price` decimal(10,2) NOT NULL, `Make` char(100) NOT NULL, `Model` char(50) NOT NULL, `Year` year(4) NOT NULL, `Description` varchar(800) NOT NULL, `Location` char(100) NOT NULL, `State` varchar(10) NOT NULL, `Image` varchar(300) NOT NULL, `FuelType` varchar(20) NOT NULL, `KM` int(255) NOT NULL, `IDad` int(30) NOT NULL, KEY `ID` (`ID`) ) ENGINE=InnoDB DEFAULT CHARSET=latin1; LOCK TABLES `Transport` WRITE; /*!40000 ALTER TABLE `Transport` DISABLE KEYS */; INSERT INTO `Transport` (`ID`, `Price`, `Make`, `Model`, `Year`, `Description`, `Location`, `State`, `Image`, `FuelType`, `KM`, `IDad`) VALUES (0,2000.00,'Holdon','Commodore','2003','Selling due to updating car. This is a great car with no problems and has recently been serviced. Will accept nearest offers as looking to sell quickly.','Sydney','NSW','images/transport/holdenadamda@live.co.uk.jpg','Diesel',200000,1), (1,1000.00,'not','Clio','2002','Great first time car or for a Backpacker looking for a cheap ride. Minor damage to exterior but no internal damage and will need Road Worthy Test.','Chatswood','NSW','images/transport/adamda@live.co.uk.jpg','Petrol',400000,1), (3,3000.00,'Ford','Focus','2003','Runs perfect and has been serviced last year. A few minor dents and scratchs but nothing serious. Just had clutch replaced and new front tires.','Redcliffe','QLD','images/transport/adam23@live.co.uk.jpg','Petrol',200000,0); /*!40000 ALTER TABLE `Transport` ENABLE KEYS */; UNLOCK TABLES; /*!40111 SET SQL_NOTES=@OLD_SQL_NOTES */; /*!40101 SET SQL_MODE=@OLD_SQL_MODE */; /*!40014 SET FOREIGN_KEY_CHECKS=@OLD_FOREIGN_KEY_CHECKS */; /*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */; /*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */; /*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */;
true
0a2d5f8e61f416123676eee39c3681c808300f2d
SQL
kousuke-2047/individual_activity
/Oldmove/sql/oldmove.sql
UTF-8
2,528
3.15625
3
[]
no_license
set names utf8; set foreign_key_checks =0; drop database if exists oldmove; create database if not exists oldmove; use oldmove; drop table if exists battlemonster; create table battlemonster( id int not null primary key auto_increment, name varchar(16), menber int, power int, guard int, hp int, maxhp int, mp int, maxmp int, actiontype int, odds int, filepath varchar(100), filename varchar(100)); drop table if exists actiontype; create table actiontype( id int not null primary key auto_increment, punch int, shield int, heal int, spell int, critical int); drop table if exists mymoney; create table mymoney( money int, bets int, monsterid int, maxrecord int); insert into battlemonster(name,menber,power,guard,hp,maxhp,mp,maxmp,actiontype,odds,filepath,filename)values("スライム",1,10,5,20,20,5,5,2,5,"./images","suraimu.png"); insert into battlemonster(name,menber,power,guard,hp,maxhp,mp,maxmp,actiontype,odds,filepath,filename)values("ドラキー",1,12,5,22,22,0,0,1,3,"./images","doraki.png"); insert into battlemonster(name,menber,power,guard,hp,maxhp,mp,maxmp,actiontype,odds,filepath,filename)values("ももんじゃ",1,15,7,25,25,0,0,1,2,"./images","momonja.png"); insert into battlemonster(name,menber,power,guard,hp,maxhp,mp,maxmp,actiontype,odds,filepath,filename)values("オーク",2,10,5,20,20,0,0,1,2,"./images","suraimu.jpg"); insert into battlemonster(name,menber,power,guard,hp,maxhp,mp,maxmp,actiontype,odds,filepath,filename)values("ばくだんいわ",2,10,5,20,20,0,0,1,2,"./images","suraimu.jpg"); insert into battlemonster(name,menber,power,guard,hp,maxhp,mp,maxmp,actiontype,odds,filepath,filename)values("ドラゴン",2,10,5,20,20,0,0,1,2,"./images","suraimu.jpg"); insert into battlemonster(name,menber,power,guard,hp,maxhp,mp,maxmp,actiontype,odds,filepath,filename)values("ああああ",3,10,5,20,20,10,10,3,2,"./images","test1.png"); insert into battlemonster(name,menber,power,guard,hp,maxhp,mp,maxmp,actiontype,odds,filepath,filename)values("いいいい",3,10,5,20,20,10,10,3,2,"./images","test2.png"); insert into battlemonster(name,menber,power,guard,hp,maxhp,mp,maxmp,actiontype,odds,filepath,filename)values("うううう",3,10,5,20,20,10,10,3,2,"./images","test3.png"); insert into actiontype(punch,shield,heal,spell,critical)values(3,0,0,0,1); insert into actiontype(punch,shield,heal,spell,critical)values(3,0,0,1,1); insert into actiontype(punch,shield,heal,spell,critical)values(2,0,1,1,0); insert into mymoney(money)values(100);
true
53da0bd5218f555220432dacce8e1ed1f9967772
SQL
revaekap/BeStup
/db_setup.sql
UTF-8
3,981
3.03125
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 5.0.1 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Waktu pembuatan: 26 Jul 2020 pada 13.58 -- Versi server: 10.4.11-MariaDB -- Versi PHP: 7.4.2 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; /*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */; /*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */; /*!40101 SET NAMES utf8mb4 */; -- -- Database: `db_setup` -- -- -------------------------------------------------------- -- -- Struktur dari tabel `tb_admin` -- CREATE TABLE `tb_admin` ( `admin_id` int(11) NOT NULL, `admin_name` varchar(50) NOT NULL, `username` varchar(50) NOT NULL, `password` varchar(100) NOT NULL, `admin_telp` varchar(20) NOT NULL, `admin_email` varchar(50) NOT NULL, `admin_address` text NOT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4; -- -- Dumping data untuk tabel `tb_admin` -- INSERT INTO `tb_admin` (`admin_id`, `admin_name`, `username`, `password`, `admin_telp`, `admin_email`, `admin_address`) VALUES (1, 'Reva Eka Prasetyo', 'admin', '81dc9bdb52d04dc20036dbd8313ed055', '08553039012', 'revaekap06@outlook.com', 'Wage 2'); -- -------------------------------------------------------- -- -- Struktur dari tabel `tb_category` -- CREATE TABLE `tb_category` ( `category_id` int(11) NOT NULL, `category_name` varchar(25) NOT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4; -- -- Dumping data untuk tabel `tb_category` -- INSERT INTO `tb_category` (`category_id`, `category_name`) VALUES (6, 'Kursi'), (7, 'Meja'), (8, 'Rak & Penyimpanan'); -- -------------------------------------------------------- -- -- Struktur dari tabel `tb_product` -- CREATE TABLE `tb_product` ( `product_id` int(11) NOT NULL, `category_id` int(11) NOT NULL, `product_name` varchar(100) NOT NULL, `product_price` int(11) NOT NULL, `product_description` text NOT NULL, `product_images` varchar(100) NOT NULL, `product_status` tinyint(1) NOT NULL, `date_created` timestamp NOT NULL DEFAULT current_timestamp() ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4; -- -- Dumping data untuk tabel `tb_product` -- INSERT INTO `tb_product` (`product_id`, `category_id`, `product_name`, `product_price`, `product_description`, `product_images`, `product_status`, `date_created`) VALUES (5, 6, 'Kursi 1', 120000, '<p>Tes</p>\r\n', 'produk1595756110.jpg', 1, '2020-07-26 09:35:10'), (6, 7, 'Meja - 1', 320000, '', 'produk1595756141.jpg', 1, '2020-07-26 09:35:41'), (7, 7, 'Meja -2 ', 150000, '', 'produk1595756172.jpg', 1, '2020-07-26 09:36:12'), (8, 8, 'Rak Buku -1 ', 400000, '<p>Tes</p>\r\n', 'produk1595756193.jpg', 1, '2020-07-26 09:36:33'), (9, 8, 'Rak Buku - 2', 500000, '', 'produk1595756210.jpg', 1, '2020-07-26 09:36:50'), (10, 6, 'Kursi 2 ', 50000, '', 'produk1595761433.jpg', 0, '2020-07-26 11:03:53'); -- -- Indexes for dumped tables -- -- -- Indeks untuk tabel `tb_admin` -- ALTER TABLE `tb_admin` ADD PRIMARY KEY (`admin_id`); -- -- Indeks untuk tabel `tb_category` -- ALTER TABLE `tb_category` ADD PRIMARY KEY (`category_id`); -- -- Indeks untuk tabel `tb_product` -- ALTER TABLE `tb_product` ADD PRIMARY KEY (`product_id`), ADD KEY `category_id` (`category_id`); -- -- AUTO_INCREMENT untuk tabel yang dibuang -- -- -- AUTO_INCREMENT untuk tabel `tb_admin` -- ALTER TABLE `tb_admin` MODIFY `admin_id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=2; -- -- AUTO_INCREMENT untuk tabel `tb_category` -- ALTER TABLE `tb_category` MODIFY `category_id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=9; -- -- AUTO_INCREMENT untuk tabel `tb_product` -- ALTER TABLE `tb_product` MODIFY `product_id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=11; COMMIT; /*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */; /*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */; /*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */;
true
a8ccf32c0e62583a3e894efed3451ff5b4112870
SQL
cedricsam/Contributions
/quebec/donateurs.sql
UTF-8
1,416
2.96875
3
[]
no_license
-- -- PostgreSQL database dump -- SET statement_timeout = 0; SET client_encoding = 'UTF8'; SET standard_conforming_strings = on; SET check_function_bodies = false; SET client_min_messages = warning; SET search_path = public, pg_catalog; SET default_tablespace = ''; SET default_with_oids = false; -- -- Name: donateurs; Type: TABLE; Schema: public; Owner: lp; Tablespace: -- CREATE TABLE donateurs ( id character varying(32) NOT NULL, idrech integer, an integer, fkent integer, nom character varying(128), prenom character varying(128), municipalite character varying(128), codepostal character varying(7), dateajout character varying(12) ); ALTER TABLE public.donateurs OWNER TO lp; -- -- Name: donateurs_pkey; Type: CONSTRAINT; Schema: public; Owner: lp; Tablespace: -- ALTER TABLE ONLY donateurs ADD CONSTRAINT donateurs_pkey PRIMARY KEY (id); -- -- Name: donateurs_an_idx; Type: INDEX; Schema: public; Owner: lp; Tablespace: -- CREATE INDEX donateurs_an_idx ON donateurs USING btree (an); -- -- Name: donateurs_fkent_idx; Type: INDEX; Schema: public; Owner: lp; Tablespace: -- CREATE INDEX donateurs_fkent_idx ON donateurs USING btree (fkent); -- -- Name: donateurs_idrech_idx; Type: INDEX; Schema: public; Owner: lp; Tablespace: -- CREATE INDEX donateurs_idrech_idx ON donateurs USING btree (idrech); -- -- PostgreSQL database dump complete --
true
73a68715c7839d4a2921dd332b251570521b6d40
SQL
wpdud94/util_sql
/sql/mysql05_join.sql
UTF-8
7,101
4.34375
4
[]
no_license
-- [Join] %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% /* 클래스간의 연간 = hasing hasing 방법 = 필드 주입, 생성자 or setter # 테이블 간 연간 - 부모자식 관계 - Foreign Key 갖는 쪽이 자식 : 그 테이블이 필드니까 - 이 외의 관계는 없다 # 용어 - join : 하나 이상의 테이블로부터 데이터를 질의하기 위해서 조인을 사용. 다수의 테이블을 활용하는 것 - selfjoin이 있어서 하나 이상이라고 하지만 보통은 두 개 이상임 */ SELECT * FROM emp; SELECT * FROM dept; SELECT DISTINCT deptno FROM emp; -- MultiPulisty /* >- 라는 형식으로 관계를 표현 emp의 다수의 직원이 dept에 연관됨 [그림] emp detp 0...M >-------------0 / 1 */ -- 특정 사원이 소속된 부서 정보를 검색(사원의 정보 + 부서 정보 모두 알고 싶다) -- 그러려면 [다중테이블]로부터 질의를 해야 함 SELECT * FROM emp, dept; /* Cartesiann Product - 단순 곱의 형태로 나오는 것 - 직원이 14명인데, 다중테이블로 질의했을 때 56줄이 나오는 상황 (14 x 4 = 56) Cartesiann Product 도출되는 경우 1) 조인 조건을 안 줬거나 2) 조인 조건을 잘못줬거나 결론: 조인 조건을 잘 주어라 */ /* Join 조건 : 양쪽테이블에 존재하는 컬럼, Foreign Key. --> deptno Join 조건 주는 방식 1) where 절 이용해서 각각 테이블의 공통 컬럼을 명시 where emp.deptno=dept.deptno 해당 부서하고만 연결. 각각의 부서에 대한 정보를 찾아오는 식 */ SELECT * FROM emp, dept; -- 1) 컬럼명을 일일이 명시해야 한다... 공개되지 않아야 하는 or 불필요한 컬럼이 출력되는 것을 방지한다... for 재사용성 -- Projection : 명시하고 싶은 컬럼만 명시한다. -- Selection : 원하는 행만 명시한다 SELECT * FROM emp, dept WHERE emp.deptno=dept.deptno; -- 14줄 산출 -- 2) 중복되는 컬럼 중 어느 테이블을 뽑아야 하는지 모른다. ambiguous -- 각각의 컬럼이 어느 테이블에 있는지 명시하는 게 중요하다. -- 컬럼명 앞에 table alias를 부여. 모두! SELECT empno, ename, sal, deptno, dname, loc FROM emp, dept WHERE emp.deptno = dept.deptno; -- 3) 테이블 명을 일일이 붙이는 게 번거롭다. SELECT emp.empno, emp.ename, emp.sal, emp.deptno, dept.dname, dept.loc FROM emp, dept WHERE emp.deptno = dept.deptno; -- 4) 테이블 명을 줄인다 SELECT e.empno, e.ename, e.sal, e.deptno, d.dname, d.loc FROM emp e, dept d WHERE e.deptno = d.deptno; -- 예제1 -- 사원의 이름, 급여, 부서번호, 부서명을 검색. 단, 급여가 2000 이상이고 30번 부서에 한해서만 검색 -- where 절에서 join 조건과 비조인 조건이 혼용 SELECT e.ename, e.sal, e.deptno, d.dname FROM emp e, dept d WHERE e.deptno = d.deptno AND sal >= 2000 AND e.deptno = 30; -- -------------------------------------------------------------------------------------------------------- -- [self join] %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% -- selection한 테이블을 하나의 테이블로 본다. 각 테이블을 조인 -- From절 뒤 sub query -- 조인 조건 찾아내는 게 키포인트 SELECT empno, ename, mgr FROM emp WHERE ename = 'BLAKE'; -- e SELECT empno, ename FROM emp WHERE empno = 7839; -- m -- BLAKE라는 사원의 상사 이름을 검색하는데... 사원번호, 사원이름, 상사번호, 상사이름 검색 -- 1) SELECT empno, ename, mgr FROM emp; -- 특정 사원의 상사 검색. 해당 사원의 상사번호를 알아야 함 SELECT empno, ename FROM emp; -- 상사의 정보 -- 2) SELECT * FROM (SELECT empno, ename, mgr FROM emp) e, (SELECT empno, ename FROM emp) m; -- Cartesian Talbe -- 3) 조인 조건 : 상사번호 = 사원번호 SELECT * FROM (SELECT empno 사원번호, ename 사원명, mgr FROM emp) e, (SELECT empno, ename FROM emp) m WHERE e.mgr = m.empno; -- 4) SELECT e.empno 사원번호, e.ename 사원명, m.ename 상사명 FROM (SELECT empno, ename, mgr FROM emp) e, (SELECT empno, ename FROM emp) m WHERE e.mgr = m.empno; -- 5) SELECT e.empno 사원번호, e.ename 사원명, m.ename 상사명 FROM (SELECT empno, ename, mgr FROM emp) e, (SELECT empno, ename FROM emp) m WHERE e.mgr = m.empno AND e.ename = 'BLAKE'; -- -------------------------------------------------------------------------------------------------------- -- [Outer Join] /* # Outer Join이란? - A, B 테이블을 조인할 경우, 조건에 맞지 않는 데이터는 디스플리에되지 않는다. - 조건에 맞지 않는 데이터도 디스플레이하고 싶을 때 Outer Join 사용 # Outer Join 종류 - 데이터가 어느 쪽에 있는가에 따라서 종류의 이름이 정햄 1) LEFT OUTER JOIN 2) RIGHT OUTER JOIN 3) FULL OUTER JOIN - 실행이 안 됨. 그럴 때 어떻게 해야 하느냐? */ -- 예제 1 : 조건에 맞지 않는 데이터가 디스플레이 되지 않는 경우 중 deptno 문제. RIGHT OUTER JOIN -- 사원의 이름, 부서번호, 부서이름을 검색 --> deptno = 40 인 데이터가 안 나옴. emp 테이블에 없기 때문. SELECT e.ename, d.deptno, d.dname FROM emp e, dept d WHERE e.deptno = d.deptno; -- d의 내용을 모두 공개하고 싶다. 그래서 right outer join. -- 벤다이어그램에서 교집합에 해당하지 않는 부분이 어느 방향이냐에 따라서 left, right 다름 -- 우측테이블이 기준이 되어 결과를 생산 : d가 기준이고 e의 교집합이 부는 느낌 SELECT e.ename, d.deptno, d.dname FROM emp e RIGHT OUTER JOIN dept d ON e.deptno = d.deptno; -- deptni = 40인 데이터 디스플레이됨. -- 예제2 : 특정 상사의 이름 검색 시 누락부분. LEFT OUTER JOIN SELECT CONCAT(e.ename, '의 매니저는 ', m.ename, '입니다.') Info FROM emp e, emp m -- emp 테이블을 둘 로 나눈 것. duplicate 느낌. 가상 공간에서 원본 복사본 가지고 노는 느낌 WHERE e.mgr = m.empno; -- KING은 매니저가 없기에 위 테이블에 나타나지 않는다. -- King이 나오도록. 조인 조건에 의해 m에서는 mgr이 없는 king은 없어짐. 따라서 king 데이는 e에 있다. SELECT CONCAT(e.ename, '의 매니저는 ', m.ename, '입니다.') Info FROM emp e LEFT OUTER JOIN emp m -- emp 테이블을 둘 로 나눈 것. duplicate 느낌. 가상 공간에서 원본 복사본 가지고 노는 느낌 ON e.mgr = m.empno; -- 3) FULL -- A : 10 20 30 FULL OUTER JOIN B : 10 ,20, 40 --> 10, 20, 30, 40 -- 중복 제거한 합집한 논리. but 안 돌아감 -- union 연사자 사용 /* FULL OUTER JOIN을 실습할 수 있는 간단한 테이블을 만들고 예제 풀자 */ CREATE TABLE outer1(sawonid int); CREATE TABLE outer2(sawonid int); INSERT INTO outer1 VALUES (10); INSERT INTO outer1 VALUES (20); INSERT INTO outer1 VALUES (40); INSERT INTO outer2 VALUES (10); INSERT INTO outer2 VALUES (20); INSERT INTO outer2 VALUES (30); -- FULL OUTER JOIN 사용 SELECT sawonid FROM outer1 UNION SELECT sawonid FROM outer2 ORDER BY sawonid; -- UNION ALL : 중복 허용alter
true
19faf5f013900691f331a2d74f3bff709957fe81
SQL
altamira/visualstudio
/Sistema de Informação Altamira/EGISADMIN.Database/dbo/Stored Procedures/sp_AlteraGrupoUsuario.sql
UTF-8
1,007
3.359375
3
[]
no_license
 CREATE procedure sp_AlteraGrupoUsuario --dados depois da execuçao (novos) @nm_grupo_usuario varchar (40), @sg_grupo_usuario char (10), @ic_tipo_grupo_usuario char (1), --dados antes da execuçao (antigos) @cd_grupo_usuario_old int /*, @nm_grupo_usuario_old varchar (40), @sg_grupo_usuario_old char (10), @ic_tipo_grupo_usuario_old char (1) */ AS BEGIN --inicia a transaçao BEGIN TRANSACTION --gera código e executa travamento UPDATE GrupoUsuario SET nm_grupo_usuario = @nm_grupo_usuario, sg_grupo_usuario = @sg_grupo_usuario, ic_tipo_grupo_usuario = @ic_tipo_grupo_usuario WHERE cd_grupo_usuario = @cd_grupo_usuario_old /* and nm_grupo_usuario = @nm_grupo_usuario_old and sg_grupo_usuario = @sg_grupo_usuario_old and ic_tipo_grupo_usuario = @ic_tipo_grupo_usuario_old */ if @@ERROR = 0 COMMIT TRAN else begin --RAISERROR @@ERROR ROLLBACK TRAN end end SET QUOTED_IDENTIFIER OFF SET ANSI_NULLS ON
true
dfb8b44145cb3a5eaf935f18aeeb9ac0cce4e316
SQL
RAJALAKSHMIRAJKUMAR/EI
/DYNAMIC MIGRATION SP/SP_TO_CHECK_CUSTOMER_LP_NOT_IN_UNIT_LP_VER_0_1_270622014.SQL
UTF-8
1,743
3.75
4
[]
no_license
--version:0.1 --sdate:27/06/2014 --edate:27/06/2014 --issue:765 --commentno:205 --desc:CUSTOMER LP NOT IN UNIT LP --doneby:RL DROP PROCEDURE IF EXISTS SP_TO_CHECK_CUSTOMER_LP_NOT_IN_UNIT_LP; CREATE PROCEDURE SP_TO_CHECK_CUSTOMER_LP_NOT_IN_UNIT_LP() BEGIN DROP TABLE IF EXISTS TEMP_INV_DATE; CREATE TABLE TEMP_INV_DATE( ID INTEGER AUTO_INCREMENT, UNIT_ID INTEGER, UNIT_NO SMALLINT(4), UD_START_DATE DATE, UD_END_DATE DATE, CUSTOMER_ID INTEGER, CUSTOMER_FIRST_NAME CHAR(30), CUSTOMER_LAST_NAME CHAR(30), CED_REC_VER INTEGER, CUSTOMER_START_DATE DATE, CUSTOMER_END_DATE DATE, CLP_PRETERMINATE_DATE DATE, PRIMARY KEY(ID)); INSERT INTO TEMP_INV_DATE(UNIT_ID,UNIT_NO,UD_START_DATE,UD_END_DATE,CUSTOMER_ID,CUSTOMER_FIRST_NAME,CUSTOMER_LAST_NAME,CED_REC_VER,CUSTOMER_START_DATE,CUSTOMER_END_DATE,CLP_PRETERMINATE_DATE) SELECT U.UNIT_ID, U.UNIT_NO, UD.UD_START_DATE, UD.UD_END_DATE, C.CUSTOMER_ID, C.CUSTOMER_FIRST_NAME, C.CUSTOMER_LAST_NAME, CED.CED_REC_VER, CLP.CLP_STARTDATE, CLP.CLP_ENDDATE, CLP.CLP_PRETERMINATE_DATE FROM UNIT U, UNIT_DETAILS UD, CUSTOMER C, CUSTOMER_ENTRY_DETAILS CED, CUSTOMER_LP_DETAILS CLP WHERE U.UNIT_ID = CED.UNIT_ID AND C.CUSTOMER_ID = CLP.CUSTOMER_ID AND C.CUSTOMER_ID = CED.CUSTOMER_ID AND U.UNIT_ID = UD.UNIT_ID AND CLP.CUSTOMER_ID = CED.CUSTOMER_ID AND CED.CED_REC_VER = CLP.CED_REC_VER AND CLP.CLP_GUEST_CARD IS NULL; CREATE OR REPLACE VIEW CUSTOMER_LEASE_PERIOD AS SELECT UNIT_ID,UNIT_NO,UD_START_DATE,UD_END_DATE,CUSTOMER_ID,CUSTOMER_FIRST_NAME,CUSTOMER_LAST_NAME,CED_REC_VER,CUSTOMER_START_DATE,CUSTOMER_END_DATE,CLP_PRETERMINATE_DATE FROM TEMP_INV_DATE WHERE (CUSTOMER_START_DATE<UD_START_DATE)OR (CUSTOMER_END_DATE>=UD_END_DATE) ORDER BY CUSTOMER_ID,CED_REC_VER; END;
true
dddee6b00131ed024d2e245de762f17236c9f520
SQL
Hung040299/bunbu-microservice
/database-microservice/cv_database.sql
UTF-8
2,637
4
4
[]
no_license
create table cv_templates( cv_template_id SERIAL primary key, location varchar(50), skill varchar(4000), product varchar(4000), link_img varchar (250), user_role_id int, created_at TIMESTAMP, update_at TIMESTAMP ); create index idx_cvtemplate_id on cv_templates(cv_template_id); create table cvs( cv_id SERIAL primary key, location varchar(50), skill varchar(4000), product varchar(4000), link_img varchar (250), view_count int default 0, user_role_id int, created_at TIMESTAMP, update_at timestamp ); create index idx_cvs_id on cvs(cv_id); create table attributes( attribute_id SERIAL primary key, attribute_name varchar(50) ); create table attribute_values( attribute_value_id SERIAL primary key, attribute_value_name varchar(4000), attribute_id int, cv_id int, created_at TIMESTAMP, update_at timestamp, foreign key(attribute_id) references attributes(attribute_id) ON DELETE CASCADE, foreign key(cv_id) references cvs(cv_id) ON DELETE CASCADE ); create table experiences ( experience_id SERIAL primary key, old_company varchar(50), join_date date, out_date date, cv_id int, created_at TIMESTAMP, update_at timestamp, foreign key(cv_id) references cvs(cv_id) ON DELETE CASCADE ); create table programming_languages_used( programming_language_id SERIAL primary key, programming_language_name varchar(20), experience_id int, created_at TIMESTAMP, update_at timestamp, foreign key(experience_id) references experiences (experience_id) ON DELETE CASCADE ); create table experiences_templates ( experience_template_id SERIAL primary key, old_company varchar(50), join_date date, out_date date, cv_template_id int, created_at TIMESTAMP, update_at timestamp, foreign key(cv_template_id) references cv_templates (cv_template_id) ON DELETE CASCADE ); create table programming_languages_used_templates( programming_language_template_id SERIAL primary key, programming_language_template_name varchar(20), update_at timestamp, created_at TIMESTAMP, experience_template_id int, foreign key(experience_template_id) references experiences_templates (experience_template_id) ON DELETE CASCADE ); create table tag_name ( tag_name_id SERIAL primary key, tag_name varchar(50), cv_id int, update_at timestamp, created_at TIMESTAMP, foreign key(cv_id) references cvs (cv_id) ON DELETE CASCADE ); create index idx_tag_name on tag_name(tag_name); create table likes( like_id serial, cv_id int, user_id int, created_at TIMESTAMP, update_at timestamp, foreign key(cv_id) references cvs(cv_id) ON DELETE CASCADE );
true
187cb4eac3c2a34590fa21fe953c203c9cec444e
SQL
100dej/PlanningS
/Form/700/SQL Program Behavior/dbo.ProgExecuteAllTimeForChart.sql
UTF-8
492
3.046875
3
[ "MIT" ]
permissive
create proc ProgExecuteAllTimeForChart (@Uname nvarchar(8)) as select case when xTime <= 12 then 'AM' else 'PM' end as xTime, sum(CountSuccessTime) as CountSuccessTime, sum(CountErrorTime) as CountErrorTime, sum(CountTotalTime) as CountTotalTime, sum(SuccessTime) as SuccessTime, sum(ErrorTime) as ErrorTime, sum(TotalTime) as TotalTime from PlanningS.dbo.ProgExecuteTime() group by case when xTime <= 12 then 'AM' else 'PM' end order by xtime
true
602d4aabf1b03998c4cd6f4c0125d05e351be30c
SQL
brittacarroll/sql-marathon
/schema.sql
UTF-8
312
3.46875
3
[]
no_license
DROP TABLE IF EXISTS movies; DROP TABLE IF EXISTS categories; CREATE TABLE categories( id SERIAL PRIMARY KEY, name VARCHAR(100) NOT NULL UNIQUE ); CREATE TABLE movies( id SERIAL PRIMARY KEY, title VARCHAR(100) NOT NULL, year INT, category_id INT REFERENCES categories(id), UNIQUE(title, year) );
true
9441338b6426308e522ab10a8e5e977262822e41
SQL
silence-do-good/stress-test-Postgres-and-MySQL
/dump/low/day23/select2215.sql
UTF-8
178
2.71875
3
[]
no_license
SELECT timeStamp, temperature FROM ThermometerOBSERVATION o WHERE timestamp>'2017-11-22T22:15:00Z' AND timestamp<'2017-11-23T22:15:00Z' AND temperature>=41 AND temperature<=95
true
830edb25444b95abee8624a6b4d43166e7ec8f9c
SQL
cindygriffin/sql-scratch-capstone-turn-in
/Warby Parker/Warby_Parker_Cindy_Griffin.sql
UTF-8
1,454
4.21875
4
[]
no_license
--Warby Parker Capstone --Section 1.1 SELECT * FROM survey LIMIT 10; --Section 1.2 SELECT question, COUNT (question) FROM survey GROUP BY question; --Section 1.4 SELECT * FROM quiz LIMIT 5; SELECT * FROM home_try_on LIMIT 5; SELECT * FROM purchase LIMIT 5; --Section 1.5 SELECT quiz.user_id, CASE WHEN home_try_on.user_id IS NOT NULL THEN 'true' ELSE 'false' END AS 'is_home_try_on', home_try_on.number_of_pairs, CASE WHEN purchase.user_id IS NOT NULL THEN 'true' ELSE 'false' END AS 'is_purchase' FROM quiz LEFT JOIN home_try_on ON quiz.user_id = home_try_on.user_id LEFT JOIN purchase ON quiz.user_id = purchase.user_id LIMIT 10; --Section 1.6 SELECT COUNT(quiz.user_id), CASE WHEN home_try_on.user_id IS NOT NULL THEN 'true' ELSE 'false' END as 'is_home_try_on', home_try_on.number_of_pairs, CASE WHEN purchase.user_id IS NOT NULL THEN 'true' ELSE 'false' END AS 'is_purchase' FROM quiz LEFT JOIN home_try_on ON quiz.user_id = home_try_on.user_id LEFT JOIN purchase ON quiz.user_id = purchase.user_id GROUP BY is_home_try_on, home_try_on.number_of_pairs, is_purchase; --Section 1.6 Fit SELECT fit, COUNT (fit) AS 'fit_count' FROM quiz GROUP BY fit ORDER BY fit_count DESC; --Section 1.6 Model and Color SELECT model_name, COUNT (model_name) AS 'count_model', color FROM purchase GROUP BY model_name, color ORDER BY count_model DESC;
true
415a3a0396a1fe8eb339d56de428f4f5aadc4241
SQL
guptam/data-observability-in-practice
/queries/distribution/dist-query-rolling-avg.sql
UTF-8
524
4.03125
4
[]
no_license
.headers on WITH NULL_RATES AS( SELECT DATE_ADDED, CAST(SUM(CASE WHEN AVG_TEMP IS NULL THEN 1 ELSE 0 END) AS FLOAT) / COUNT(*) AS AVG_TEMP_NULL_RATE FROM EXOPLANETS GROUP BY DATE_ADDED ), NULL_WITH_AVG AS( SELECT *, AVG(AVG_TEMP_NULL_RATE) OVER ( ORDER BY DATE_ADDED ASC ROWS BETWEEN 14 PRECEDING AND CURRENT ROW) AS TWO_WEEK_ROLLING_AVG FROM NULL_RATES GROUP BY DATE_ADDED ) SELECT * FROM NULL_WITH_AVG WHERE AVG_TEMP_NULL_RATE - TWO_WEEK_ROLLING_AVG > 0.3;
true
4dc25451e9a7d76388220caebb9e5a6357642217
SQL
opentechinstitute/t4sj-queries
/990/countTermsSearchSpecificField.sql
UTF-8
365
3.65625
4
[]
no_license
-- Or get all rows by omitting the group by clause -- 'technology' in their ACTIVIDESCRI variable's value SELECT t.topic, count(irs990) FROM ( VALUES ('education'), ('technology')) t (topic) JOIN irs990 ON to_tsvector('english', irs990.value) @@ to_tsquery('english', t.topic) WHERE irs990.variable = 'ACTIVIDESCRI' GROUP BY t.topic;
true
cb9922e2af1e318534153e5cd5004cd4fe835573
SQL
unison/unison
/build/loading/aux/ncbi/sql/mim2gene-create.sql
UTF-8
343
3.125
3
[ "LicenseRef-scancode-unknown-license-reference", "Apache-2.0", "CC-BY-4.0" ]
permissive
create table ncbi.mim2gene ( mim_id integer not null, gene_id integer not null, type text not null ) without oids; create index mim2gene_mim_id on ncbi.mim2gene(mim_id); create index mim2gene_gene_id on ncbi.mim2gene(gene_id); comment on table ncbi.mim2gene is 'NCBI Entrez Gene <-> MIM mapping'; grant select on ncbi.mim2gene to PUBLIC;
true
a5402b6f8de75755a7b695b0a033d2c37a3f51cf
SQL
vladimirtitov/anonimvoting
/sql/anonim_voting_tallier.sql
UTF-8
3,339
3.09375
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 4.7.0 -- https://www.phpmyadmin.net/ -- -- Host: localhost:3306 -- Generation Time: May 30, 2018 at 05:51 PM -- Server version: 5.6.34-log -- PHP Version: 7.2.1 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; /*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */; /*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */; /*!40101 SET NAMES utf8mb4 */; -- -- Database: `anonim_voting_tallier` -- -- -------------------------------------------------------- -- -- Table structure for table `av_voting_data` -- CREATE TABLE `av_voting_data` ( `id` int(10) UNSIGNED NOT NULL, `voter_pub` text NOT NULL, `voter_secr` text, `bulletin` text, `bulletin_encrypted` text, `hash_bulletin_encrypted` text, `hash_voter_secr_encrypted` text, `voting_id` text NOT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8; -- -- Dumping data for table `av_voting_data` -- INSERT INTO `av_voting_data` (`id`, `voter_pub`, `voter_secr`, `bulletin`, `bulletin_encrypted`, `hash_bulletin_encrypted`, `hash_voter_secr_encrypted`, `voting_id`) VALUES (2, 'ewgwegw', NULL, NULL, NULL, NULL, NULL, '4'), (6, 'ewgwegw32323', NULL, NULL, NULL, NULL, NULL, '4'), (13, 'ewgwegw32323sdasdasdas', NULL, NULL, NULL, NULL, NULL, '3'), (14, 'ewgwegw32323sdasdasdaefwefws', NULL, NULL, NULL, NULL, NULL, '3'), (15, 'wdqwd', NULL, NULL, NULL, NULL, NULL, '3'), (16, 'wddsadsqwd', NULL, NULL, NULL, NULL, NULL, '3'), (17, 'wddsads21qwd', NULL, NULL, NULL, NULL, NULL, '3'); -- -------------------------------------------------------- -- -- Table structure for table `votings` -- CREATE TABLE `votings` ( `id` int(11) NOT NULL, `name` varchar(50) NOT NULL, `bulletin` text NOT NULL, `date_start` datetime NOT NULL, `date_end` datetime NOT NULL, `max_vote` int(11) NOT NULL, `public_key_vote` text NOT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8; -- -- Dumping data for table `votings` -- INSERT INTO `votings` (`id`, `name`, `bulletin`, `date_start`, `date_end`, `max_vote`, `public_key_vote`) VALUES (2, 'вова', 'ваыв', '2018-05-09 00:00:00', '2018-05-25 00:00:00', 2, ''), (3, 'Vova', 'Vova', '2016-12-12 21:00:00', '2016-12-12 21:00:00', 5, 'Vova'), (17, 'Vova', 'Vova', '2016-12-12 21:00:00', '2016-12-12 21:00:00', 5, 'Vova312312'), (18, 'Vova', 'Vova', '2016-12-12 21:00:00', '2016-12-12 21:00:00', 5, 'Vova3123123232'), (19, 'Vova', 'Vova', '2016-12-12 21:00:00', '2016-12-12 21:00:00', 5, 'sdfasf'); -- -- Indexes for dumped tables -- -- -- Indexes for table `av_voting_data` -- ALTER TABLE `av_voting_data` ADD PRIMARY KEY (`id`); -- -- Indexes for table `votings` -- ALTER TABLE `votings` ADD PRIMARY KEY (`id`); -- -- AUTO_INCREMENT for dumped tables -- -- -- AUTO_INCREMENT for table `av_voting_data` -- ALTER TABLE `av_voting_data` MODIFY `id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=18; -- -- AUTO_INCREMENT for table `votings` -- ALTER TABLE `votings` MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=20;COMMIT; /*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */; /*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */; /*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */;
true
429138adbb54b6dade4e7b0a76dbac2386b46cfa
SQL
qamatic/mintleaf
/core/src/test/resources/oracle/hrdb-changesets/hrdb-ddl-typeobjects.sql
UTF-8
1,219
3.25
3
[ "MIT" ]
permissive
-- <ChangeSet id="create employee object type" delimiter="/" /> CREATE TYPE address_typ AS OBJECT ( street VARCHAR2(30), city VARCHAR2(20), state CHAR(2), postal_code VARCHAR2(6) ); / CREATE TYPE employee_typ AS OBJECT ( employee_id NUMBER(6), first_name VARCHAR2(20), last_name VARCHAR2(25), email VARCHAR2(25), phone_number VARCHAR2(20), hire_date DATE, job_id VARCHAR2(10), salary NUMBER(8,2), commission_pct NUMBER(2,2), manager_id NUMBER(6), department_id NUMBER(4), address address_typ, MAP MEMBER FUNCTION get_idno RETURN NUMBER, MEMBER PROCEDURE display_address ( SELF IN OUT NOCOPY employee_typ ) ); / CREATE TYPE BODY employee_typ AS MAP MEMBER FUNCTION get_idno RETURN NUMBER IS BEGIN RETURN employee_id; END; MEMBER PROCEDURE display_address ( SELF IN OUT NOCOPY employee_typ ) IS BEGIN DBMS_OUTPUT.PUT_LINE(first_name || ' ' || last_name); DBMS_OUTPUT.PUT_LINE(address.street); DBMS_OUTPUT.PUT_LINE(address.city || ', ' || address.state || ' ' || address.postal_code); END; END; /
true
7ec7c6eaeb1c88d592e19cfccec3fdbaa3eefd16
SQL
SylvainBeg/WinGear
/WinGear/src/DAO/db/content.sql
UTF-8
2,258
2.609375
3
[]
no_license
INSERT INTO `t_article` (`art_id`, `art_title`, `art_content`, `art_image`, `art_price`, `categorie`) VALUES (1, 'Sac tennis', 'Sac Pouvant transporter juqu''à 6 raquettes de tennis ! Idéal pour sportif confirmer','bag1.jpg',65,3), (2, 'Résine blanche PROMO',' 5 pots de résine Blanche avec spray anti colle offert profitez en dès maintenant !','colle.jpg',35,1), (3, 'Chaussure nike',' Chaussure nike édition 2013/2014, utilisé par Neymar et bien d''autre','foot.jpg',90,2), (4, 'Ballon Tricolor', 'Le nouveau ballon tricolore : idéal pour soutenir l''équipe national tout ne gagnant vos matchs ! :)', 'article1.png', 30, 1), (5, 'ballon handball 2', 'Ce ballon est idéal pour les entraînements.', 'article3.jpg', 20.5, 1), (6, 'Ballon de foot basique', 'Le ballon idéal pour amuser vos enfants.', '4545564.jpg', 7.5, 2), (7, 'Chaussure Nike','NOUVELLE COLLECTION : fan de ZLATAN ? alors commandez !' ,'foot2.jpg', 110,2), (8, 'Mizuko 2016','Nouvelle collection Mizuko Handball extra confort','handchauss.jpg',75,1), (9, 'Balle Kronum', 'Fan de ce nouveau sport ? Achater dès maintenant votre ballon Kronum','kronum.jpg',15,4), (10, 'Raquette Wilson', 'Federer l''a adopté pourquoi pas vous? ','tennis1.jpg',50,3), (11, 'Volant à plume', 'Bientôt pro de Badminton ? Adopter pour les volants à plus, beaucoup plus rapide : lot de 10 volants','volant.jpg',25,6); INSERT INTO `t_categorie` (`cate_id`, `cate_name`) VALUES (1, 'Handball'), (2, 'Football'), (3, 'Tennis'), (4, 'Kronum'), (5, 'Badminton'); /* raw password is 'john' */ INSERT INTO `t_user` (`usr_id`, `usr_name`, `usr_password`, `usr_salt`, `usr_role`, `usr_nom`, `usr_prenom`, `usr_email`) VALUES (2, 'JaneDoe', 'EfakNLxyhHy2hVJlxDmVNl1pmgjUZl99gtQ+V3mxSeD8IjeZJ8abnFIpw9QNahwAlEaXBiQUBLXKWRzOmSr8HQ==', 'dhMTBkzwDKxnD;4KNs,4ENy', 'ROLE_USER', '', '', ''), (3, 'admin', 'gqeuP4YJ8hU3ZqGwGikB6+rcZBqefVy+7hTLQkOD+jwVkp4fkS7/gr1rAQfn9VUKWc7bvOD7OsXrQQN5KGHbfg==', 'EDDsl&fBCJB|a5XUtAlnQN8', 'ROLE_ADMIN', '', '', ''), (4, 'lalalal', '/UpdrnYIht8rfVnxQEhdNOMwk7/cafQlDTEclldY2HNvkoMSjCPe/fBXCZZHvC7DWQHa/NpqfDhuqaU4EjS4gQ==', '00798e8c1235f89307e26e8', 'ROLE_USER', 'pierre', 'paul', '@'); INSERT INTO `t_comment` (`com_id`, `com_content`, `art_id`, `usr_id`) VALUES (1, 'J''adoooore ! :)', 6, 3), (2, 'mm', 5, 3);
true
dc0673faab0874262e96f9302ee8f40577ee27a2
SQL
freym827/MedFund
/db/schema.sql
UTF-8
325
2.515625
3
[ "MIT" ]
permissive
use chtueijpe3wq0j8w; CREATE TABLE IF NOT EXISTS users ( user_id INT AUTO_INCREMENT PRIMARY KEY, google_id VARCHAR(255) NOT NULL, user_name VARCHAR(255), user_email VARCHAR(255), user_about VARCHAR(4000), user_photo VARCHAR(60000), created_at TIMESTAMP DEFAULT CURRENT_TIMESTAMP ) ENGINE=INNODB;
true
d9ef841e21ad781b62f49f147b0a8b351f6d4259
SQL
radtek/abs3
/sql/mmfo/bars/Data/notportfolio_nbs.sql
UTF-8
1,618
3.15625
3
[]
no_license
begin delete notportfolio_nbs; merge into notportfolio_nbs a using (select '9802' nbs, null user_id, 'CCK' portfolio_code from dual union all select '9122', null, 'CCK' from dual union all select '9129', null, 'CCK' from dual union all select '9020', null, 'CCK' from dual union all select '3666', null, 'MBDK' from dual union all select '1626', null, 'MBDK' from dual union all select '2706', null, 'MBDK' from dual union all select '1600', null, 'MBDK' from dual union all select '2600', null, 'CURRENT_ACCOUNT' from dual union all select '2700', null, 'MBDK' from dual union all select '2701', null, 'MBDK' from dual union all select '2603', null, 'CURRENT_ACCOUNT' from dual union all select '3660', null, 'MBDK' from dual union all select '2604', null, 'CURRENT_ACCOUNT' from dual union all select '2650', null, 'CURRENT_ACCOUNT' from dual union all select '2560', null, 'CURRENT_ACCOUNT' from dual union all select '2520', null, 'CURRENT_ACCOUNT' from dual union all select '2602', null, 'CURRENT_ACCOUNT' from dual) s on (a.nbs = s.nbs and tools.compare(a.userid, s.user_id) = 0 and tools.compare(a.portfolio_code, s.portfolio_code) = 0) when not matched then insert values (s.nbs, s.user_id, s.portfolio_code); commit; end; /
true
36b61b1df05802dc69626498b61f4bb77701af30
SQL
wfilip/wfilip
/views/V_STR_SKL_SUR.sql
WINDOWS-1250
15,876
3.4375
3
[]
no_license
CREATE OR REPLACE FUNCTION ILOSC_DODATKU (pNR_OBR NUMBER, pIL_OBR NUMBER, pWSP1 NUMBER, pWSP2 NUMBER, pWSP3 NUMBER, pWSP4 NUMBER, pWSP5 NUMBER) RETURN NUMBER AS vNorma NUMBER(14,6) default 1; vIlSzt NUMBER(10) default 1; vWynik NUMBER(14,6); BEGIN for l in (select S.met_oblicz, L.nr_kol_param, L.czy_korekt_wym rodz_par from slparob S, lista_p_obr L where S.nr_k_p_obr=pNR_OBR and L.nr_komp_struktury=S.nr_k_p_obr) loop if l.rodz_par=2 then vIlSzt := case l.nr_kol_param when 1 then pWSP1 when 2 then pWSP2 when 3 then pWSP3 when 4 then pWSP4 when 5 then pWSP5 else 0 end; elsif l.rodz_par=9 then vNorma := vNorma * case l.nr_kol_param when 1 then pWSP1 when 2 then pWSP2 when 3 then pWSP3 when 4 then pWSP4 when 5 then pWSP5 else 0 end; end if; vWynik := case when l.met_oblicz in (1,2,4) then pIL_OBR*vNorma when l.met_oblicz=3 then vNorma*vIlSzt end; end loop; RETURN vWynik; EXCEPTION WHEN OTHERS THEN RETURN -1; END ILOSC_DODATKU; / CREATE OR REPLACE FORCE EDITIONABLE VIEW V_STR_SKL_SUR AS select B.nr_kom_str, row_number() over (partition by B.nr_kom_str, B.kod_str order by B.nr_skl, B1.nr_skl, B2.nr_skl, B3.nr_skl, B4.nr_skl) lp, B.nr_skl, B1.nr_skl nr_skl1, B2.nr_skl nr_skl2, B3.nr_skl nr_skl3, B4.nr_skl nr_skl4, nvl(B4.zn_war,nvl(B3.zn_war,nvl(B2.zn_war,nvl(B1.zn_war,B.zn_war)))) zn_war, nvl(B4.nr_kom_skl,nvl(B3.nr_kom_skl,nvl(B2.nr_kom_skl,nvl(B1.nr_kom_skl,B.nr_kom_skl)))) nr_kom_skl, nvl(B4.wsp,nvl(B3.wsp,nvl(B2.wsp,nvl(B1.wsp,B.wsp)))) wsp, nvl(B3.spos_obl,nvl(B3.spos_obl,nvl(B2.spos_obl,nvl(B1.spos_obl,B.spos_obl)))) spos_obl, B.kod_str, B1.nr_kom_str nr_kom_str1, B2.nr_kom_str nr_kom_str2, B3.nr_kom_str nr_kom_str3, B4.nr_kom_str nr_kom_str4, case when B4.zn_war='Sur' then 5 when B3.zn_war='Sur' then 4 when B2.zn_war='Sur' then 3 when B1.zn_war='Sur' then 2 when B.zn_war='Sur' then 1 when B9.zn_war='Sur' then 9 else 0 end poziom, case when B.zn_war='Pol' then 1 when B1.zn_war='Pol' then 2 when B2.zn_war='Pol' then 3 when B3.zn_war='Pol' then 4 when B9.zn_war='Sur' then 9 else 0 end zn_pp from budstr B --left join katalog K on B.zn_war='Sur' and K.nr_kat=B.nr_kom_skl left join struktury S on B.zn_war<>'Sur' and S.nr_kom_str=B.nr_kom_skl left join budstr B1P on B.zn_war='Pol' and B1P.nr_kom_str=B.nr_kom_skl left join budstr B1 on B.zn_war<>'Sur' and B1.nr_kom_str=nvl(B1P.nr_kom_skl,B.nr_kom_skl) --left join katalog K1 on K1.nr_kat=B1.nr_kom_skl left join budstr B2P on B1.zn_war='Pol' and B2P.nr_kom_str=B1.nr_kom_skl left join budstr B2 on B1.zn_war<>'Sur' and B2.nr_kom_str=nvl(B2P.nr_kom_skl,B1.nr_kom_skl) --left join katalog K2 on K2.nr_kat=B2.nr_kom_skl left join budstr B3P on B2.zn_war='Pol' and B3P.nr_kom_str=B2.nr_kom_skl left join budstr B3 on B2.zn_war<>'Sur' and B3.nr_kom_str=nvl(B3P.nr_kom_skl,B2.nr_kom_skl) --left join katalog K3 on K3.nr_kat=B3.nr_kom_skl left join budstr B4P on B3.zn_war='Pol' and B4P.nr_kom_str=B3.nr_kom_skl left join budstr B4 on B3.zn_war<>'Sur' and B4.nr_kom_str=nvl(B4P.nr_kom_skl,B3.nr_kom_skl) --left join katalog K4 on K4.nr_kat=B4.nr_kom_skl left join (select 'Sur' zn_war from dual) B9 on B4.zn_war<>'Sur' --nienull'owy B9 oznacza e zaglebienie do B4 niewystarczajace where nvl(B9.zn_war,nvl(B4.zn_war,nvl(B3.zn_war,nvl(B2.zn_war,nvl(B1.zn_war,B.zn_war)))))='Sur' order by B.nr_skl, B1.nr_skl, B2.nr_skl, B3.nr_skl, B4.nr_skl; / CREATE OR REPLACE VIEW V_STR_SKL_SUR_GRUP AS Select V.*, K.nr_kat, K.typ_kat, K.rodz_sur, K.jed_pod, K.grubosc, K.waga, K.znacz_pr, K.ident_bud From (select nr_kom_str, max(kod_str) kod_str, zn_war, nr_kom_skl, max(spos_obl) spos_obl, avg(wsp) wsp, count(1) il from v_str_skl_sur group by nr_kom_str, zn_war, nr_kom_skl ) V Left join katalog K on K.nr_kat=V.nr_kom_skl; CREATE OR REPLACE VIEW V_STR_SKL_SUR_WAR AS Select V.nr_kom_str, V.lp, V.zn_war, V.spos_obl, V.wsp, V.poziom, V.zn_pp, case when V.zn_pp=0 and K.rodz_sur in ('TAF','LIS','TAS') then 1 when V.zn_pp=1 and nr_skl1=1 then 1 when V.zn_pp=2 and nr_skl2=1 then 1 when V.zn_pp=3 and nr_skl3=1 then 1 when V.zn_pp=4 and nr_skl4=1 then 1 when V.zn_pp=9 then 1 else 0 end czy_war, sum(case when V.zn_pp=0 and K.rodz_sur in ('TAF','LIS','TAS') then 1 when V.zn_pp=1 and nr_skl1=1 then 1 when V.zn_pp=2 and nr_skl2=1 then 1 when V.zn_pp=3 and nr_skl3=1 then 1 when V.zn_pp=4 and nr_skl4=1 then 1 when V.zn_pp=9 then 1 else 0 end) over (partition by V.nr_kom_str, V.kod_str order by V.nr_skl, V.nr_skl1, V.nr_skl2, V.nr_skl3, V.nr_skl4) nr_war, K.nr_kat, K.typ_kat, K.rodz_sur, K.jed_pod, K.waga, K.grubosc, lag(K.grubosc,nvl(V.nr_skl4,nvl(V.nr_skl3,nvl(V.nr_skl2,nvl(V.nr_skl1,V.nr_skl))))-1) over (partition by V.nr_kom_str, V.kod_str order by V.nr_skl, V.nr_skl1, V.nr_skl2, V.nr_skl3, V.nr_skl4) grub_1skl, K.n_strat, K.znacz_pr, K.ident_bud, V.kod_str From v_str_skl_sur V Left join katalog K on K.nr_kat=V.nr_kom_skl ; CREATE OR REPLACE VIEW V_SURZAM_POZ AS select Z.nr_kom_zlec, Z.nr_zlec, data_zl, nr_kon, skrot_k, nr_kontraktu, P.nr_poz nr_poz_zlec, P.ilosc, P.szer, P.wys, P.pow, P.obw, D.szer_obr, D.wys_obr, decode(V.spos_obl,1,(D.szer_obr*0.001*D.wys_obr*0.001)*V.wsp, --pow 2,(D.szer_obr*0.002+D.wys_obr*0.002)*V.wsp, --obw 4,V.wsp, --ilosc 3,(D.szer_obr*0.002+D.wys_obr*0.002)-V.wsp, --obw - wsp 5,(D.szer_obr*0.001*D.wys_obr*0.001)-V.wsp, --pow - wsp 12,(D.szer_obr*0.002+D.wys_obr*0.002)*V.wsp*V.grub_1skl*nvl(nullif(P.gr_sil,0),PKG_PARAMETRY.GET_GR_SIL_DEFAULT()), 999999) il_sur, V.* from zamow Z left join klient using (nr_kon) left join spisz P on P.nr_kom_zlec=Z.nr_kom_zlec left join struktury S on S.kod_str=P.kod_str left join v_str_skl_sur_war V on V.nr_kom_str=S.nr_kom_str and V.rodz_sur<>'CZY' left join spisd D on D.nr_kom_zlec=P.nr_kom_zlec and D.nr_poz=P.nr_poz and D.do_war=V.nr_war and D.strona=case when V.rodz_sur='TAF' then 4 else 0 end where wyroznik in ('Z','R') and Z.status<>'A' --order by Z.nr_kom_zlec desc, nr_poz, nr_skl, nr_skl1, nr_skl2, nr_skl3, nr_skl4 ; CREATE OR REPLACE VIEW V_SUROWCE_WAR AS select P.nr_kom_zlec, P.nr_zlec, P.nr_poz, P.ilosc, P.szer, P.wys, P.pow, P.obw, D.szer_obr, D.wys_obr, case when to_number(trim(substr(nvl(trim(D.nr_poc),'00'),1,2)),'99')=11 --'11 Obrbka', then ILOSC_DODATKU(D.nr_komp_obr,D.ilosc_do_wyk,D.par1,D.par2,D.par3,D.par4,D.par5) when to_number(trim(substr(nvl(trim(D.nr_poc),'00'),1,2)),'99') between 2 and 10 --szpros then 0 else --ilosc obrobki wg BUDSTR w odniesieniu do powierzchni/obwodu decode(V.spos_obl,1,(D.szer_obr*0.001*D.wys_obr*0.001)*V.wsp, --pow 2,(D.szer_obr*0.002+D.wys_obr*0.002)*V.wsp, --obw 4,V.wsp, --ilosc 3,greatest(0,(D.szer_obr*0.002+D.wys_obr*0.002)-V.wsp), --obw - wsp 5,greatest(0,(D.szer_obr*0.001*D.wys_obr*0.001)-V.wsp), --pow - wsp 12,(D.szer_obr*0.002+D.wys_obr*0.002)*V.wsp*V.grub_1skl*nvl(nullif(P.gr_sil,0),PKG_PARAMETRY.GET_GR_SIL_DEFAULT()), 999999) end il_sur, V.*, D.kod_dod, D.nr_mag, D.nr_kat nr_kat_dod, D.kol_dod, to_number(trim(substr(nvl(trim(D.nr_poc),'00'),1,2)),'99') nr_proc --from zamow Z --left join klient using (nr_kon) --left join spisz P on P.nr_kom_zlec=Z.nr_kom_zlec from spisz P --left join struktury S on S.kod_str=P.kod_str --left join v_str_skl_sur_war V on V.nr_kom_str=S.nr_kom_str and V.rodz_sur<>'CZY' left join v_str_skl_sur_war V on V.kod_str=P.kod_str and V.rodz_sur<>'CZY' left join spisd D on D.nr_kom_zlec=P.nr_kom_zlec and D.nr_poz=P.nr_poz and D.do_war=V.nr_war --dolinkowanie rek. warstw (strona 4 dla TAFLI) oraz szprosw i obrbek z dodatakami --AND NOT szybsze od OR and not (D.strona=4 and V.rodz_sur<>'TAF') and not (D.strona=0 and V.rodz_sur='TAF') -- and not (D.strona=0 and V.rodz_sur not in ('LIS','TAS')) and not (to_number(trim(substr(nvl(trim(D.nr_poc),'00'),1,2)),'99')>1 and trim(D.kod_dod) is null) and not (to_number(trim(substr(nvl(trim(D.nr_poc),'00'),1,2)),'99')>1 and V.czy_war=0) --order by Z.nr_kom_zlec desc, nr_poz, nr_skl, nr_skl1, nr_skl2, nr_skl3, nr_skl4 ; /*+ USE_NL (V)*/ CREATE OR REPLACE VIEW V_SUROWCE_POZ AS select Z.nr_kom_zlec, Z.nr_zlec, Z.data_zl, nr_kon, K.skrot_k, Z.nr_kontraktu, V.nr_poz, min(V.ilosc) ilosc, nr_kat, V.typ_kat, case when max(V.nr_proc)<2 then ' ' else max(V.kod_dod) end kod_dod, case when max(V.nr_proc)<2 then 0 else max(V.nr_mag) end nr_mag, max(case when V.nr_proc<2 then V.jed_pod else (select nvl(max(jed_pod),' ') from kartoteka where indeks=V.kod_dod and nr_mag=V.nr_mag) end) jedn, round(sum(V.ilosc*V.il_sur),6) il_netto, round(sum(V.ilosc*V.il_sur/(1-least(0.999999999,V.n_strat*0.01))),6) il_brutto_nom, case when max(V.rodz_sur)='TAF' and max(nr_proc)=0 then (select nvl(round(sum(opt_zlec.wyc_netto),6),0) from opt_zlec, opt_taf, opt_nr where opt_zlec.nr_komp_zlec=Z.nr_kom_zlec and opt_zlec.nr_poz=V.nr_poz and opt_zlec.nr_kat=V.nr_kat and opt_nr.nr_opt=opt_zlec.nr_opt and opt_taf.nr_opt=opt_zlec.nr_opt and opt_taf.nr_tafli=opt_zlec.nr_tafli and opt_taf.poz_w_pak>0) +(select nvl(round(sum(opt_zlec.wyc_netto),6),0) from opt_zlec, opt_taf, opt_nr, zamow W, spisz P where W.wyroznik='W' and W.nr_komp_poprz=Z.nr_kom_zlec and P.nr_kom_zlec=W.nr_kom_zlec and P.nr_poz_pop=V.nr_poz and opt_zlec.nr_komp_zlec=W.nr_kom_zlec and opt_zlec.nr_poz=P.nr_poz and opt_zlec.nr_kat=V.nr_kat and opt_nr.nr_opt=opt_zlec.nr_opt and opt_taf.nr_opt=opt_zlec.nr_opt and opt_taf.nr_tafli=opt_zlec.nr_tafli and opt_taf.poz_w_pak>0) else 0 end il_netto_opt, case when max(V.rodz_sur)='TAF' and max(nr_proc)=0 then (select nvl(round(sum(opt_zlec.wyc_netto)*avg(decode(opt_nr.wyc_netto,0,0,opt_nr.wyc_brutto/opt_nr.wyc_netto)),6),0) brutto from opt_zlec, opt_taf, opt_nr where opt_zlec.nr_komp_zlec=Z.nr_kom_zlec and opt_zlec.nr_poz=V.nr_poz and opt_zlec.nr_kat=V.nr_kat and opt_nr.nr_opt=opt_zlec.nr_opt and opt_taf.nr_opt=opt_zlec.nr_opt and opt_taf.nr_tafli=opt_zlec.nr_tafli and opt_taf.poz_w_pak>0) + (select nvl(round(sum(opt_zlec.wyc_netto)*avg(decode(opt_nr.wyc_netto,0,0,opt_nr.wyc_brutto/opt_nr.wyc_netto)),6),0) brutto from opt_zlec, opt_taf, opt_nr, zamow W, spisz P where W.wyroznik='W' and W.nr_komp_poprz=Z.nr_kom_zlec and P.nr_kom_zlec=W.nr_kom_zlec and P.nr_poz_pop=V.nr_poz and opt_zlec.nr_komp_zlec=W.nr_kom_zlec and opt_zlec.nr_poz=P.nr_poz and opt_zlec.nr_kat=V.nr_kat and opt_nr.nr_opt=opt_zlec.nr_opt and opt_taf.nr_opt=opt_zlec.nr_opt and opt_taf.nr_tafli=opt_zlec.nr_tafli and opt_taf.poz_w_pak>0) else 0 end il_brutto_opt from zamow Z left join v_surowce_war V on V.nr_kom_zlec=Z.nr_kom_zlec left join klient K using (nr_kon) where Z.wyroznik in ('Z','R') and Z.status<>'A' group by Z.nr_kom_zlec, Z.nr_zlec, Z.data_zl, nr_kon, K.skrot_k, Z.nr_kontraktu, V.nr_poz, V.nr_kat, V.typ_kat, case when V.nr_proc between 2 and 11 then V.kol_dod else 0 end order by nr_kom_zlec, nr_poz, nr_kat, nr_mag ; CREATE OR REPLACE VIEW V_SUROWCE_ZLEC AS select V.nr_kom_zlec, V.nr_zlec, V.data_zl, nr_kon, V.skrot_k, V.nr_kontraktu, V.nr_kat, V.typ_kat, V.kod_dod, V.nr_mag, max(V.jedn) jedn, --sum(il_netto) il_netto, sum(il_brutto_nom) il_brutto_nom, --tymczasowo pobieranie z SURZAM gdy w POZ il_netto=0 (KRATA) case when sum(il_netto)>0 then sum(il_netto) else (select nvl(round(sum(il_zad),6),0) from surzam S where S.nr_komp_zlec=V.nr_kom_zlec and S.indeks=V.kod_dod) end il_netto, case when sum(il_brutto_nom)>0 then sum(il_brutto_nom) else (select nvl(round(sum(il_zad/(1-S.straty*0.01)),6),0) from surzam S where S.nr_komp_zlec=V.nr_kom_zlec and S.indeks=V.kod_dod) end il_brutto_nom, sum(il_netto_opt) il_netto_opt, sum(il_brutto_opt) il_brutto_opt, case when sum(il_netto)>0 then sum(il_brutto_opt) + round((sum(il_netto)-sum(il_netto_opt))*sum(il_brutto_nom)/sum(V.il_netto),6) else (select nvl(round(sum(il_zad/(1-S.straty*0.01)),6),0) from surzam S where S.nr_komp_zlec=V.nr_kom_zlec and S.indeks=V.kod_dod) end il_brutto, case when V.nr_mag=0 then (select nvl(round(sum(rw_pob),6),0) from surzam S where S.nr_komp_zlec=V.nr_kom_zlec and S.nr_kat=V.nr_kat) +(select nvl(round(sum(rw_pob),6),0) from surzam S, zamow Z where Z.wyroznik='W' and Z.nr_komp_poprz=V.nr_kom_zlec and S.nr_komp_zlec=Z.nr_kom_zlec and S.nr_kat=V.nr_kat) else (select nvl(round(sum(rw_pob),6),0) from surzam S where S.nr_komp_zlec=V.nr_kom_zlec and S.nr_mag=V.nr_mag and S.indeks=V.kod_dod) +(select nvl(round(sum(rw_pob),6),0) from surzam S, zamow Z where Z.wyroznik='W' and Z.nr_komp_poprz=V.nr_kom_zlec and S.nr_komp_zlec=Z.nr_kom_zlec and S.nr_mag=V.nr_mag and S.indeks=V.kod_dod) end il_na_rw_netto, case when V.nr_mag=0 then (select nvl(round(sum(rw_pob/(1-straty*0.01)),6),0) from surzam S where S.nr_komp_zlec=V.nr_kom_zlec and S.rw_pob>0 and S.nr_kat=V.nr_kat) +(select nvl(round(sum(rw_pob/(1-straty*0.01)),6),0) from surzam S, zamow Z where Z.wyroznik='W' and Z.nr_komp_poprz=V.nr_kom_zlec and S.nr_komp_zlec=Z.nr_kom_zlec and S.rw_pob>0 and S.nr_kat=V.nr_kat) else (select nvl(round(sum(rw_pob/(1-straty*0.01)),6),0) from surzam S where S.nr_komp_zlec=V.nr_kom_zlec and S.rw_pob>0 and S.nr_mag=V.nr_mag and S.indeks=V.kod_dod) +(select nvl(round(sum(rw_pob/(1-straty*0.01)),6),0) from surzam S, zamow Z where Z.wyroznik='W' and Z.nr_komp_poprz=V.nr_kom_zlec and S.nr_komp_zlec=Z.nr_kom_zlec and S.rw_pob>0 and S.nr_mag=V.nr_mag and S.indeks=V.kod_dod) end il_na_rw from v_surowce_poz V group by nr_kom_zlec, nr_zlec, data_zl, nr_kon, skrot_k, nr_kontraktu, nr_kat, typ_kat, kod_dod, nr_mag order by nr_kom_zlec, nr_kat, nr_mag ; select * from l_wyc2_plus_wew where nr_kom_zlec=:NR_ZLEC; create or replace view V_OBROBKI_POZ as select nr_kom_zlec, nr_zlec, nr_poz, nr_obr, max(symb_obr) symb_obr, max(jedn) jedn, sum(il_obr) il_plan, round(sum(il_obr*wsp_p),6) il_plan_przel, sum(il_obr*sign(nr_zm_wyk)) il_wyk, round(sum(il_obr*sign(nr_zm_wyk)*nvl(wsp_w,1)),6) il_wyk_przel from l_wyc2_plus_wew group by nr_kom_zlec, nr_zlec, nr_poz, nr_obr having exists (select 1 from harmon where harmon.nr_komp_zlec=nr_kom_zlec) order by nr_kom_zlec, nr_zlec, nr_poz, nr_obr;
true
f765c26dd1a87b91aba777ca33b874cb914f2cd6
SQL
alvarorl231/UCO-Practices
/SEGUNDO/BASES DE DATOS/p2/EJERCICIOS-P2.sql
WINDOWS-1252
2,628
4
4
[]
no_license
/*1- Obtener el nombre de todos los votantes cuyo segundo apellido acaba en n.*/ SELECT NOMBRECOMPLETO FROM VOTANTES WHERE NOMBRECOMPLETO LIKE '%n'; /*2- Obtener el DNI de todos los votantes que tengan al menos tres 5s en su DNI.*/ SELECT DNI FROM VOTANTES WHERE DNI LIKE '%5%5%5%'; /*3- Obtener el nombre de aquellos votantes cuya fecha de nacimiento sea posterior al 1 de Enero de 1990.*/ SELECT NOMBRECOMPLETO FROM VOTANTES WHERE FECHANACIMIENTO>'01/01/90'; /*4- Obtener el nombre del votante y el nombre de la localidad de aquellos votantes que han ejercido el voto en una localidad que tiene ms de 300000 habitantes.*/ SELECT v.NOMBRECOMPLETO, l.NOMBRE FROM VOTANTES v, LOCALIDADES l WHERE v.LOCALIDAD=l.IDLOCALIDAD AND l.NUMEROHABITANTES>'300000'; /*5- Obtener el nombre del votante y el nombre de la comunidad de aquellos votantes que han ejercido el voto en una localidad que tiene ms de 300000 habitantes.*/ SELECT V.NOMBRECOMPLETO, P.COMUNIDAD FROM VOTANTES V, LOCALIDADES L, PROVINCIAS P WHERE V.LOCALIDAD=L.IDLOCALIDAD AND L.PROVINCIA=P.IDPROVINCIA AND L.NUMEROHABITANTES>'300000'; /*6- Obtener el identificador del partido y el nmero de datos o consultas que se tiene para dicho partido de entre todos los partidos sobre los que se han realizado alguna consulta.*/ SELECT PARTIDO, COUNT(PARTIDO) "conteo" FROM CONSULTAS_DATOS GROUP BY PARTIDO; /*7- Mostrar el identificador de partido y el nmero de consultas realizadas para cada partido.*/ SELECT PARTIDO, COUNT(CONSULTA) FROM CONSULTAS_DATOS GROUP BY PARTIDO; /*8- Mostrar el nombre del partido poltico sobre el que se han realizado ms de 10 consultas.*/ SELECT P.NOMBRECOMPLETO FROM PARTIDOS P, CONSULTAS_DATOS CD WHERE P.IDPARTIDO=CD.PARTIDO GROUP BY P.NOMBRECOMPLETO HAVING COUNT(CD.PARTIDO)>'10' ORDER BY P.NOMBRECOMPLETO; /*9- Mostrar el nombre del partido y el nmero de consultas realizadas para aquellos partidos que aparecen en ms de 10 consultas.*/ SELECT P.NOMBRECOMPLETO, COUNT(CD.PARTIDO) "Conteo" FROM PARTIDOS P, CONSULTAS_DATOS CD WHERE P.IDPARTIDO=CD.PARTIDO GROUP BY P.NOMBRECOMPLETO HAVING COUNT(CD.PARTIDO)>'10' ORDER BY P.NOMBRECOMPLETO; /*10- Mostrar el nombre de los partidos y el nmero de consultas realizadas para cada partido considerando slo aquellas consultas en las que el encuestado ha contestado afirmativamente a votar a dicho partido y con una certidumbre por encima del 80%, es decir, 0.8.*/ SELECT P.NOMBRECOMPLETO, COUNT(CD.PARTIDO) "Conteo" FROM CONSULTAS_DATOS CD,PARTIDOS P WHERE P.IDPARTIDO=CD.PARTIDO AND CD.RESPUESTA='Si' AND CD.CERTIDUMBRE>'0,8' GROUP BY P.NOMBRECOMPLETO;
true
55463279e27a677193228981561b0b292069a601
SQL
productboardlabs/e-data-fest-dv
/queries.sql
UTF-8
1,095
3.578125
4
[]
no_license
INSERT INTO beer_database (name, id, brewery_id, cat_id, style_id, alcohol_by_volume, description, style, category, brewer) VALUES ('pilsner urquell', 99999, 88888, '99', '99', 4.8, 'Very good anch tasty beer.', 'european lager', 'czech lager', 'pilsner urquell brewery in pilsen'); select * from sat_beer where name = 'pilsner urquell'; -- hash_key: d3eb9a9233e52948740d7eb8c3062d14 UPDATE beer_database SET name = 'starobrno' WHERE id = 99999; select * from sat_beer where hash_key = 'd3eb9a9233e52948740d7eb8c3062d14' -- >> two records, one closed (valid_to is not null), one active (valid to is null) select hb.id as brewery_id, sb.brewer, sb.city, hbe.id as beer_id, sbe.name, sbe.style from hub_brewery hb inner join sat_brewery sb on sb.hash_key = hb.hash_key AND sb.valid_to is null inner join link_brewery_beer l on l.brewery_hash_key = sb.hash_key inner join satl_brewery_beer sl on sl.hash_key = l.hash_key AND sl.valid_to is null inner join hub_beer hbe on hbe.hash_key = l.beer_hash_key inner join sat_beer sbe on sbe.hash_key = hbe.hash_key AND sbe.valid_to is null limit 10;
true
24723235e5376c9dc9e4a23d5c90967c1b6982d9
SQL
arrioja/shared-intranet-cene
/nomina/bd/personal.sql
UTF-8
158,922
3.1875
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 2.10.2 -- http://www.phpmyadmin.net -- -- Servidor: localhost -- Tiempo de generación: 28-03-2008 a las 16:59:35 -- Versión del servidor: 5.0.45 -- Versión de PHP: 5.2.3 SET SQL_MODE="NO_AUTO_VALUE_ON_ZERO"; -- -- Base de datos: `personal` -- -- -------------------------------------------------------- -- -- Estructura de tabla para la tabla `asistencias` -- CREATE TABLE `asistencias` ( `id` int(11) NOT NULL auto_increment, `cedula` int(10) NOT NULL, `fecha` date NOT NULL, `hora_entrada` time NOT NULL, `hora_salida` time NOT NULL, PRIMARY KEY (`id`) ) ENGINE=MyISAM DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ; -- -- Volcar la base de datos para la tabla `asistencias` -- -- -------------------------------------------------------- -- -- Estructura de tabla para la tabla `asistencias_categoria` -- CREATE TABLE `asistencias_categoria` ( `id` int(11) NOT NULL auto_increment, `codigo` varchar(10) NOT NULL, `descripcion` varchar(50) NOT NULL, PRIMARY KEY (`id`), KEY `codigo` (`codigo`) ) ENGINE=MyISAM DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ; -- -- Volcar la base de datos para la tabla `asistencias_categoria` -- -- -------------------------------------------------------- -- -- Estructura de tabla para la tabla `asistencias_dias_no_laborables` -- CREATE TABLE `asistencias_dias_no_laborables` ( `id` int(11) NOT NULL auto_increment, `dia` varchar(2) NOT NULL, `mes` varchar(2) NOT NULL, `ano` varchar(4) NOT NULL, `descripcion` varchar(250) NOT NULL, PRIMARY KEY (`id`) ) ENGINE=MyISAM DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ; -- -- Volcar la base de datos para la tabla `asistencias_dias_no_laborables` -- -- -------------------------------------------------------- -- -- Estructura de tabla para la tabla `asistencias_entrada_salida` -- CREATE TABLE `asistencias_entrada_salida` ( `id` int(11) NOT NULL auto_increment, `cedula` int(10) NOT NULL, `fecha` date NOT NULL, `hora` time NOT NULL, PRIMARY KEY (`id`) ) ENGINE=MyISAM DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ; -- -- Volcar la base de datos para la tabla `asistencias_entrada_salida` -- -- -------------------------------------------------------- -- -- Estructura de tabla para la tabla `asistencias_justificaciones` -- CREATE TABLE `asistencias_justificaciones` ( `id` int(11) NOT NULL auto_increment, `cedula` int(10) NOT NULL, `fecha` date NOT NULL, `codigo_tipo_justificacion` varchar(3) NOT NULL, `codigo_categoria_justificacion` varchar(3) NOT NULL, `descripcion` varchar(250) NOT NULL, `iddoc` varchar(10) NOT NULL COMMENT 'Correlativo del documento', PRIMARY KEY (`id`) ) ENGINE=MyISAM DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ; -- -- Volcar la base de datos para la tabla `asistencias_justificaciones` -- -- -------------------------------------------------------- -- -- Estructura de tabla para la tabla `asistencias_tipo_justificaciones` -- CREATE TABLE `asistencias_tipo_justificaciones` ( `id` int(11) NOT NULL auto_increment, `codigo` varchar(3) NOT NULL, `descripcion` varchar(50) NOT NULL, PRIMARY KEY (`id`), KEY `codigo` (`codigo`) ) ENGINE=MyISAM DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ; -- -- Volcar la base de datos para la tabla `asistencias_tipo_justificaciones` -- -- -------------------------------------------------------- -- -- Estructura de tabla para la tabla `banco` -- CREATE TABLE `banco` ( `cod` varchar(4) NOT NULL default '', `nombre` varchar(30) NOT NULL, `descripcion` varchar(50) default NULL, `numero` varchar(30) NOT NULL default '', `tipo` varchar(30) default NULL, `id` int(11) NOT NULL auto_increment, PRIMARY KEY (`cod`,`numero`), UNIQUE KEY `id` (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=latin1 AUTO_INCREMENT=2 ; -- -- Volcar la base de datos para la tabla `banco` -- INSERT INTO `banco` VALUES ('0040', 'BANCARIBE', 'cuenta de nomina', '00102231214', 'AHORROS', 1); -- -------------------------------------------------------- -- -- Estructura de tabla para la tabla `cargos` -- CREATE TABLE `cargos` ( `id` int(11) NOT NULL auto_increment, `denominacion` varchar(50) NOT NULL, `codigo` varchar(6) NOT NULL, `grado` varchar(2) NOT NULL, PRIMARY KEY (`id`), UNIQUE KEY `denominacion` (`denominacion`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 AUTO_INCREMENT=48 ; -- -- Volcar la base de datos para la tabla `cargos` -- INSERT INTO `cargos` VALUES (1, 'AUXILIAR DE OFICINA', '020601', '1'); INSERT INTO `cargos` VALUES (2, 'ALMACENISTA', '020101', '1'); INSERT INTO `cargos` VALUES (3, 'ARCHIVISTA', '020101', '1'); INSERT INTO `cargos` VALUES (4, 'ASISTENTE ADMINISTRATIVO', '020101', '1'); INSERT INTO `cargos` VALUES (5, 'ASISTENTE DE PERSONAL', '020201', '1'); INSERT INTO `cargos` VALUES (6, 'SECRETARIA I', '020401', '1'); INSERT INTO `cargos` VALUES (7, 'CONDUCTOR', '020601', '1'); INSERT INTO `cargos` VALUES (8, 'OPERADOR DE FOTOCOPOADORA', '020601', '1'); INSERT INTO `cargos` VALUES (9, 'RECEPCIONISTA', '020601', '1'); INSERT INTO `cargos` VALUES (10, 'SECRETARIA II', '020402', '2'); INSERT INTO `cargos` VALUES (11, 'ASISTENTE DE BIBLIOTECA', '020602', '2'); INSERT INTO `cargos` VALUES (12, 'FOTÓGRAFO', '020602', '1'); INSERT INTO `cargos` VALUES (13, 'OPERADOR I', '020303', '3'); INSERT INTO `cargos` VALUES (14, 'SECRETARIA III', '020403', '3'); INSERT INTO `cargos` VALUES (15, 'ANALISTA DE PRESUPUESTO I', '020104', '4'); INSERT INTO `cargos` VALUES (16, 'ANALISTA DE PRESUPUESTO II', '020105', '5'); INSERT INTO `cargos` VALUES (17, 'PROGRAMADOR I', '020305', '5'); INSERT INTO `cargos` VALUES (18, 'GUIA PROTOCOLAR', '020505', '5'); INSERT INTO `cargos` VALUES (19, 'DIBUJANTE', '020605', '5'); INSERT INTO `cargos` VALUES (20, 'ENTRENADOR DEPORTIVO', '020605', '5'); INSERT INTO `cargos` VALUES (21, 'ABOGADO I', '010106', '6'); INSERT INTO `cargos` VALUES (22, 'AUDITOR I', '010206', '6'); INSERT INTO `cargos` VALUES (23, 'INSPECTOR DE OBRAS I', '010306', '6'); INSERT INTO `cargos` VALUES (24, 'ANALISTA DE ORGANIZACION Y SISTEMAS I', '020306', '6'); INSERT INTO `cargos` VALUES (25, 'PROGRAMADOR II', '020306', '6'); INSERT INTO `cargos` VALUES (26, 'COORDINADOR DE PROTOCOLO', '020506', '6'); INSERT INTO `cargos` VALUES (27, 'BOBLIOTECOLOGO', '020606', '6'); INSERT INTO `cargos` VALUES (28, 'ABOGADO II', '010107', '7'); INSERT INTO `cargos` VALUES (29, 'AUDITOR II', '010207', '7'); INSERT INTO `cargos` VALUES (30, 'INSPECTOR DE OBRAS II', '010307', '7'); INSERT INTO `cargos` VALUES (31, 'ANALISTA DE PERSONAL II', '020207', '7'); INSERT INTO `cargos` VALUES (32, 'ANALISTA DE ORGANIZACION Y SISTEMAS II', '020307', '7'); INSERT INTO `cargos` VALUES (33, 'PROGRAMADOR III', '020307', '7'); INSERT INTO `cargos` VALUES (34, 'ABOGADO III', '010108', '8'); INSERT INTO `cargos` VALUES (35, 'AUDITOR III', '010108', '8'); INSERT INTO `cargos` VALUES (36, 'ANALISTA DE PERSONAL III', '020208', '8'); INSERT INTO `cargos` VALUES (37, 'ANALISTA DE ORGANIZACION Y SISTEMAS III', '020308', '8'); INSERT INTO `cargos` VALUES (38, 'ABOGADO COORDINADOR', '010109', '9'); INSERT INTO `cargos` VALUES (39, 'AUDITOR COORDINADOR', '010209', '9'); INSERT INTO `cargos` VALUES (40, 'INSPECTOR COORDINADOR', '010309', '9'); INSERT INTO `cargos` VALUES (41, 'COORDINADOR DE ADMINISTRACION', '020109', '9'); INSERT INTO `cargos` VALUES (42, 'COORDINADOR DE INFORMATICA', '020309', '9'); INSERT INTO `cargos` VALUES (43, 'COORDINADOR COMUNICACIONAL', '020609', '9'); INSERT INTO `cargos` VALUES (44, 'DIRECTOR', '111111', '9'); INSERT INTO `cargos` VALUES (45, 'CONTRALOR DEL ESTADO', '5555', '9'); INSERT INTO `cargos` VALUES (46, 'DIRECTOR ASISTENTE', '6666', '9'); INSERT INTO `cargos` VALUES (47, 'INSPECTOR DE OBRAS III', '10308', '8'); -- -------------------------------------------------------- -- -- Estructura de tabla para la tabla `conceptos` -- CREATE TABLE `conceptos` ( `cod` varchar(4) NOT NULL, `descripcion` varchar(100) default NULL, `tipo` varchar(100) default NULL, `tipo_pago` varchar(10) NOT NULL, `formula` varchar(100) default NULL, `general` char(1) default NULL, `frecuencia` varchar(100) default NULL, `id` int(11) NOT NULL auto_increment, PRIMARY KEY (`cod`), UNIQUE KEY `id` (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=latin1 AUTO_INCREMENT=79 ; -- -- Volcar la base de datos para la tabla `conceptos` -- INSERT INTO `conceptos` VALUES ('0001', 'Bono de Antiguedad', 'CREDITO', 'CORRIENTE', 'y(aap,map,as,mas)=((aap*map)+(as*mas))/2', '1', 'QUINCENAL', 55); INSERT INTO `conceptos` VALUES ('0002', 'Prestamos', 'DEBITO', 'CORRIENTE', 'y(pre)=pre/2', '0', 'QUINCENAL', 69); INSERT INTO `conceptos` VALUES ('0003', 'Fondo de Jubilacion y Pension', 'DEBITO', 'CORRIENTE', 'y(sm)=(sm*0.03)/2', '1', 'QUINCENAL', 20); INSERT INTO `conceptos` VALUES ('0004', 'CACOENE', 'DEBITO', 'CORRIENTE', 'y(sm)=((sm*0.2)/2)', '1', 'QUINCENAL', 19); INSERT INTO `conceptos` VALUES ('0005', 'Ley de Vivienda y Habitat', 'DEBITO', 'CORRIENTE', 'y(ta)=ta*0.01', '1', 'QUINCENAL', 56); INSERT INTO `conceptos` VALUES ('0006', 'S.S.O. y Reg. Prest. Empleo', 'DEBITO', 'CORRIENTE', 'y(sm)=(sm*12/52)*0.045*5/2', '1', 'QUINCENAL', 57); INSERT INTO `conceptos` VALUES ('0007', 'Sindicato', 'DEBITO', 'CORRIENTE', 'y(sm)=(sm*0.004)/2', '1', 'QUINCENAL', 58); INSERT INTO `conceptos` VALUES ('0008', 'Prima Profesionales', 'CREDITO', 'CORRIENTE', 'y(pp)=pp/2', '0', 'QUINCENAL', 70); INSERT INTO `conceptos` VALUES ('0009', 'Prima de Responsabilidad', 'CREDITO', 'CORRIENTE', 'y(pr)=pr/2', '0', 'QUINCENAL', 71); INSERT INTO `conceptos` VALUES ('0010', 'Poliza HCM', 'DEBITO', 'CORRIENTE', 'y(hcm)=hcm/2', '0', 'QUINCENAL', 72); INSERT INTO `conceptos` VALUES ('0011', 'Ajuste poliza HCM', 'DEBITO', 'CORRIENTE', 'y(ahc)=ahc/2', '0', 'QUINCENAL', 73); INSERT INTO `conceptos` VALUES ('0012', 'Prima Jerarquia y Responsabilidad', 'CREDITO', 'CORRIENTE', 'y(pj)=pj/2', '0', 'QUINCENAL', 74); INSERT INTO `conceptos` VALUES ('0013', 'Comp. Gastos Repres.', 'CREDITO', 'CORRIENTE', 'y(cgr)=cgr/2', '0', 'QUINCENAL', 75); INSERT INTO `conceptos` VALUES ('0014', ' S.S.O. y Reg. Prest. Empleo 2', 'DEBITO', 'CORRIENTE', 'y(sm)=(2328.75*12/52)*0.045*5/2', '0', 'QUINCENAL', 76); INSERT INTO `conceptos` VALUES ('0104', 'Prima por Eficiencia', 'CREDITO', 'CORRIENTE', 'y(pe)=pe/2', '0', 'QUINCENAL', 78); INSERT INTO `conceptos` VALUES ('0582', 'MONTEPIO', 'DEBITO', 'CORRIENTE', 'y(mtp)=mtp', '1', 'QUINCENAL', 77); INSERT INTO `conceptos` VALUES ('1000', 'Sueldo Quincenal', 'CREDITO', 'CORRIENTE', 'y(sm)=sm/2', '1', 'QUINCENAL', 68); INSERT INTO `conceptos` VALUES ('9001', 'R.I.S.L.R.', 'DEBITO', 'CORRIENTE', 'y(ta,pct)=ta*(pct/100)', '0', 'QUINCENAL', 67); -- -------------------------------------------------------- -- -- Estructura de tabla para la tabla `configuracion` -- CREATE TABLE `configuracion` ( `id` int(11) NOT NULL auto_increment, `num_periodos` varchar(2) NOT NULL, `ano_curso` year(4) NOT NULL, PRIMARY KEY (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 AUTO_INCREMENT=2 ; -- -- Volcar la base de datos para la tabla `configuracion` -- INSERT INTO `configuracion` VALUES (1, '24', 2008); -- -------------------------------------------------------- -- -- Estructura de tabla para la tabla `constantes` -- CREATE TABLE `constantes` ( `cod` varchar(4) NOT NULL default '', `descripcion` varchar(100) default NULL, `abreviatura` varchar(20) NOT NULL, `tipo` varchar(30) default NULL, `tipo_pago` varchar(10) NOT NULL, `id` int(11) NOT NULL auto_increment, `fecha` date NOT NULL default '0000-00-00', PRIMARY KEY (`id`), UNIQUE KEY `cod` (`cod`), UNIQUE KEY `abreviatura` (`abreviatura`) ) ENGINE=InnoDB DEFAULT CHARSET=latin1 AUTO_INCREMENT=45 ; -- -- Volcar la base de datos para la tabla `constantes` -- INSERT INTO `constantes` VALUES ('0005', 'Prima de Profesionales', 'pp', 'CREDITO', 'CORRIENTE', 2, '2007-03-28'); INSERT INTO `constantes` VALUES ('0007', 'Prima de Responsabilidad', 'pr', 'CREDITO', 'CORRIENTE', 19, '2007-05-21'); INSERT INTO `constantes` VALUES ('1021', 'Sueldo Mensual', 'sm', 'OTRO', 'CORRIENTE', 22, '2007-06-06'); INSERT INTO `constantes` VALUES ('4444', 'Sueldo Integral', 'si', 'OTRO', 'CORRIENTE', 24, '2007-08-01'); INSERT INTO `constantes` VALUES ('0001', 'INAVI', 'ina', 'DEBITO', 'CORRIENTE', 32, '2007-10-05'); INSERT INTO `constantes` VALUES ('0002', 'R.I.S.L.R.', 'islr', 'DEBITO', 'CORRIENTE', 33, '2007-10-05'); INSERT INTO `constantes` VALUES ('0003', 'POLIZA HCM', 'hcm', 'DEBITO', 'CORRIENTE', 34, '2007-10-05'); INSERT INTO `constantes` VALUES ('0004', 'Prima por Eficiencia', 'pe', 'CREDITO', 'CORRIENTE', 35, '2007-10-05'); INSERT INTO `constantes` VALUES ('1002', 'PRESTAMOS', 'pre', 'DEBITO', 'CORRIENTE', 39, '2007-11-19'); INSERT INTO `constantes` VALUES ('9000', 'Porcentaje RISLR', 'pct', 'OTRO', 'CORRIENTE', 40, '2007-11-19'); INSERT INTO `constantes` VALUES ('0017', 'Ajuste Poliza HCM', 'ahc', 'DEBITO', 'CORRIENTE', 41, '2007-11-22'); INSERT INTO `constantes` VALUES ('0006', 'Prima de Jerarquia y Responsabilidad', 'pj', 'CREDITO', 'CORRIENTE', 42, '2007-11-26'); INSERT INTO `constantes` VALUES ('0008', 'Comp. Gastos Repres.', 'cgr', 'CREDITO', 'CORRIENTE', 43, '2007-11-26'); INSERT INTO `constantes` VALUES ('0582', 'MONTEPIO', 'mtp', 'DEBITO', 'CORRIENTE', 44, '2007-12-04'); -- -------------------------------------------------------- -- -- Estructura de tabla para la tabla `direcciones` -- CREATE TABLE `direcciones` ( `id` int(11) NOT NULL auto_increment, `codigo` varchar(6) NOT NULL, `nombre_completo` varchar(50) NOT NULL, `nombre_abreviado` varchar(20) NOT NULL, `siglas` varchar(10) NOT NULL, `fecha_creacion` date default NULL, `status` varchar(10) NOT NULL, PRIMARY KEY (`id`), UNIQUE KEY `codigo` (`codigo`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 AUTO_INCREMENT=10 ; -- -- Volcar la base de datos para la tabla `direcciones` -- INSERT INTO `direcciones` VALUES (1, '1001', 'ORGANIZACIÓN Y SISTEMAS', 'ORG Y SIST', 'DOS', '1998-09-19', 'ACTIVO'); INSERT INTO `direcciones` VALUES (2, '1003', 'ADMINISTRACIÓN Y PRESUPUESTO', 'DIR ADMON Y PRES', 'DAP', '1978-09-19', 'ACTIVO'); INSERT INTO `direcciones` VALUES (4, '1002', 'RECURSOS HUMANOS', 'REC. HUM.', 'RRHH', '2000-01-01', 'ACTIVO'); INSERT INTO `direcciones` VALUES (5, '1004', 'DESPACHO DEL CONTRALOR', 'DESP. DEL CONTR.', 'DC', '2000-01-01', 'ACTIVO'); INSERT INTO `direcciones` VALUES (6, '1005', 'DIRECCIÓN DE ENTES DESCENTRALIZADOS', 'DIR. ENT. DESC.', 'DDED', '2000-01-01', 'ACTIVO'); INSERT INTO `direcciones` VALUES (7, '1006', 'CONTROL DE LA ADMINISTRACION ESTADAL', 'CONTROL ADMON EST', 'CAE', '0000-00-00', 'ACTIVO'); INSERT INTO `direcciones` VALUES (8, '1007', 'DIRECCION DE ATENCION AL CIUDADANO Y CONTROL COMUN', 'DIR.ATEN.CIUD. Y CNT', 'DECCC', '0000-00-00', 'ACTIVO'); INSERT INTO `direcciones` VALUES (9, '1008', 'DIRECCION DE DETERMINACION DE RESPONSABILIDADES', 'DIR. DETER. DE RESP.', 'DDR', '0000-00-00', 'ACTIVO'); -- -------------------------------------------------------- -- -- Estructura de tabla para la tabla `integrantes` -- CREATE TABLE `integrantes` ( `id` int(10) unsigned NOT NULL auto_increment, `cedula` int(10) unsigned NOT NULL, `cod` varchar(4) NOT NULL, `nombres` varchar(50) NOT NULL, `apellidos` varchar(50) NOT NULL, `fecha_nacimiento` date NOT NULL default '0000-00-00', `lugar_nacimiento` varchar(100) NOT NULL, `sexo` char(10) default NULL, `edo_civil` char(10) default NULL, `profesion` varchar(255) default NULL, `grado_instruccion` varchar(30) default NULL, `cargo` varchar(30) default NULL, `fecha_ingreso` date NOT NULL, `anos_servicio` varchar(2) NOT NULL default '0', `direccion` varchar(100) default NULL, `departamento` varchar(100) default NULL, `tlf_habitacion` varchar(12) default NULL, `tlf_celular` varchar(12) default NULL, `status` varchar(1) default NULL, `status_asistencia` smallint(1) NOT NULL default '1' COMMENT '0= no sale en asistencias, 1= sale en asistencias,', `tipo_nomina` varchar(20) default NULL, `pago_banco` varchar(1) default NULL, `codigo` varchar(5) default NULL, UNIQUE KEY `cedula` (`cedula`), KEY `id_funcionario` (`id`) ) ENGINE=MyISAM DEFAULT CHARSET=latin1 AUTO_INCREMENT=166 ; -- -- Volcar la base de datos para la tabla `integrantes` -- INSERT INTO `integrantes` VALUES (1, 4051711, '0072', 'JONNY JOSE', 'ACOSTA REYES', '1952-09-14', 'PAMPATAR', 'MASCULINO', 'SOLTERO', '8V. SEMESTRE CONTADURIA PUBLICA', 'BACHILLER', '', '1987-04-16', '0', 'CALLE JUAN MANUEL GUERRA, SAN LORENZO', '', '', '', '1', 1, 'EMPLEADOS', '1', '1'); INSERT INTO `integrantes` VALUES (2, 4512285, '0110', 'JUVENCIO RAMON', 'AMPARAN', '1949-06-01', 'CARANTOÑA M. GOMEZ', 'MASCULINO', 'SOLTERO', 'TOPOGRAFO', '3 AÑO BACHILLERATO', '', '2000-03-17', '16', 'CALLE PRINCIPAL ENTRADA AL CERCADO', '', '', '', '1', 1, 'EMPLEADOS', '1', '2'); INSERT INTO `integrantes` VALUES (3, 8385761, '0013', 'DERQUI JESUS', 'BRITO MARTINEZ', '1960-10-18', 'LOS ROBLES', 'MASCULINO', 'SOLTERO', '12', 'BACHILLER', '', '1996-02-01', '1', 'CALLE DON JESUS LOS ROBLES', '', '', '', '1', 1, 'EMPLEADOS', '1', '3'); INSERT INTO `integrantes` VALUES (4, 3670594, '0051', 'CARLOS JESUS', 'BRITO', '1950-01-30', 'PUERTO FERMIN', 'MASCULINO', 'SOLTERO', 'CONTABILISTA', 'BACHILLER', '', '1985-12-16', '0', 'CALLE FIGUEROA EL TIRANO', '', '', '', '1', 1, 'EMPLEADOS', '1', '4'); INSERT INTO `integrantes` VALUES (5, 5477294, '0008', 'CATALINO ANTONIO', 'CORDOVA MARIN', '1959-08-16', 'EL MACO', 'MASCULINO', 'SOLTERO', 'ABOGADO ', 'UNIVERSITARIO', '', '1984-05-22', '1', 'CALLE SAN ANTONIO EL MACO', '', '', '', '1', 1, 'EMPLEADOS', '1', '5'); INSERT INTO `integrantes` VALUES (6, 9303416, '0095', 'FELIPE JOSE', 'FERNANDEZ FERMIN', '1965-02-07', '', 'MASCULINO', 'SOLTERO', '10', '', '', '1999-08-02', '0', '', '', '', '', '1', 1, 'EMPLEADOS', '1', '6'); INSERT INTO `integrantes` VALUES (7, 4654397, '0045', 'ALEXIS JOSE', 'FERNANDEZ HERNANDEZ', '1958-04-27', 'MONAGAS', 'MASCULINO', 'SOLTERO', 'ABOGADO', 'UNIVERSITARIO', '', '1985-01-01', '1', 'CALLE SALGADO LA CRUZ DEL PASTEL', '', '', '', '1', 1, 'EMPLEADOS', '1', '7'); INSERT INTO `integrantes` VALUES (8, 10204661, '', 'REGULO JOSE', 'FERNANDEZ QUIJADA', '1971-12-27', '', 'Masculino', '0', 'MARATONISTA', '', '', '0000-00-00', '', '', '', '', '', '0', 0, 'EMPLEADOS', '', '8'); INSERT INTO `integrantes` VALUES (9, 11829028, '0070', 'LENIN JOSE', 'FLORES', '1974-07-23', 'CUMANA', 'MASCULINO', 'SOLTERO', 'ADMINISTRACION INDUSTRIALES', 'TECNICO SUPERIOR', '', '1996-10-01', '0', 'ISLETA II, CASA Nº 84-66, MUNICIPIO GARCIA', '', '', '', '0', 1, 'EMPLEADOS', '1', '9'); INSERT INTO `integrantes` VALUES (10, 12222156, '0011', 'KATIUSKA DEL CARMEN', 'GARCIA BRITO', '1975-07-16', 'PORLAMAR', 'MASCULINO', 'SOLTERO', 'T.S.U.ADMINISTRACION ADUANERA', 'UNIVERSITARIO', '', '2000-03-01', '0', 'URB. VILLA ROSA, VEREDA 75, SECTOR G.', '', '', '', '1', 1, 'EMPLEADOS', '1', '10'); INSERT INTO `integrantes` VALUES (11, 2803086, '', 'FIDEL ANTONIO', 'GUEVARA', '1948-04-24', '', 'Masculino', '0', '32', '', '', '0000-00-00', '', '', '', '', '', '0', 0, 'PENSIONADOS', '', '11'); INSERT INTO `integrantes` VALUES (12, 4018459, '0069', 'ARLENY DEL VALLE', 'HENRIQUEZ ZABALA', '1954-08-29', 'CABIMAS', 'MASCULINO', 'SOLTERO', '', 'BACHILLER', '', '1997-12-01', '0', 'CALLE NARVAEZ, PORLAMAR', '', '', '', '1', 1, 'EMPLEADOS', '1', '12'); INSERT INTO `integrantes` VALUES (13, 9308955, '0040', 'FELICIA DEL CARMEN', 'HENRIQUEZ DE FUENTES', '1967-06-09', 'PORLAMAR', 'MASCULINO', 'SOLTERO', 'ABOGADO', 'UNIVERSITARIO', '', '1991-01-01', '0', 'CALLE LAS FLORES, LA GUARDIA', '', '', '', '1', 1, 'EMPLEADOS', '1', '13'); INSERT INTO `integrantes` VALUES (14, 5477905, '0028', 'JUAN LUIS', 'LEANDRO', '1956-05-16', 'PUNTA DE PIEDRAS', 'MASCULINO', 'SOLTERO', 'OFICINISTA', 'BACHILLER', '', '1997-06-16', '10', 'CALLE COLON PUNTA DE PIEDRAS', '', '', '', '1', 1, 'EMPLEADOS', '1', '15'); INSERT INTO `integrantes` VALUES (15, 8442192, '0052', 'REGULO JOSE', 'MENESES', '1961-04-19', 'SUCRE', 'MASCULINO', 'SOLTERO', '', 'BACHILLER', '', '1989-03-16', '0', 'URB. VISTA ALEGRE, CASA S/N MUNICIPIO DIAZ', '', '', '', '1', 1, 'EMPLEADOS', '1', '16'); INSERT INTO `integrantes` VALUES (16, 8926627, '0087', 'JOSE MARIA', 'MILLAN MARQUEZ', '1963-08-11', '', 'MASCULINO', 'SOLTERO', '12', '', '', '1992-04-16', '4', '', '', '', '', '1', 1, 'EMPLEADOS', '1', '17'); INSERT INTO `integrantes` VALUES (17, 8388339, '0057', 'WILFREDO JOSE', 'NUÑEZ', '1960-08-21', 'PANPATAR', 'MASCULINO', 'SOLTERO', 'T.S.U.ADMINISTRACION ', 'TECNICO SUPERIOR', '', '1999-07-16', '2', 'CALLE JUAN ACOSTA PAMPATAR', '', '', '', '1', 1, 'EMPLEADOS', '1', '18'); INSERT INTO `integrantes` VALUES (18, 8378076, '0056', 'PEDRO JOSE', 'PALMARES', '1962-04-27', 'MATURIN', 'MASCULINO', 'SOLTERO', '', 'BACHILLER', '', '1992-04-16', '6', 'CALLE GOMEZ Nº 61 SECTOR ACHIPANO', '', '', '', '1', 1, 'EMPLEADOS', '1', '19'); INSERT INTO `integrantes` VALUES (19, 12224570, '0035', 'EVELINDA DEL VALLE', 'PEREZ DE CARRASCO', '1974-03-03', 'LA SIERRA', 'MASCULINO', 'SOLTERO', '12', 'BACHILLER', '', '1997-01-01', '0', 'GUATAMARE', '', '', '', '1', 1, 'EMPLEADOS', '1', '20'); INSERT INTO `integrantes` VALUES (20, 8392072, '0064', 'ROBERTO SALVADOR', 'RAMOS GARCIA', '1962-04-16', 'PORLAMAR', 'MASCULINO', 'SOLTERO', '', 'PRIMER AÑO', '', '1988-04-16', '0', 'CALLE PAEZ,CERCA DEL LICEO NUEVA ESPARTA, MUNICIPIO MARIÑO', '', '', '', '1', 1, 'EMPLEADOS', '1', '21'); INSERT INTO `integrantes` VALUES (21, 8381570, '0134', 'ERNESTO LUIS', 'RODRIGUEZ GONZALEZ', '1961-03-11', 'PORLAMAR', 'MASCULINO', 'SOLTERO', '', 'SEGUNDO AÑO', '', '1985-09-24', '0', 'CALLEJON BOLIVAR DEL VALLE DE PEDRO GONZALEZ', '', '', '', '1', 1, 'EMPLEADOS', '1', '22'); INSERT INTO `integrantes` VALUES (22, 2166981, '0094', 'ANGEL JOSE', 'RODRIGUEZ SALAZAR', '1942-01-25', '', 'MASCULINO', 'SOLTERO', '12', '', '', '0000-00-00', '', '', '', '', '', '1', 0, 'PENSIONADOS', '1', '23'); INSERT INTO `integrantes` VALUES (23, 13669573, '0090', 'HAROLDS LUIS', 'ROJAS AGUILERA', '1979-10-25', 'PORLAMAR', 'MASCULINO', 'SOLTERO', 'ABOGADO ', 'UNIVERSITARIO', '', '0000-00-00', '', 'CALLE ANTONIO DIAZ,PAMPATAR', '', '', '', '0', 0, 'EMPLEADOS', '1', '24'); INSERT INTO `integrantes` VALUES (24, 12225307, '0098', 'ANDRES EMILIO', 'ROJAS PEREZ', '1971-09-19', 'PORLAMAR', 'MASCULINO', 'SOLTERO', '', 'BACHILLER', '', '1997-07-01', '0', 'ISLA DE COCHE LOS CERRITOS', '', '', '', '1', 1, 'EMPLEADOS', '1', '25'); INSERT INTO `integrantes` VALUES (25, 5482703, '0046', 'JOSE LUIS', 'SUAREZ', '1959-12-09', 'AGUA DE VACA', 'MASCULINO', 'SOLTERO', 'CONTABILISTA', '2DO AÑO BACHILLERATO', '', '1987-04-08', '2', 'CALLE PRINCIPAL DEL CASERIO GUERRA, AGUA DE VACA', '', '', '', '1', 1, 'EMPLEADOS', '1', '26'); INSERT INTO `integrantes` VALUES (26, 4649004, '0055', 'NISCAMBRIO RAMON', 'SILVA CARREÑO', '1955-05-30', 'ISLA DE COCHE', 'MASCULINO', 'SOLTERO', '', '2DO AÑO BACHILLERATO', '', '1993-06-07', '0', 'CALLE PRINCIPAL, MACHO MUERTO', '', '', '', '1', 1, 'EMPLEADOS', '1', '27'); INSERT INTO `integrantes` VALUES (27, 1882215, '0062', 'OCTAVIO ELIAS', 'TEJERA PIÑERO', '1938-03-12', '', 'MASCULINO', 'SOLTERO', '32', '', '', '0000-00-00', '', '', '', '', '', '1', 0, 'JUBILADOS', '1', '28'); INSERT INTO `integrantes` VALUES (28, 8382049, '', 'LUZ ELENA', 'TORTABU GONZALEZ', '1961-07-03', '', 'Masculino', '1', '10', '', '', '0000-00-00', '', '', '', '', '', '0', 0, 'EMPLEADOS', '', '29'); INSERT INTO `integrantes` VALUES (29, 5473836, '0033', 'MARIA DEL VALLE', 'SANCHEZ HERNANDEZ', '1957-09-08', 'CHAMARIAPA. SUCRE', 'MASCULINO', 'SOLTERO', 'SECRETARIA ', 'BACHILLER', '', '1989-04-03', '0', 'CALLA SAN ANTONIO CASANº 04-44 LOS COCOS PORLAMAR', '', '', '', '1', 1, 'EMPLEADOS', '1', '31'); INSERT INTO `integrantes` VALUES (30, 4654821, '0028', 'AGUSTIN JOSE', 'MARCANO GOMEZ', '1950-08-30', '', 'MASCULINO', 'SOLTERO', '32', '', '', '0000-00-00', '', '', '', '', '', '1', 0, 'JUBILADOS', '1', '32'); INSERT INTO `integrantes` VALUES (31, 3486366, '0058', 'CARLOS ALBERTO', 'LEON AGUILERA', '1948-11-01', '', 'MASCULINO', 'SOLTERO', '12', '', '', '0000-00-00', '', '', '', '', '', '1', 0, 'JUBILADOS', '1', '33'); INSERT INTO `integrantes` VALUES (32, 5480903, '', 'GUILLERMO ANTONIO', 'SERRA MAGO', '1959-09-11', '', 'Masculino', '2', '9', '', '', '0000-00-00', '', '', '', '', '', '0', 0, 'EMPLEADOS', '', '34'); INSERT INTO `integrantes` VALUES (33, 4648525, '0082', 'ROGEL JOSE', 'MORENO MATA', '1949-08-06', '', 'MASCULINO', 'SOLTERO', '32', '', '', '0000-00-00', '', '', '', '', '', '1', 0, 'JUBILADOS', '1', '35'); INSERT INTO `integrantes` VALUES (34, 4653768, '0031', 'NANCY ESTERBINA', 'SANCHEZ HERNANDEZ', '1955-12-26', '', 'MASCULINO', 'SOLTERO', '35', '', '', '0000-00-00', '', '', '', '', '', '1', 0, 'JUBILADOS', '1', '36'); INSERT INTO `integrantes` VALUES (35, 4189050, '0084', 'ARMANDO JOSE', 'RODRIGUEZ RODRIGUEZ', '1951-08-27', '', 'MASCULINO', 'SOLTERO', '32', '', '', '0000-00-00', '', '', '', '', '', '1', 0, 'JUBILADOS', '1', '37'); INSERT INTO `integrantes` VALUES (36, 11144676, '0086', 'ALEXIS JAVIER', 'GUERRA SUAREZ', '1971-04-02', 'PORLAMAR', 'MASCULINO', 'SOLTERO', 'T.S.U. EN INFORMATICA', 'TECNICO SUPERIOR', '', '1993-06-01', '0', 'CALLE PRINCIPAL. AGUA DE VACA', '', '', '', '1', 1, 'EMPLEADOS', '1', '38'); INSERT INTO `integrantes` VALUES (37, 6428161, '0128', 'MERCEDES MARIA', 'PEPIN ANDRADE', '1961-09-24', 'CARACAS', 'MASCULINO', 'SOLTERO', '', 'BACHILLER', '', '2001-09-03', '0', 'CALLE 1,CASA I-03 URB. LA ARBOLEDA', '', '', '', '1', 1, 'EMPLEADOS', '1', '39'); INSERT INTO `integrantes` VALUES (38, 8396643, '0102', 'ANGELES ZENAIDA', 'ALCALA MATA', '1964-04-24', 'JUANGRIEGO', 'MASCULINO', 'SOLTERO', 'T.S.U. RELACIONES INDUSTRIALES', 'TECNICO SUPERIOR', '', '2000-03-01', '5', 'CALLE PRINCIPAL DE PEDREGALES', '', '', '', '1', 1, 'EMPLEADOS', '1', '41'); INSERT INTO `integrantes` VALUES (39, 11142484, '0118', 'NELLYS TERESA', 'BERBIN SILVA', '1971-11-28', 'PORLAMAR', 'MASCULINO', 'SOLTERO', '12', 'BACHILLER', '', '2000-07-03', '0', 'CALLE LA CEIBA, LA ASUNCION', '', '', '', '1', 1, 'EMPLEADOS', '1', '42'); INSERT INTO `integrantes` VALUES (40, 5476102, '0032', 'CARMEN JOSEFINA', 'CARRASCO REYES', '1958-11-10', 'PORLAMAR', 'MASCULINO', 'SOLTERO', 'T.S.U. ADMINISTRACION TRIBUTARIA', 'TECNICO SUPERIOR', '', '1981-10-16', '0', 'SECTOR EL CIMARRON PTO.FERMIN', '', '', '', '1', 1, 'EMPLEADOS', '1', '43'); INSERT INTO `integrantes` VALUES (41, 12506912, '0034', 'YAQUELINE GREGORIA', 'GONZALEZ SUAREZ', '1975-03-12', 'PORLAMAR', 'MASCULINO', 'SOLTERO', 'ASISTENTE ADMINISTRATIVO', 'BACHILLER', '', '1993-01-01', '0', 'CALLE PORLAMAR LOS COCOS', '', '', '', '1', 1, 'EMPLEADOS', '1', '44'); INSERT INTO `integrantes` VALUES (42, 8392561, '0117', 'EDGAR RAMON', 'MARTINEZ', '1962-05-05', 'PORLAMAR', 'MASCULINO', 'SOLTERO', '', '4TO. AÑO', '', '2000-05-01', '0', 'CALLE EL LIMON, CASA S/N EL SALADO', '', '', '', '1', 1, 'EMPLEADOS', '1', '47'); INSERT INTO `integrantes` VALUES (43, 4271638, '0124', 'DANIEL ORLANDO', 'AGUERO', '1953-01-03', 'BARQUISIMETO', 'MASCULINO', 'SOLTERO', '32', '4TO. AÑO', '', '2000-11-13', '0', 'EL SALADO SECTOR APECURERO', '', '', '', '1', 1, 'EMPLEADOS', '1', '48'); INSERT INTO `integrantes` VALUES (44, 5589301, '0127', 'NORA ELENA', 'CALDERA GOMEZ', '1959-06-28', 'CARACAS', 'MASCULINO', 'SOLTERO', 'SECRETARIA ', 'BACHILLER', '', '2001-08-01', '3', 'CALLE SAN JOSE LA VECINDAD', '', '', '', '1', 1, 'EMPLEADOS', '1', '50'); INSERT INTO `integrantes` VALUES (45, 8398597, '0038', 'YANET FRANCISCA', 'HEREDIA BELLO', '1964-06-02', 'PORLAMAR', 'MASCULINO', 'SOLTERO', 'RECEPCIONISTA', 'BACHILLER', '', '1999-01-04', '0', 'URB. VICUÑA LOS MILLANES', '', '', '', '1', 1, 'EMPLEADOS', '1', '51'); INSERT INTO `integrantes` VALUES (46, 12669638, '0036', 'MARIA GABRIELA', 'LEON SOLEDAD', '1974-09-14', 'CARACAS', 'MASCULINO', 'SOLTERO', '', 'BACHILLER', '', '1998-04-01', '0', 'CALLE MARGARITA CEDEÑO, CASA S/N, LAS MARITAS', '', '', '', '1', 1, 'EMPLEADOS', '1', '52'); INSERT INTO `integrantes` VALUES (48, 5721970, '0044', 'ROMER ANTONIO', 'SALAZAR BRITO', '1959-06-15', 'LAGUNILLA EDO.ZULIA', 'MASCULINO', 'SOLTERO', 'OFICINISTA', 'BACHILLER', '', '1981-03-01', '0', 'CALLE PRINCIPAL DE SAN ANTONIO A 300 MTS DE LA ENTRADA CASA S/N', '', '', '', '1', 1, 'EMPLEADOS', '1', '54'); INSERT INTO `integrantes` VALUES (49, 13541356, '0129', 'FERNANDO JOSE', 'MARTINEZ BRITO', '1977-08-09', 'PORLAMAR', 'MASCULINO', 'SOLTERO', '', 'BACHILLER', '', '2002-02-19', '0', 'AV. 31 DE JULIO EL SALADO CASA S/N', '', '', '', '1', 1, 'EMPLEADOS', '1', '55'); INSERT INTO `integrantes` VALUES (50, 4647270, '0083', 'PEDRO RAMON', 'ARISMENDI DIAZ', '1952-08-04', '', 'MASCULINO', 'SOLTERO', '32', '', '', '0000-00-00', '', '', '', '', '', '1', 0, 'JUBILADOS', '1', '56'); INSERT INTO `integrantes` VALUES (51, 3946767, '0092', 'THAIS JOSEFINA', 'MERCHAN PADILLA', '1950-12-07', 'CARUPANO', 'MASCULINO', 'SOLTERO', 'ADMINISTRACION COMERCIAL', 'UNIVERSITARIO', '', '1999-08-03', '0', 'RINCON LA CEIBA, ATAMO SUR', '', '', '', '1', 1, 'DIRECTORES', '1', '58'); INSERT INTO `integrantes` VALUES (52, 3824167, '', 'ORLANDO RAFAEL', 'MORENO MATA', '1954-05-30', '', 'Masculino', '2', '11', '', '', '0000-00-00', '', '', '', '', '', '0', 0, 'EMPLEADOS', '', '59'); INSERT INTO `integrantes` VALUES (54, 8470624, '0017', 'ALIDA EMILIA', 'MOYA DE GUEVARA', '1964-07-05', 'PARAGUACHI', 'MASCULINO', 'SOLTERO', 'CONTADOR PUBLICO', 'UNIVERSITARIO', '', '1995-01-06', '0', 'SECTOR LOS CHACOS, VILLA COLONIAL, LOS ROBLES', '', '', '', '1', 1, 'EMPLEADOS', '1', '61'); INSERT INTO `integrantes` VALUES (55, 6966895, '0120', 'JOSE GREGORIO', 'FLORES', '1968-04-12', 'CARACAS', 'MASCULINO', 'SOLTERO', 'ADMINISTRADOR', 'UNIVERSITARIO', 'DIRECTOR DE CONTROL DE LA ADMI', '2000-09-05', '0', 'AV. 31 DE JULIO TEJA ROJA, CASA Nº 111, SECTOR LOMA DE GUERRA', 'DIRECCION DE CONTROL DE LA ADMINISTRACION ESTADAL', '', '', '1', 1, 'DIRECTORES', '1', '62'); INSERT INTO `integrantes` VALUES (56, 4650716, '0115', 'JOSE FRANCISCO', 'SALAZAR SERRANO', '1956-12-02', 'EL SALADO. MUNICIPIO ANTOLIN DEL CAMPO', 'MASCULINO', 'SOLTERO', 'ABOGADO', 'UNIVERSITARIO', 'CONTRALOR DEL ESTADO', '2000-02-14', '16', 'URB. JORGE COLL CONJUNTO RESIDENCIAL VALLE AZUL , TOWNHOUSE Nº 8 PAMPATAR', 'CONTRALOR DEL ESTADO', '', '', '1', 1, 'DIRECTORES', '1', '63'); INSERT INTO `integrantes` VALUES (57, 6177583, '0126', 'ALBA NATHALIE', 'OCHOA TORRES', '1966-09-23', 'CARACAS', 'MASCULINO', 'SOLTERO', 'ABOGADO', 'UNIVERSITARIO', 'DIRECTORA DE RECURSOS HUMANOS', '2001-06-18', '8', 'URB. BAHIA DE PLATA ,Nº 10 ALTAGRACIA, MUNICIPIO GOMEZ', 'DIRECCION DE RECURSOS HUMANOS', '', '', '1', 1, 'DIRECTORES', '1', '65'); INSERT INTO `integrantes` VALUES (58, 1633192, '0079', 'ABELARDO', 'VIZCAINO NARVAEZ', '1937-11-22', '', 'MASCULINO', 'SOLTERO', '32', '', '', '0000-00-00', '', '', '', '', '', '1', 0, 'JUBILADOS', '1', '66'); INSERT INTO `integrantes` VALUES (59, 12661621, '0012', 'ANAMARIA', 'GOMEZ COVA', '1975-01-15', 'CARACAS', 'MASCULINO', 'SOLTERO', 'ABOGADO', 'UNIVERSITARIO', '', '1999-05-03', '0', 'CALLE QUILARTE RESIDENCIAS MUCURAPARO, PORLAMAR', '', '', '', '1', 1, 'EMPLEADOS', '1', '67'); INSERT INTO `integrantes` VALUES (60, 6122659, '0018', 'GRETTY DIVILEY', 'ATELLA BRAVO', '1965-05-28', 'CARACAS', 'MASCULINO', 'SOLTERO', 'ABOGADO', 'UNIVERSITARIO', 'DIRECTORA DE LA DIRECCION DE D', '1998-04-16', '0', 'AV. FRANCISCO FAJARDO SECTOR CONEJERO', 'DIRECCION DE DETERMINACION DE RESPONSABILIDADES', '', '', '1', 1, 'DIRECTORES', '1', '68'); INSERT INTO `integrantes` VALUES (61, 4647928, '0029', 'LUIS ALBERTO', 'CARREÑO', '1952-11-14', 'PORLAMAR', 'MASCULINO', 'SOLTERO', 'LIC. ADMINISTRACION', 'UNIVERSITARIO', '', '1999-05-18', '10', 'URBANIZACIÓN LA GUARINA', '', '', '', '1', 1, 'EMPLEADOS', '1', '69'); INSERT INTO `integrantes` VALUES (62, 4651478, '0025', 'PEDRO LUIS', 'VALDERRAMA MONASTERIOS', '1957-11-08', 'PORLAMAR', 'MASCULINO', 'SOLTERO', 'CONTADOR PUBLICO', 'UNIVERSITARIO', '', '1999-05-16', '3', 'PROLONGACION CALLE SAN JOSE CASA S/N DETRAS DEL JARDINN DE INFANCIA DE PARAGUACHI', '', '', '', '1', 1, 'EMPLEADOS', '1', '70'); INSERT INTO `integrantes` VALUES (63, 5482954, '0107', 'CARMEN JOSEFINA', 'ANDARA SILVA', '1961-07-15', 'PORLAMAR', 'MASCULINO', 'SOLTERO', 'INGENIERO CIVIL', 'UNIVERSITARIO', '', '2000-03-17', '3', 'URB. PLAYA EL ANGEL ', '', '', '', '1', 1, 'EMPLEADOS', '1', '71'); INSERT INTO `integrantes` VALUES (64, 13023459, '0103', 'JANETH DEL CARMEN', 'COLL FERMIN', '1977-04-06', 'CABIMAS', 'MASCULINO', 'SOLTERO', 'LIC. ADMINISTRACIÓN', 'UNIVERSITARIO', 'DIRECTORA DE ADMINISTRACION Y ', '2000-03-16', '0', 'AV. 31 DE JULIO EL SALADO', 'DIRECCION DE ADMINISTRACION Y PRESUPUESTO', '', '', '1', 1, 'DIRECTORES', '1', '72'); INSERT INTO `integrantes` VALUES (66, 8385744, '0016', 'DORELIS DEL VALLE', 'GOMEZ GONZALEZ', '1961-05-07', 'SAN PEDRO DE COCHE', 'MASCULINO', 'SOLTERO', 'CONTADOR PUBLICO', 'UNIVERSITARIO', '', '1995-03-01', '0', 'SECTOR CRUZ DEL PASTEL MUNICIPIO GARCIA', '', '', '', '1', 1, 'EMPLEADOS', '1', '74'); INSERT INTO `integrantes` VALUES (67, 11855143, '0078', 'MELVIS JOSE', 'FUENTES DIAZ', '1973-08-14', 'PORLAMAR', 'MASCULINO', 'SOLTERO', 'T.S.U.INFORMATICA', 'UNIVERSITARIO', '', '1996-02-01', '0', 'CALLE SAN JOSE VALLE PEDRO GONZALEZ', '', '', '', '1', 1, 'EMPLEADOS', '1', '75'); INSERT INTO `integrantes` VALUES (68, 8566093, '0075', 'NELSON CARLOS', 'MARTINI HERNANDEZ', '1963-02-03', 'GUARICO', 'MASCULINO', 'SOLTERO', 'INGENIERO CIVIL', 'UNIVERSITARIO', '', '1993-06-01', '0', 'AV. BOLIVAR PLAYA EL ANGEL ', '', '', '', '1', 1, 'EMPLEADOS', '1', '76'); INSERT INTO `integrantes` VALUES (69, 4422887, '0029', 'ALICIA COROMOTO', 'GARCIA RUIZ', '1956-09-25', '', 'MASCULINO', 'SOLTERO', '11', '', '', '0000-00-00', '', '', '', '', '', '1', 0, 'JUBILADOS', '1', '77'); INSERT INTO `integrantes` VALUES (70, 5482594, '0105', 'MILAGROS WISTREMUNDA', 'GARCIA DE MARTINEZ', '1961-02-16', 'PORLAMAR', 'MASCULINO', 'SOLTERO', 'ARQUITECTO', 'UNIVERSITARIO', 'DIRECTORA DE LA UNIDAD DE ATEN', '2000-03-16', '0', 'AV. PRINCIPAL, LA FUNETE FRENTE AL BOULEVARD', 'UNIDAD DE ATENCION CIUDADANA Y CONTROL COMUNITARIA', '', '', '1', 1, 'DIRECTORES', '1', '78'); INSERT INTO `integrantes` VALUES (71, 11536888, '0116', 'AMERLIN ROSALBA', 'ROSAS VASQUEZ', '1974-03-01', 'Porlamar', 'MASCULINO', 'SOLTERO', 'CONTADOR PUBLICO', 'UNIVERSITARIO', '', '2000-04-03', '0', 'CALLE 24 DE JULIO, PARAGUACHI', '', '', '', '1', 1, 'EMPLEADOS', '1', '79'); INSERT INTO `integrantes` VALUES (72, 4656784, '', 'JESUS JOSE', 'ROJAS MILANO', '1959-01-07', '', 'Masculino', '2', '37', '', '', '0000-00-00', '', '', '', '', '', '0', 0, 'EMPLEADOS', '', '80'); INSERT INTO `integrantes` VALUES (73, 11142532, '0109', 'LENYN GREGORIO', 'ROJAS RODRIGUEZ', '1970-03-09', 'PORLAMAR', 'MASCULINO', 'SOLTERO', 'DISEÑADOR DE OBRAS CIVILES', 'TECNICO SUPERIOR', '', '2000-03-17', '0', 'AV. JUAN BAUTISTA ARISMENDI AL LADO DE LA ALMACENADORA MARGARITA', '', '', '', '1', 1, 'EMPLEADOS', '1', '81'); INSERT INTO `integrantes` VALUES (74, 11852605, '0042', 'ALEXANDER JOSE', 'ROSAS JIMENEZ', '1972-03-07', 'PORLAMAR', 'MASCULINO', 'SOLTERO', 'ABOGADO', 'UNIVERSITARIO', '', '1997-04-01', '0', 'URB. JOVITO VILLALBA PAMPATAR', '', '', '', '1', 1, 'EMPLEADOS', '1', '82'); INSERT INTO `integrantes` VALUES (75, 5605331, '0005', 'OSIRIS COROMOTO', 'PATIÑO VALENZUELA', '1963-12-23', 'CARACAS', 'MASCULINO', 'SOLTERO', 'ABOGADO ', 'UNIVERSITARIO', '', '2000-02-22', '1', 'URB. EL PORTAL DE LOS ROBLES', 'ASESORIA DEL DESPACHO', '', '', '1', 1, 'DIRECTORES', '1', '83'); INSERT INTO `integrantes` VALUES (76, 13729622, '0123', 'PEDRO ENRIQUE', 'ARRIOJA MARCANO', '1978-06-12', 'CARUPANO', 'MASCULINO', 'SOLTERO', 'INGENIERO EN SISTEMAS', 'UNIVERSITARIO', 'DIRECTOR DE ORGANIZACION Y SIS', '2000-07-03', '0', 'LA ASUNCION', 'DIRECCION DE ORGANIZACION Y SISTEMAS', '', '', '1', 1, 'DIRECTORES', '1', '84'); INSERT INTO `integrantes` VALUES (77, 4652451, '0024', 'LUIS RAMON', 'MARCANO MARIN', '1957-06-22', 'BOCA DEL RIO', 'MASCULINO', 'SOLTERO', 'ECONOMISTA', 'UNIVERSITARIO', '', '1999-05-16', '3', 'CALLE MARINA FRENTE AL CENTRO CULTURAL BOCA DEL RIO', '', '', '', '1', 1, 'EMPLEADOS', '1', '85'); INSERT INTO `integrantes` VALUES (78, 10214381, '', 'JUAN FRANCISCO', 'BELLORIN SALAZAR', '1972-04-17', '', 'Masculino', '1', '11', '', '', '0000-00-00', '', '', '', '', '', '0', 0, 'EMPLEADOS', '', '86'); INSERT INTO `integrantes` VALUES (79, 4583844, '', 'GUSTAVO', 'LAFEE SANTANA', '1955-07-23', '', 'Masculino', '1', '7', '', '', '0000-00-00', '', '', '', '', '', '0', 0, 'EMPLEADOS', '', '87'); INSERT INTO `integrantes` VALUES (80, 14055011, '0122', 'MARICRUZ', 'TURKALI GUERRA', '1979-01-06', 'PORLAMAR', 'MASCULINO', 'SOLTERO', 'INGENIERO EN SISTEMAS', 'UNIVERSITARIO', '', '2000-11-01', '0', 'CALLE LA NORIA LA ASUNCION', '', '', '', '1', 1, 'EMPLEADOS', '1', '88'); INSERT INTO `integrantes` VALUES (81, 5482007, '0119', 'MARINA DEL VALLE', 'FIGUEROA DELGADO', '1959-08-09', 'PORLAMAR', 'MASCULINO', 'SOLTERO', 'ABOGADO', 'UNIVERSITARIO', '', '2000-08-01', '15', 'uRB. LA GUARINA, SEGUNDA CALLE', '', '', '', '1', 1, 'EMPLEADOS', '1', '89'); INSERT INTO `integrantes` VALUES (82, 8390397, '', 'ABEL JOSE', 'VELASQUEZ VELASQUEZ', '1963-12-05', 'CARAPACHO, SAN JUAN', 'Masculino', '*Concubina', 'LIC. ADMINISTRACION', 'UNIVERSITARIO', '', '0000-00-00', '', 'CALLE MARCANO CARAPACHO SAN JUAN', '', '', '', '0', 0, 'EMPLEADOS', '', '90'); INSERT INTO `integrantes` VALUES (83, 3822286, '0011', 'JOSE DOMINGO', 'HERNANDEZ', '1947-02-03', '', 'MASCULINO', 'SOLTERO', '35', '', '', '0000-00-00', '', '', '', '', '', '1', 0, 'PENSIONADOS', '1', '91'); INSERT INTO `integrantes` VALUES (84, 2155158, '0020', 'RAFAEL', 'NORIEGA SALAZAR', '1941-01-01', '', 'MASCULINO', 'SOLTERO', '12', '', '', '0000-00-00', '', '', '', '', '', '1', 0, 'JUBILADOS', '1', '93'); INSERT INTO `integrantes` VALUES (85, 2832725, '0071', 'VICTOR JULIO', 'SALAZAR MARCANO', '1944-07-21', '', 'MASCULINO', 'SOLTERO', '32', '', '', '0000-00-00', '', '', '', '', '', '1', 0, 'JUBILADOS', '1', '94'); INSERT INTO `integrantes` VALUES (86, 2826195, '0022', 'LUIS ALBERTO', 'ALFONZO', '1945-04-08', '', 'MASCULINO', 'SOLTERO', '32', '', '', '0000-00-00', '', '', '', '', '', '1', 0, 'JUBILADOS', '1', '95'); INSERT INTO `integrantes` VALUES (87, 4051700, '0019', 'ROSAURO JOSE', 'RIVAS SERRA', '1953-10-07', '', 'MASCULINO', 'SOLTERO', '12', '', '', '0000-00-00', '', '', '', '', '', '1', 0, 'JUBILADOS', '1', '96'); INSERT INTO `integrantes` VALUES (88, 3488626, '0059', 'RAFAEL TOBIAS', 'MENDOZA ROSAS', '1947-12-06', '', 'MASCULINO', 'SOLTERO', '32', '', '', '0000-00-00', '', '', '', '', '', '1', 0, 'JUBILADOS', '1', '97'); INSERT INTO `integrantes` VALUES (89, 3487152, '0049', 'LUIS RAFAEL', 'PEREIRA BEAUFOND', '1946-01-08', '', 'MASCULINO', 'SOLTERO', '12', '', '', '0000-00-00', '', '', '', '', '', '1', 0, 'JUBILADOS', '1', '98'); INSERT INTO `integrantes` VALUES (90, 3489278, '', 'MANUEL RAFAEL', 'MARCANO ZABALA', '1950-01-06', '', 'Masculino', '2', '32', '', '', '0000-00-00', '', '', '', '', '', '0', 0, 'EMPLEADOS', '', '99'); INSERT INTO `integrantes` VALUES (91, 5643691, '0125', 'AIYAMARA', 'SALINAS COLMENARES', '1958-12-07', 'SAN CRISTOBAL, EDO TACHIRA', 'MASCULINO', 'SOLTERO', 'CONTADOR PUBLICO', 'UNIVERSITARIO', '', '2001-06-18', '0', 'CONJUNTO RESIDENCIAL LA PORTADA, LA ASUNCION', '', '', '', '1', 1, 'EMPLEADOS', '1', '100'); INSERT INTO `integrantes` VALUES (92, 3488376, '0024', 'PEDRO LUIS', 'LOPEZ LOPEZ', '1947-09-09', '', 'MASCULINO', 'SOLTERO', '32', '', '', '0000-00-00', '', '', '', '', '', '1', 0, 'JUBILADOS', '1', '101'); INSERT INTO `integrantes` VALUES (93, 2168112, '0026', 'CARMEN REMIGIA', 'SUAREZ DE GUERRA', '1940-10-01', '', 'MASCULINO', 'SOLTERO', '35', '', '', '0000-00-00', '', '', '', '', '', '1', 0, 'JUBILADOS', '1', '102'); INSERT INTO `integrantes` VALUES (94, 3045299, '0021', 'JOSE MERCEDES', 'MILLAN QUIJADA', '1949-07-24', '', 'MASCULINO', 'SOLTERO', '32', '', '', '0000-00-00', '', '', '', '', '', '1', 0, 'JUBILADOS', '1', '103'); INSERT INTO `integrantes` VALUES (95, 11143327, '', 'JIMMY', 'IMBRONDONE FERMIN', '1970-11-04', '', 'Masculino', '1', '11', '', '', '0000-00-00', '', '', '', '', '', '0', 0, 'EMPLEADOS', '', '104'); INSERT INTO `integrantes` VALUES (96, 5885859, '', 'CARLOS ENRIQUE', 'GUDIÑO BARRIOS', '1960-04-26', '', 'Masculino', '0', '12', '', '', '0000-00-00', '', '', '', '', '', '0', 0, 'EMPLEADOS', '', '105'); INSERT INTO `integrantes` VALUES (97, 1748998, '', 'RAFAEL MIGUEL PASTOR', 'FELICE CASTILLO', '1942-09-15', '', 'Masculino', '2', '37', '', '', '0000-00-00', '', '', '', '', '', '0', 0, 'EMPLEADOS', '', '106'); INSERT INTO `integrantes` VALUES (98, 7164093, '', 'ALFREDO JOSE', 'MENDOZA OVALLES', '1968-04-04', '', 'Masculino', '2', '32', '', '', '0000-00-00', '', '', '', '', '', '0', 0, 'EMPLEADOS', '', '107'); INSERT INTO `integrantes` VALUES (99, 4656077, '', 'WOLFGANG LUIS', 'SALAZAR SALAZAR', '1958-03-11', '', 'Masculino', '1', '37', '', '', '0000-00-00', '', '', '', '', '', '0', 0, 'EMPLEADOS', '', '108'); INSERT INTO `integrantes` VALUES (100, 879613, '', 'PEDRO CECILIO', 'SALGADO MOYA', '1934-12-04', '', 'Masculino', '2', '32', '', '', '0000-00-00', '', '', '', '', '', '0', 0, 'EMPLEADOS', '', '109'); INSERT INTO `integrantes` VALUES (101, 1157385, '0006', 'JESUS MANUEL', 'MILLAN', '1935-10-15', '', 'MASCULINO', 'SOLTERO', '32', '', '', '0000-00-00', '', '', '', '', '', '1', 0, 'PENSIONADOS', '1', '110'); INSERT INTO `integrantes` VALUES (102, 11506606, '0130', 'ISNELLY JOSEFINA', 'BALZA SALINAS', '1975-02-21', 'SAN CRISTOBAL', 'MASCULINO', 'SOLTERO', 'LIC. RELACIONES INDUSTRIALES', 'UNIVERSITARIO', '', '2002-10-15', '0', 'CALLE MARIÑO SECTOR LOMA DE GUERRA', '', '', '', '1', 1, 'EMPLEADOS', '1', '112'); INSERT INTO `integrantes` VALUES (103, 13668974, '0131', 'VANESSA DEL VALLE', 'RIVERA GARCIA', '1977-05-24', 'EL VALLE ESPIRITU SANTO', 'MASCULINO', 'SOLTERO', 'LIC.EN ESTUDIOS INTERNACIONALES', 'UNIVERSITARIO', '', '2002-10-15', '2', 'CONJUNTO RESEDENCIAL EL CAMINO,Nº 6 CALLE JOSE MARIA SUAREZ URB.SABANA MAR', '', '', '', '1', 1, 'EMPLEADOS', '1', '113'); INSERT INTO `integrantes` VALUES (104, 14220083, '', 'ORLENIS DEL VALLE', 'RODRIGUEZ ROSAS', '1979-04-07', 'PORLAMAR', 'Femenino', 'Casado', 'INGENIERO EN SISTEMAS', 'UNIVERSITARIO', '', '0000-00-00', '', 'SECTOR BELEN CASA S/N LOS ROBLES', '', '', '', '0', 0, 'EMPLEADOS', '', '114'); INSERT INTO `integrantes` VALUES (105, 9425982, '0132', 'MIRIAN JOSEFINA', 'NÚÑEZ ARTEAGA', '1968-11-13', 'PORLAMAR', 'MASCULINO', 'SOLTERO', 'PERIODISTA', 'UNIVERSITARIO', '', '2000-09-15', '6', 'SEGUNDA AV. GUATAMARE QTA. VIRGEN DEL VALLE LA ASUNCION', '', '', '', '1', 1, 'EMPLEADOS', '1', '115'); INSERT INTO `integrantes` VALUES (106, 12920483, '0136', 'PETRA DEL VALLE', 'NARVAEZ MARIN', '1976-07-06', 'BOCA DE RIO', 'MASCULINO', 'SOLTERO', 'CONTADOR PUBLICO', 'UNIVERSITARIO', '', '2004-02-02', '0', 'URB. VALLE VERDE', '', '', '', '1', 1, 'EMPLEADOS', '1', '116'); INSERT INTO `integrantes` VALUES (107, 5972426, '0135', 'MAÑANA', 'NOGUERA CARDENAS', '1962-09-16', 'CARACAS', 'MASCULINO', 'SOLTERO', 'ECONOMISTA', 'UNIVERSITARIO', '', '2004-02-02', '0', 'AV. PRINCIPAL DE ARICAGUA ANTOLIN DEL CAMPO', '', '', '', '1', 1, 'EMPLEADOS', '1', '117'); INSERT INTO `integrantes` VALUES (108, 9429622, '0138', 'EUSTACIO DAVID', 'MARCANO MARCANO', '1969-08-31', 'PORLAMAR', 'MASCULINO', 'SOLTERO', 'CONTADOR PUBLICO', 'UNIVERSITARIO', 'DIRECTOR DE ENTIDADES DESCENTR', '2004-02-18', '9', 'AV.31 DE JULIO LA FUENTE ', 'DIRECCION DE ENTIDADES DESCENTRALIZADAS', '', '', '1', 1, 'DIRECTORES', '1', '118'); INSERT INTO `integrantes` VALUES (109, 12223561, '0138', 'MAIRYM JOSEFINA', 'BRUZUAL LAREZ', '1973-12-16', 'PUNTA DE PIEDRAS', 'MASCULINO', 'SOLTERO', 'T.S.U.TURISMO', 'TECNICO SUPERIOR', '', '2004-08-01', '3', 'URBANIZACIÓN CAMINO REAL ', '', '', '', '1', 1, 'EMPLEADOS', '1', '119'); INSERT INTO `integrantes` VALUES (110, 15423652, '0139', 'EUMARY CAROLINA', 'LOPEZ CARABALLO', '1982-08-06', 'ANTOLIN DEL CAMPO', 'MASCULINO', 'SOLTERO', 'CONTADOR PUBLICO', 'UNIVERSITARIO', '', '2005-01-17', '0', 'CALLE GOMEZ EL RINCON DE LA FUENTE, CASA Nº 1', '', '', '', '1', 1, 'EMPLEADOS', '1', '120'); INSERT INTO `integrantes` VALUES (111, 10519925, '0140', 'FRANCISCO JOSE', 'FERNANDEZ RODRIGUEZ', '1968-02-15', 'CARACAS', 'MASCULINO', 'SOLTERO', 'CONTADOR PUBLICO', 'UNIVERSITARIO', '', '2005-01-17', '0', 'LA SIERRA QTA.ODELVA', '', '', '', '1', 1, 'EMPLEADOS', '1', '121'); INSERT INTO `integrantes` VALUES (113, 13190579, '0141', 'ROSELYS DEL VALLE', 'SALAZAR ZABALA', '1977-10-30', 'PORLAMAR', 'MASCULINO', 'SOLTERO', 'INGENIERO CIVIL', 'UNIVERSITARIO', '', '2005-02-16', '0', 'URB. LA GUARINA, LA ASUNCION', '', '', '', '1', 1, 'EMPLEADOS', '1', '123'); INSERT INTO `integrantes` VALUES (114, 13424082, '0142', 'CARLOS ALBERTO', 'AVILA PANFIL', '1978-09-19', 'PORLAMAR', 'MASCULINO', 'SOLTERO', 'LIC. INFORMATICA', 'UNIVERSITARIO', 'Programador II', '2005-02-16', '4', 'CALLE LA CEIBA, PARAGUACHI', 'Organizacion y Sistemas', '0295-2348602', '', '1', 1, 'EMPLEADOS', '1', '124'); INSERT INTO `integrantes` VALUES (115, 13848264, '', 'MARIA VICTORIA', 'MORENO MATA', '1978-10-30', 'PORLAMAR', 'Femenino', 'Soltero', 'CONTADOR PUBLICO', 'UNIVERSITARIO', '', '0000-00-00', '', 'CALLE BOLIVAR CASA Nº 57 PEDRO GONZALEZ', '', '', '', '0', 0, 'EMPLEADOS', '', '125'); INSERT INTO `integrantes` VALUES (116, 14685167, '0144', 'TEODORO ALEJANDRO', 'COELLO GARCIA', '1980-05-25', 'CUMANA', 'MASCULINO', 'SOLTERO', 'INGENIERO CIVIL', 'UNIVERSITARIO', '', '2005-06-01', '0', 'LAS GILES SECTOR GUAYACAN', '', '', '', '1', 1, 'EMPLEADOS', '1', '126'); INSERT INTO `integrantes` VALUES (118, 6727828, '0147', 'NEREIDA ESTRELLA', 'DUGARTE VIELMA', '1966-01-06', 'CARACAS', 'MASCULINO', 'SOLTERO', 'CONTADOR PUBLICO', 'UNIVERSITARIO', '', '2006-01-01', '4', 'AV. PRINCIPAL SECTOR APOSTADERO', '', '', '', '1', 1, 'EMPLEADOS', '1', NULL); INSERT INTO `integrantes` VALUES (117, 14543612, '0146', 'VICTOR JOSE DEL VALLE', 'AVILA DOMINGUEZ', '1980-03-25', 'PORLAMAR', 'MASCULINO', 'CASADO', 'INGENIERO INDUSTRIAL', 'UNIVERSITARIO', '', '2006-01-01', '0', 'AV. JOVITO VILLALBA LOS ROBLES', '', '', '', '1', 1, 'EMPLEADOS', '1', NULL); INSERT INTO `integrantes` VALUES (119, 4983744, '0145', 'MARGOT ISABEL', 'RIVERO PEÑA', '1957-03-11', 'CIUDAD BOLIVAR', 'MASCULINO', 'SOLTERO', 'BIBLIOTECOLOGA', 'UNIVERSITARIO', '', '2005-07-01', '23', 'CALLE MATASIETE, CONJUNTO RESIDENCIAL LA PORTADA, EDIF.C, APTO. 1, PB. LA ASUNCION', '', '', '', '1', 1, 'EMPLEADOS', '1', NULL); INSERT INTO `integrantes` VALUES (120, 1320383, '0004', 'GERARDO JOSE', 'MARIN HERNANDEZ', '1917-04-15', 'BOCA DE RIO', 'MASCULINO', 'SOLTERO', 'SUB- CONTRALOR', 'NO EXISTE DATO', '', '2007-10-01', '0', 'CALLE ARISMENDI CASA 780 SECTOR CARUJO, BOCA DE RIO', '', '', '', '1', 0, 'JUBILADOS', '1', NULL); INSERT INTO `integrantes` VALUES (124, 3489021, '0011', 'GENARO', 'LISTA MARIN', '0000-00-00', '', 'MASCULINO', 'SOLTERO', '', '', '', '0000-00-00', '', '', '', '', '', '1', 0, 'JUBILADOS', '1', NULL); INSERT INTO `integrantes` VALUES (125, 2834421, '0039', 'JESUS ENRIQUE', 'LAREZ FERMIN', '0000-00-00', '', 'MASCULINO', 'SOLTERO', '', '', '', '0000-00-00', '', '', '', '', '', '1', 0, 'JUBILADOS', '1', NULL); INSERT INTO `integrantes` VALUES (126, 3488298, '0088', 'CAMILO', 'GUERRA GIL', '0000-00-00', '', 'MASCULINO', 'CASADO', '', '', '', '0000-00-00', '', '', '', '', '', '1', 0, 'JUBILADOS', '1', NULL); INSERT INTO `integrantes` VALUES (127, 2825289, '0066', 'HUMBERTO', 'SUBERO', '0000-00-00', '', 'MASCULINO', 'CASADO', '', '', '', '0000-00-00', '', '', '', '', '', '1', 0, 'JUBILADOS', '1', NULL); INSERT INTO `integrantes` VALUES (128, 4656965, '0067', 'CARLOS JESUS', 'VELASQUEZ', '0000-00-00', '', 'MASCULINO', 'CASADO', '', '', '', '0000-00-00', '', '', '', '', '', '1', 0, 'PENSIONADOS', '1', NULL); INSERT INTO `integrantes` VALUES (129, 2828055, '0001', 'CANDIDO', 'RAMOS', '0000-00-00', '', 'MASCULINO', 'CASADO', '', '', '', '0000-00-00', '', '', '', '', '', '1', 0, 'JUBILADOS', '1', NULL); INSERT INTO `integrantes` VALUES (130, 478074, '0002', 'AUGUSTO ', 'MARIN', '0000-00-00', '', 'MASCULINO', 'SOLTERO', '', '', '', '0000-00-00', '', '', '', '', '', '1', 0, 'JUBILADOS', '1', NULL); INSERT INTO `integrantes` VALUES (131, 1320451, '0005', 'ROBERTO', 'SALAZAR', '0000-00-00', '', 'MASCULINO', 'SOLTERO', '', '', '', '0000-00-00', '', '', '', '', '', '1', 0, 'JUBILADOS', '1', NULL); INSERT INTO `integrantes` VALUES (132, 2829046, '0007', 'JOSE', 'MARCANO', '0000-00-00', '', 'MASCULINO', 'CASADO', '', '', '', '0000-00-00', '', '', '', '', '', '1', 0, 'JUBILADOS', '1', NULL); INSERT INTO `integrantes` VALUES (133, 1153450, '0009', 'JESUS JOSE', 'VICENT', '0000-00-00', '', 'MASCULINO', 'CASADO', '', '', '', '0000-00-00', '', '', '', '', '', '1', 0, 'JUBILADOS', '1', NULL); INSERT INTO `integrantes` VALUES (134, 3035967, '0010', 'JOSE FRANCISCO ', 'FERRER', '0000-00-00', '', 'MASCULINO', 'CASADO', '', '', '', '0000-00-00', '', '', '', '', '', '1', 0, 'JUBILADOS', '1', NULL); INSERT INTO `integrantes` VALUES (135, 2831342, '0012', 'MIGUEL', 'RAMOS', '0000-00-00', '', 'MASCULINO', 'SOLTERO', '', '', '', '0000-00-00', '', '', '', '', '', '1', 0, 'JUBILADOS', '1', NULL); INSERT INTO `integrantes` VALUES (136, 2831702, '0013', 'MANUEL ANTONIO', 'HERNANDEZ', '0000-00-00', '', 'MASCULINO', 'CASADO', '', '', '', '0000-00-00', '', '', '', '', '', '1', 0, 'JUBILADOS', '1', NULL); INSERT INTO `integrantes` VALUES (137, 2831573, '0014', 'EDGAR JOSE', 'WETTEL', '0000-00-00', '', 'MASCULINO', 'CASADO', '', '', '', '0000-00-00', '', '', '', '', '', '1', 0, 'JUBILADOS', '1', NULL); INSERT INTO `integrantes` VALUES (138, 2829727, '0015', 'DANIEL', 'ROMERO BRITO', '0000-00-00', '', 'MASCULINO', 'CASADO', '', '', '', '0000-00-00', '', '', '', '', '', '1', 0, 'JUBILADOS', '1', NULL); INSERT INTO `integrantes` VALUES (139, 3488815, '0016', 'CRUZ BAUTISTA', 'RODRIGUEZ', '0000-00-00', '', 'MASCULINO', 'CASADO', '', '', '', '0000-00-00', '', '', '', '', '', '1', 0, 'JUBILADOS', '1', NULL); INSERT INTO `integrantes` VALUES (140, 4045550, '0017', 'JESUS', 'MATA', '0000-00-00', '', 'MASCULINO', 'SOLTERO', '', '', '', '0000-00-00', '', '', '', '', '', '1', 0, 'JUBILADOS', '1', NULL); INSERT INTO `integrantes` VALUES (141, 2829520, '0018', 'HECTOR LUIS', 'MILLAN', '0000-00-00', '', 'MASCULINO', 'SOLTERO', '', '', '', '0000-00-00', '', '', '', '', '', '1', 0, 'JUBILADOS', '1', NULL); INSERT INTO `integrantes` VALUES (142, 4047382, '0023', 'ARACELYS', 'DE VALERIO', '0000-00-00', '', 'FEMENINO', 'CASADO', '', '', '', '0000-00-00', '', '', '', '', '', '1', 0, 'JUBILADOS', '1', NULL); INSERT INTO `integrantes` VALUES (143, 3823341, '0002', 'MIREYA', 'DE FANEITY', '0000-00-00', '', 'FEMENINO', 'SOLTERO', '', '', '', '0000-00-00', '', '', '', '', '', '1', 0, 'PENSIONADOS', '1', NULL); INSERT INTO `integrantes` VALUES (144, 2162209, '0003', 'NIMIA', 'DE BELLORIN', '0000-00-00', '', 'FEMENINO', 'SOLTERO', '', '', '', '0000-00-00', '', '', '', '', '', '1', 0, 'PENSIONADOS', '1', NULL); INSERT INTO `integrantes` VALUES (145, 8384048, '0004', 'ASUNCION', 'DE GOMEZ', '0000-00-00', '', 'FEMENINO', 'SOLTERO', '', '', '', '0000-00-00', '', '', '', '', '', '1', 0, 'PENSIONADOS', '1', NULL); INSERT INTO `integrantes` VALUES (146, 2832775, '0005', 'MIGDALIA', 'MARCANO', '0000-00-00', '', 'FEMENINO', 'SOLTERO', '', '', '', '0000-00-00', '', '', '', '', '', '1', 0, 'PENSIONADOS', '1', NULL); INSERT INTO `integrantes` VALUES (147, 2827764, '0007', 'HILARIA', 'DE GONZALEZ', '0000-00-00', '', 'MASCULINO', 'CASADO', '', '', '', '0000-00-00', '', '', '', '', '', '1', 0, 'PENSIONADOS', '1', NULL); INSERT INTO `integrantes` VALUES (148, 2825543, '0027', 'JUVENAL', 'VALERIO', '0000-00-00', '', 'MASCULINO', 'CASADO', '', '', '', '0000-00-00', '', '', '', '', '', '1', 0, 'JUBILADOS', '1', NULL); INSERT INTO `integrantes` VALUES (149, 2834521, '0008', 'LUISA', 'PEREZ DE ROJAS', '0000-00-00', '', 'FEMENINO', 'CASADO', '', '', '', '0000-00-00', '', '', '', '', '', '1', 0, 'PENSIONADOS', '1', NULL); INSERT INTO `integrantes` VALUES (150, 3203431, '0009', 'NELLYS', 'CORTEZ DE VALERY', '0000-00-00', '', 'FEMENINO', 'VIUDO', '', '', '', '0000-00-00', '', '', '', '', '', '1', 0, 'PENSIONADOS', '1', NULL); INSERT INTO `integrantes` VALUES (151, 1631741, '0010', 'PETRA', 'DE GONZALEZ', '0000-00-00', '', 'MASCULINO', 'VIUDO', '', '', '', '0000-00-00', '', '', '', '', '', '1', 0, 'PENSIONADOS', '1', NULL); INSERT INTO `integrantes` VALUES (152, 879418, '0003', 'ISMAEL', 'PATIÑO', '0000-00-00', '', 'MASCULINO', 'SOLTERO', '', '', '', '0000-00-00', '', '', '', '', '', '1', 0, 'JUBILADOS', '1', NULL); INSERT INTO `integrantes` VALUES (153, 3329244, '0006', 'ORLANDO', 'PEÑA GAMBOA', '0000-00-00', '', 'MASCULINO', 'CASADO', '', '', '', '0000-00-00', '', '', '', '', '', '1', 0, 'JUBILADOS', '1', NULL); INSERT INTO `integrantes` VALUES (154, 1324354, '0012', 'PETRA', 'LABORI DE ACOSTA', '0000-00-00', '', 'FEMENINO', 'VIUDO', '', '', '', '0000-00-00', '', '', '', '', '', '1', 0, 'PENSIONADOS', '1', NULL); INSERT INTO `integrantes` VALUES (155, 4647730, '0013', 'EMERITA', 'MARCANO DE MARCANO', '0000-00-00', '', 'FEMENINO', 'VIUDO', '', '', '', '0000-00-00', '', '', '', '', '', '1', 0, 'PENSIONADOS', '1', NULL); INSERT INTO `integrantes` VALUES (156, 2168184, '0014', 'ROSALIDA', 'MILLAN DE VILLARROAL', '0000-00-00', '', 'FEMENINO', 'VIUDO', '', '', '', '0000-00-00', '', '', '', '', '', '1', 0, 'PENSIONADOS', '1', NULL); INSERT INTO `integrantes` VALUES (157, 645319, '0008', 'NANCY COROMOTO', 'MARCANO', '0000-00-00', '', 'FEMENINO', 'CASADO', '', '', '', '0000-00-00', '', '', '', '', '', '1', 0, 'JUBILADOS', '1', NULL); INSERT INTO `integrantes` VALUES (158, 2834661, '0025', 'NICASIO', 'RODRIGUEZ', '0000-00-00', '', 'MASCULINO', 'SOLTERO', '', '', '', '0000-00-00', '', '', '', '', '', '1', 0, 'JUBILADOS', '1', NULL); INSERT INTO `integrantes` VALUES (159, 4045579, '0077', 'FRANCISCO RAMON', 'AGUILERA', '0000-00-00', '', 'MASCULINO', 'SOLTERO', '', '', '', '0000-00-00', '', '', '', '', '', '1', 0, 'JUBILADOS', '1', NULL); INSERT INTO `integrantes` VALUES (160, 3826253, '0148', 'FÉLIX JUSTINIANO', 'ORDÁZ MARÍN', '1951-03-30', 'PORLAMAR', 'MASCULINO', 'CASADO', '', 'BACHILLER', '', '2007-06-04', '0', 'PEDRO GONZALEZ, SECTOR LAS GAMBOAS, CASA SAN PEDRO', '', '0295-2570410', '', '1', 1, 'EMPLEADOS', '1', NULL); INSERT INTO `integrantes` VALUES (161, 12673593, '0151', 'NAYJAMA DEL VALLE', 'GUILARTE DE PINEDA', '1978-02-16', 'PORLAMAR', 'FEMENINO', 'CASADO', 'ABOGADO', 'UNIVERSITARIO', '', '2008-02-16', '0', 'URB. VILLA ROSA, C/3, CASA # 6', '', '0295-2962979', '0414-7916001', '1', 1, 'EMPLEADOS', '1', NULL); INSERT INTO `integrantes` VALUES (162, 13541970, '0152', 'ANAMARIA DEL VALLE', 'MORGADO ROJAS', '1978-06-10', 'PORLAMAR', 'FEMENINO', 'SOLTERO', 'ABOGADO', 'UNIVERSITARIO', '', '2008-02-16', '0', 'URB. LAS VILLARROELES, CALLE PRINCIPAL, CASA NRO 157', '', '0295-2590245', '0424-8140481', '1', 1, 'EMPLEADOS', '1', NULL); INSERT INTO `integrantes` VALUES (163, 15422391, '0150', 'INGRID CAROLINA', 'MEDINA BRICEÑO', '1983-03-13', 'PORLAMAR', 'FEMENINO', 'SOLTERO', 'CONTADOR', 'UNIVERSITARIO', '', '2008-02-16', '0', 'EL SALADO, AMTOLIN DEL CAMPO', '', '0295-4162796', '0416-3991118', '1', 1, 'EMPLEADOS', '1', NULL); INSERT INTO `integrantes` VALUES (164, 15896190, '0153', 'ARQUIMENES RAFAEL', 'CARABALLO GIL', '1981-08-04', 'PORLAMAR', 'MASCULINO', 'SOLTERO', 'CONTADOR PUBLICO', 'UNIVERSITARIO', '', '2008-03-04', '0', 'SECTOR EL SALADO, MUNICIPIO ANTONLIN DEL CAMPO', '', '0424-8498210', '0426-9866262', '1', 1, 'EMPLEADOS', '1', NULL); INSERT INTO `integrantes` VALUES (165, 12506760, '0149', 'GERALDO JOSE', 'MARCANO LOPEZ', '1975-07-04', 'CUMANA', 'MASCULINO', 'SOLTERO', 'LICENCIADO EN INFORMATICA', 'UNIVERSITARIO', '', '2007-10-01', '0', 'CALLE SAN PATRICIO, SECTOR EL TUEY, SAN JUAN BAUTISTA, MUNICIPIO DIAS', '', '0295-4168614', '0416-1979424', '1', 1, 'EMPLEADOS', '1', NULL); -- -------------------------------------------------------- -- -- Estructura de tabla para la tabla `integrantes_banco` -- CREATE TABLE `integrantes_banco` ( `numero_cuenta` varchar(30) NOT NULL default '', `tipo` varchar(30) default NULL, `banco` varchar(50) NOT NULL, `cedula` int(10) unsigned NOT NULL default '0', `id` int(11) NOT NULL auto_increment, `uso` varchar(30) default NULL COMMENT 'el tipo de uso de la cuenta (nomina, fideicomiso)', UNIQUE KEY `id` (`id`), UNIQUE KEY `numero_cuenta` (`numero_cuenta`) ) ENGINE=MyISAM DEFAULT CHARSET=latin1 AUTO_INCREMENT=139 ; -- -- Volcar la base de datos para la tabla `integrantes_banco` -- INSERT INTO `integrantes_banco` VALUES ('5300040731', 'CORRIENTE', 'BANCARIBE', 13424082, 2, 'NOMINA'); INSERT INTO `integrantes_banco` VALUES ('5300034065', 'CORRIENTE', 'BANCARIBE', 6966895, 3, 'NOMINA'); INSERT INTO `integrantes_banco` VALUES ('5300033859', 'CORRIENTE', 'BANCARIBE', 4650716, 4, 'NOMINA'); INSERT INTO `integrantes_banco` VALUES ('5300035886', 'CORRIENTE', 'BANCARIBE', 6177583, 5, 'NOMINA'); INSERT INTO `integrantes_banco` VALUES ('5300031392', 'CORRIENTE', 'BANCARIBE', 6122659, 6, 'NOMINA'); INSERT INTO `integrantes_banco` VALUES ('5300036742', 'CORRIENTE', 'BANCARIBE', 13023459, 7, 'NOMINA'); INSERT INTO `integrantes_banco` VALUES ('5300033948', 'CORRIENTE', 'BANCARIBE', 5482594, 8, 'NOMINA'); INSERT INTO `integrantes_banco` VALUES ('5301197944', 'AHORROS', 'BANCARIBE', 5605331, 9, 'NOMINA'); INSERT INTO `integrantes_banco` VALUES ('5300036858', 'CORRIENTE', 'BANCARIBE', 13729622, 10, 'NOMINA'); INSERT INTO `integrantes_banco` VALUES ('5300039385', 'CORRIENTE', 'BANCARIBE', 9429622, 11, 'NOMINA'); INSERT INTO `integrantes_banco` VALUES ('5310057217', 'CORRIENTE', 'BANCARIBE', 3946767, 12, 'NOMINA'); INSERT INTO `integrantes_banco` VALUES ('5301184109', 'AHORROS', 'BANCARIBE', 5477294, 13, 'NOMINA'); INSERT INTO `integrantes_banco` VALUES ('5310051499', 'CORRIENTE', 'BANCARIBE', 12661621, 14, 'NOMINA'); INSERT INTO `integrantes_banco` VALUES ('5301177048', 'AHORROS', 'BANCARIBE', 2166981, 15, 'NOMINA'); INSERT INTO `integrantes_banco` VALUES ('5301129949', 'AHORROS', 'BANCARIBE', 8385761, 16, 'NOMINA'); INSERT INTO `integrantes_banco` VALUES ('5300030469', 'CORRIENTE', 'BANCARIBE', 8470624, 17, 'NOMINA'); INSERT INTO `integrantes_banco` VALUES ('5301175169', 'AHORROS', 'BANCARIBE', 3045299, 18, 'NOMINA'); INSERT INTO `integrantes_banco` VALUES ('5301190966', 'AHORROS', 'BANCARIBE', 4652451, 19, 'NOMINA'); INSERT INTO `integrantes_banco` VALUES ('5309000678', 'CORRIENTE', 'BANCARIBE', 4651478, 20, 'NOMINA'); INSERT INTO `integrantes_banco` VALUES ('5301175363', 'AHORROS', 'BANCARIBE', 5477905, 21, 'NOMINA'); INSERT INTO `integrantes_banco` VALUES ('5301191024', 'AHORROS', 'BANCARIBE', 4647928, 22, 'NOMINA'); INSERT INTO `integrantes_banco` VALUES ('5301175061', 'CORRIENTE', 'BANCARIBE', 4653768, 23, 'NOMINA'); INSERT INTO `integrantes_banco` VALUES ('5321030949', 'AHORROS', 'BANCARIBE', 5473836, 24, 'NOMINA'); INSERT INTO `integrantes_banco` VALUES ('5321067060', 'AHORROS', 'BANCARIBE', 12506912, 25, 'NOMINA'); INSERT INTO `integrantes_banco` VALUES ('5301175096', 'AHORROS', 'BANCARIBE', 12224570, 26, 'NOMINA'); INSERT INTO `integrantes_banco` VALUES ('5301181223', 'AHORROS', 'BANCARIBE', 12669638, 27, 'NOMINA'); INSERT INTO `integrantes_banco` VALUES ('5301189593', 'AHORROS', 'BANCARIBE', 8398597, 28, 'NOMINA'); INSERT INTO `integrantes_banco` VALUES ('5300029797', 'AHORROS', 'BANCARIBE', 9308955, 29, 'NOMINA'); INSERT INTO `integrantes_banco` VALUES ('5311109911', 'AHORROS', 'BANCARIBE', 11852605, 30, 'NOMINA'); INSERT INTO `integrantes_banco` VALUES ('5301175835', 'AHORROS', 'BANCARIBE', 5721970, 31, 'NOMINA'); INSERT INTO `integrantes_banco` VALUES ('5301140071', 'AHORROS', 'BANCARIBE', 11144676, 32, 'NOMINA'); INSERT INTO `integrantes_banco` VALUES ('5301069687', 'AHORROS', 'BANCARIBE', 5482703, 33, 'NOMINA'); INSERT INTO `integrantes_banco` VALUES ('5301181215', 'AHORROS', 'BANCARIBE', 3487152, 34, 'NOMINA'); INSERT INTO `integrantes_banco` VALUES ('5301061821', 'AHORROS', 'BANCARIBE', 3670594, 35, 'NOMINA'); INSERT INTO `integrantes_banco` VALUES ('5301140608', 'AHORROS', 'BANCARIBE', 8442192, 36, 'NOMINA'); INSERT INTO `integrantes_banco` VALUES ('5321000721', 'AHORROS', 'BANCARIBE', 4649004, 37, 'NOMINA'); INSERT INTO `integrantes_banco` VALUES ('5301176939', 'AHORROS', 'BANCARIBE', 8378076, 38, 'NOMINA'); INSERT INTO `integrantes_banco` VALUES ('5301176882', 'AHORROS', 'BANCARIBE', 3486366, 39, 'NOMINA'); INSERT INTO `integrantes_banco` VALUES ('5301129566', 'AHORROS', 'BANCARIBE', 4051711, 40, 'NOMINA'); INSERT INTO `integrantes_banco` VALUES ('5301175223', 'AHORROS', 'BANCARIBE', 11855143, 41, 'NOMINA'); INSERT INTO `integrantes_banco` VALUES ('5301176068', 'AHORROS', 'BANCARIBE', 1633192, 42, 'NOMINA'); INSERT INTO `integrantes_banco` VALUES ('5301175150', 'AHORROS', 'BANCARIBE', 4647270, 43, 'NOMINA'); INSERT INTO `integrantes_banco` VALUES ('5301175266', 'AHORROS', 'BANCARIBE', 4189050, 44, 'NOMINA'); INSERT INTO `integrantes_banco` VALUES ('5300030655', 'CORRIENTE', 'BANCARIBE', 4654397, 45, 'NOMINA'); INSERT INTO `integrantes_banco` VALUES ('5300030396', 'CORRIENTE', 'BANCARIBE', 8926627, 46, 'NOMINA'); INSERT INTO `integrantes_banco` VALUES ('5301181355', 'AHORROS', 'BANCARIBE', 13669573, 47, 'NOMINA'); INSERT INTO `integrantes_banco` VALUES ('5301187825', 'AHORROS', 'BANCARIBE', 12225307, 48, 'NOMINA'); INSERT INTO `integrantes_banco` VALUES ('5301175177', 'AHORROS', 'BANCARIBE', 8392072, 49, 'NOMINA'); INSERT INTO `integrantes_banco` VALUES ('5301177552', 'AHORROS', 'BANCARIBE', 4018459, 50, 'NOMINA'); INSERT INTO `integrantes_banco` VALUES ('5301167891', 'AHORROS', 'BANCARIBE', 11829028, 51, 'NOMINA'); INSERT INTO `integrantes_banco` VALUES ('5301126190', 'AHORROS', 'BANCARIBE', 1320383, 52, 'NOMINA'); INSERT INTO `integrantes_banco` VALUES ('5301164345', 'AHORROS', 'BANCARIBE', 4051700, 53, 'NOMINA'); INSERT INTO `integrantes_banco` VALUES ('5301097222', 'AHORROS', 'BANCARIBE', 2155158, 54, 'NOMINA'); INSERT INTO `integrantes_banco` VALUES ('5301247330', 'AHORROS', 'BANCARIBE', 2826195, 55, 'NOMINA'); INSERT INTO `integrantes_banco` VALUES ('5321020986', 'AHORROS', 'BANCARIBE', 1157385, 56, 'NOMINA'); INSERT INTO `integrantes_banco` VALUES ('5301197995', 'AHORROS', 'BANCARIBE', 12222156, 57, 'NOMINA'); INSERT INTO `integrantes_banco` VALUES ('5301068818', 'AHORROS', 'BANCARIBE', 5476102, 58, 'NOMINA'); INSERT INTO `integrantes_banco` VALUES ('5301194643', 'AHORROS', 'BANCARIBE', 8388339, 59, 'NOMINA'); INSERT INTO `integrantes_banco` VALUES ('5300039067', 'CORRIENTE', 'BANCARIBE', 9303416, 60, 'NOMINA'); INSERT INTO `integrantes_banco` VALUES ('5301198142', 'AHORROS', 'BANCARIBE', 5482954, 61, 'NOMINA'); INSERT INTO `integrantes_banco` VALUES ('5301198169', 'AHORROS', 'BANCARIBE', 11142532, 62, 'NOMINA'); INSERT INTO `integrantes_banco` VALUES ('5301198290', 'AHORROS', 'BANCARIBE', 4512285, 63, 'NOMINA'); INSERT INTO `integrantes_banco` VALUES ('5300034499', 'CORRIENTE', 'BANCARIBE', 11536888, 64, 'NOMINA'); INSERT INTO `integrantes_banco` VALUES ('5301200392', 'AHORROS', 'BANCARIBE', 8392561, 65, 'NOMINA'); INSERT INTO `integrantes_banco` VALUES ('5301162350', 'AHORROS', 'BANCARIBE', 11142484, 66, 'NOMINA'); INSERT INTO `integrantes_banco` VALUES ('5301049988', 'AHORROS', 'BANCARIBE', 3488626, 67, 'NOMINA'); INSERT INTO `integrantes_banco` VALUES ('5301175355', 'AHORROS', 'BANCARIBE', 2832725, 68, 'NOMINA'); INSERT INTO `integrantes_banco` VALUES ('5301197200', 'AHORROS', 'BANCARIBE', 2168112, 69, 'NOMINA'); INSERT INTO `integrantes_banco` VALUES ('5301197928', 'AHORROS', 'BANCARIBE', 8396643, 70, 'NOMINA'); INSERT INTO `integrantes_banco` VALUES ('5301175290', 'AHORROS', 'BANCARIBE', 4648525, 71, 'NOMINA'); INSERT INTO `integrantes_banco` VALUES ('5300038982', 'CORRIENTE', 'BANCARIBE', 14055011, 72, 'NOMINA'); INSERT INTO `integrantes_banco` VALUES ('5301203553', 'AHORROS', 'BANCARIBE', 4271638, 73, 'NOMINA'); INSERT INTO `integrantes_banco` VALUES ('5301206170', 'AHORROS', 'BANCARIBE', 5643691, 74, 'NOMINA'); INSERT INTO `integrantes_banco` VALUES ('5301206692', 'AHORROS', 'BANCARIBE', 5589301, 75, 'NOMINA'); INSERT INTO `integrantes_banco` VALUES ('5301242338', 'AHORROS', 'BANCARIBE', 6428161, 76, 'NOMINA'); INSERT INTO `integrantes_banco` VALUES ('5301183773', 'AHORROS', 'BANCARIBE', 4654821, 77, 'NOMINA'); INSERT INTO `integrantes_banco` VALUES ('5301211149', 'AHORROS', 'BANCARIBE', 13541356, 78, 'NOMINA'); INSERT INTO `integrantes_banco` VALUES ('5300039644', 'AHORROS', 'BANCARIBE', 11506606, 79, 'NOMINA'); INSERT INTO `integrantes_banco` VALUES ('5301214830', 'AHORROS', 'BANCARIBE', 13668974, 80, 'NOMINA'); INSERT INTO `integrantes_banco` VALUES ('5301187833', 'AHORROS', 'BANCARIBE', 1882215, 81, 'NOMINA'); INSERT INTO `integrantes_banco` VALUES ('5300030353', 'AHORROS', 'BANCARIBE', 8385744, 82, 'NOMINA'); INSERT INTO `integrantes_banco` VALUES ('5301200562', 'AHORROS', 'BANCARIBE', 5482007, 83, 'NOMINA'); INSERT INTO `integrantes_banco` VALUES ('5300030337', 'CORRIENTE', 'BANCARIBE', 8566093, 84, 'NOMINA'); INSERT INTO `integrantes_banco` VALUES ('5301215578', 'AHORROS', 'BANCARIBE', 3822286, 85, 'NOMINA'); INSERT INTO `integrantes_banco` VALUES ('5300038770', 'CORRIENTE', 'BANCARIBE', 9425982, 86, 'NOMINA'); INSERT INTO `integrantes_banco` VALUES ('5301216027', 'AHORROS', 'BANCARIBE', 8381570, 87, 'NOMINA'); INSERT INTO `integrantes_banco` VALUES ('5301181827', 'AHORROS', 'BANCARIBE', 3488376, 88, 'NOMINA'); INSERT INTO `integrantes_banco` VALUES ('5301227290', 'AHORROS', 'BANCARIBE', 5972426, 89, 'NOMINA'); INSERT INTO `integrantes_banco` VALUES ('5301227312', 'AHORROS', 'BANCARIBE', 12920483, 90, 'NOMINA'); INSERT INTO `integrantes_banco` VALUES ('5301198606', 'AHORROS', 'BANCARIBE', 4422887, 91, 'NOMINA'); INSERT INTO `integrantes_banco` VALUES ('5300039687', 'CORRIENTE', 'BANCARIBE', 12223561, 92, 'NOMINA'); INSERT INTO `integrantes_banco` VALUES ('5300040650', 'CORRIENTE', 'BANCARIBE', 10519925, 93, 'NOMINA'); INSERT INTO `integrantes_banco` VALUES ('5301234785', 'AHORROS', 'BANCARIBE', 15423652, 94, 'NOMINA'); INSERT INTO `integrantes_banco` VALUES ('5301235315', 'AHORROS', 'BANCARIBE', 13190579, 95, 'NOMINA'); INSERT INTO `integrantes_banco` VALUES ('5301237857', 'AHORROS', 'BANCARIBE', 14685167, 96, 'NOMINA'); INSERT INTO `integrantes_banco` VALUES ('5301240424', 'AHORROS', 'BANCARIBE', 4983744, 97, 'NOMINA'); INSERT INTO `integrantes_banco` VALUES ('5301240432', 'AHORROS', 'BANCARIBE', 14543612, 98, 'NOMINA'); INSERT INTO `integrantes_banco` VALUES ('5301240386', 'AHORROS', 'BANCARIBE', 6727828, 99, 'NOMINA'); INSERT INTO `integrantes_banco` VALUES ('5301182548', 'AHORROS', 'BANCARIBE', 3489021, 100, 'NOMINA'); INSERT INTO `integrantes_banco` VALUES ('5309000546', 'CORRIENTE', 'BANCARIBE', 2834421, 101, 'NOMINA'); INSERT INTO `integrantes_banco` VALUES ('5301175339', 'AHORROS', 'BANCARIBE', 3488298, 102, 'NOMINA'); INSERT INTO `integrantes_banco` VALUES ('5301175622', 'AHORROS', 'BANCARIBE', 2825289, 103, 'NOMINA'); INSERT INTO `integrantes_banco` VALUES ('5301175193', 'AHORROS', 'BANCARIBE', 4656965, 104, 'NOMINA'); INSERT INTO `integrantes_banco` VALUES ('5311125852', 'AHORROS', 'BANCARIBE', 2828055, 105, 'NOMINA'); INSERT INTO `integrantes_banco` VALUES ('5301184850', 'AHORROS', 'BANCARIBE', 478074, 106, 'NOMINA'); INSERT INTO `integrantes_banco` VALUES ('5301185288', 'AHORROS', 'BANCARIBE', 1320451, 107, 'NOMINA'); INSERT INTO `integrantes_banco` VALUES ('5301185865', 'AHORROS', 'BANCARIBE', 2829046, 108, 'NOMINA'); INSERT INTO `integrantes_banco` VALUES ('5301185008', 'AHORROS', 'BANCARIBE', 1153450, 109, 'NOMINA'); INSERT INTO `integrantes_banco` VALUES ('5301167662', 'AHORROS', 'BANCARIBE', 3035967, 110, 'NOMINA'); INSERT INTO `integrantes_banco` VALUES ('5301184818', 'AHORROS', 'BANCARIBE', 2831342, 111, 'NOMINA'); INSERT INTO `integrantes_banco` VALUES ('5301177064', 'AHORROS', 'BANCARIBE', 2831702, 112, 'NOMINA'); INSERT INTO `integrantes_banco` VALUES ('5301185660', 'AHORROS', 'BANCARIBE', 2831573, 113, 'NOMINA'); INSERT INTO `integrantes_banco` VALUES ('5301175304', 'AHORROS', 'BANCARIBE', 2829727, 114, 'NOMINA'); INSERT INTO `integrantes_banco` VALUES ('5301191776', 'AHORROS', 'BANCARIBE', 3488815, 115, 'NOMINA'); INSERT INTO `integrantes_banco` VALUES ('5311113560', 'AHORROS', 'BANCARIBE', 4045550, 116, 'NOMINA'); INSERT INTO `integrantes_banco` VALUES ('5301175452', 'AHORROS', 'BANCARIBE', 2829520, 117, 'NOMINA'); INSERT INTO `integrantes_banco` VALUES ('5301192020', 'AHORROS', 'BANCARIBE', 4047382, 118, 'NOMINA'); INSERT INTO `integrantes_banco` VALUES ('5301185563', 'AHORROS', 'BANCARIBE', 3823341, 119, 'NOMINA'); INSERT INTO `integrantes_banco` VALUES ('5301186055', 'AHORROS', 'BANCARIBE', 2162209, 120, 'NOMINA'); INSERT INTO `integrantes_banco` VALUES ('5301185156', 'AHORROS', 'BANCARIBE', 8384048, 121, 'NOMINA'); INSERT INTO `integrantes_banco` VALUES ('5301200490', 'AHORROS', 'BANCARIBE', 2832775, 122, 'NOMINA'); INSERT INTO `integrantes_banco` VALUES ('5311119224', 'AHORROS', 'BANCARIBE', 2827764, 123, 'NOMINA'); INSERT INTO `integrantes_banco` VALUES ('5301197081', 'AHORROS', 'BANCARIBE', 2825543, 124, 'NOMINA'); INSERT INTO `integrantes_banco` VALUES ('5301196182', 'AHORROS', 'BANCARIBE', 2834521, 125, 'NOMINA'); INSERT INTO `integrantes_banco` VALUES ('5301212730', 'AHORROS', 'BANCARIBE', 3203431, 126, 'NOMINA'); INSERT INTO `integrantes_banco` VALUES ('5251092712', 'AHORROS', 'BANCARIBE', 1631741, 127, 'NOMINA'); INSERT INTO `integrantes_banco` VALUES ('5300043307', 'CORRIENTE', 'BANCARIBE', 879418, 128, 'NOMINA'); INSERT INTO `integrantes_banco` VALUES ('5301190672', 'AHORROS', 'BANCARIBE', 3329244, 129, 'NOMINA'); INSERT INTO `integrantes_banco` VALUES ('5301243423', 'AHORROS', 'BANCARIBE', 1324354, 130, 'NOMINA'); INSERT INTO `integrantes_banco` VALUES ('5301244268', 'AHORROS', 'BANCARIBE', 4647730, 131, 'NOMINA'); INSERT INTO `integrantes_banco` VALUES ('5301246376', 'AHORROS', 'BANCARIBE', 2168184, 132, 'NOMINA'); INSERT INTO `integrantes_banco` VALUES ('5301248263', 'AHORROS', 'BANCARIBE', 12673593, 133, 'NOMINA'); INSERT INTO `integrantes_banco` VALUES ('5300046772', 'CORRIENTE', 'BANCARIBE', 13541970, 134, 'NOMINA'); INSERT INTO `integrantes_banco` VALUES ('5301248220', 'AHORROS', 'BANCARIBE', 15422391, 135, 'NOMINA'); INSERT INTO `integrantes_banco` VALUES ('5301248409', 'AHORROS', 'BANCARIBE', 15896190, 136, 'NOMINA'); INSERT INTO `integrantes_banco` VALUES ('5301248042', 'AHORROS', 'BANCARIBE', 3826253, 137, 'NOMINA'); INSERT INTO `integrantes_banco` VALUES ('5301248026', 'AHORROS', 'BANCARIBE', 12506760, 138, 'NOMINA'); -- -------------------------------------------------------- -- -- Estructura de tabla para la tabla `integrantes_cargo` -- CREATE TABLE `integrantes_cargo` ( `status` varchar(10) NOT NULL, `denominacion` varchar(100) NOT NULL default '', `nivel` char(15) NOT NULL, `condicion` varchar(20) NOT NULL default '', `decreto_contrato` varchar(10) NOT NULL default '', `fecha_ini` date NOT NULL default '0000-00-00', `fecha_fin` date NOT NULL default '0000-00-00', `lugar_trabajo` varchar(100) NOT NULL default '', `cod_direccion` varchar(10) NOT NULL, `cod_rac` varchar(10) NOT NULL default '', `fecha_elab` date NOT NULL default '0000-00-00', `sueldo_basico` float NOT NULL default '0', `asignaciones` float NOT NULL default '0', `causa_egreso` varchar(200) NOT NULL default '', `fecha_egreso` date default NULL, `fecha_ingreso` date NOT NULL default '0000-00-00', `observaciones` text NOT NULL, `id` int(11) NOT NULL auto_increment, `cedula` int(10) unsigned NOT NULL default '0', `paso` int(11) NOT NULL default '0', PRIMARY KEY (`id`) ) ENGINE=MyISAM DEFAULT CHARSET=latin1 AUTO_INCREMENT=128 ; -- -- Volcar la base de datos para la tabla `integrantes_cargo` -- INSERT INTO `integrantes_cargo` VALUES ('', 'AUXILIAR DE OFICINA', '30', 'FIJO', '', '0000-00-00', '0000-00-00', '', '1003', '', '0000-00-00', 0, 0, '', '0000-00-00', '0000-00-00', '', 14, 4051711, 0); INSERT INTO `integrantes_cargo` VALUES ('', 'AUXILIAR DE OFICINA', '30', 'FIJO', '', '0000-00-00', '0000-00-00', '', '1007', '', '0000-00-00', 0, 0, '', '0000-00-00', '0000-00-00', '', 15, 4512285, 0); INSERT INTO `integrantes_cargo` VALUES ('', 'AUXILIAR DE OFICINA', '30', 'FIJO', '', '0000-00-00', '0000-00-00', '', '1006', '', '0000-00-00', 0, 0, '', '0000-00-00', '0000-00-00', '', 16, 8385761, 0); INSERT INTO `integrantes_cargo` VALUES ('', 'CONDUCTOR', '30', 'FIJO', '', '0000-00-00', '0000-00-00', '', '1003', '', '0000-00-00', 0, 0, '', '0000-00-00', '0000-00-00', '', 17, 3670594, 0); INSERT INTO `integrantes_cargo` VALUES ('', 'ABOGADO I', '30', 'FIJO', '', '0000-00-00', '0000-00-00', '', '1006', '', '0000-00-00', 0, 0, '', '0000-00-00', '0000-00-00', '', 18, 5477294, 0); INSERT INTO `integrantes_cargo` VALUES ('', 'ABOGADO I', '30', 'FIJO', '', '0000-00-00', '0000-00-00', '', '1007', '', '0000-00-00', 0, 0, '', '0000-00-00', '0000-00-00', '', 21, 4654397, 0); INSERT INTO `integrantes_cargo` VALUES ('', 'ANALISTA DE PRESUPUESTO I', '30', 'FIJO', '', '0000-00-00', '0000-00-00', '', '1006', '', '0000-00-00', 0, 0, '', '0000-00-00', '0000-00-00', '', 20, 9303416, 0); INSERT INTO `integrantes_cargo` VALUES ('', 'ANALISTA DE PRESUPUESTO I', '30', 'FIJO', '', '0000-00-00', '0000-00-00', '', '1003', '', '0000-00-00', 0, 0, '', '0000-00-00', '0000-00-00', '', 22, 12222156, 0); INSERT INTO `integrantes_cargo` VALUES ('', 'AUXILIAR DE OFICINA', '30', 'FIJO', '', '0000-00-00', '0000-00-00', '', '1003', '', '0000-00-00', 0, 0, '', '0000-00-00', '0000-00-00', '', 23, 4018459, 0); INSERT INTO `integrantes_cargo` VALUES ('', 'ABOGADO I', '30', 'FIJO', '', '0000-00-00', '0000-00-00', '', '1007', '', '0000-00-00', 0, 0, '', '0000-00-00', '0000-00-00', '', 24, 9308955, 0); INSERT INTO `integrantes_cargo` VALUES ('', 'AUXILIAR DE OFICINA', '30', 'FIJO', '', '0000-00-00', '0000-00-00', '', '1007', '', '0000-00-00', 0, 0, '', '0000-00-00', '0000-00-00', '', 25, 5477905, 0); INSERT INTO `integrantes_cargo` VALUES ('', 'AUXILIAR DE OFICINA', '30', 'FIJO', '', '0000-00-00', '0000-00-00', '', '1003', '', '0000-00-00', 0, 0, '', '0000-00-00', '0000-00-00', '', 26, 8442192, 0); INSERT INTO `integrantes_cargo` VALUES ('', 'AUXILIAR DE OFICINA', '30', 'FIJO', '', '0000-00-00', '0000-00-00', '', '1007', '', '0000-00-00', 0, 0, '', '0000-00-00', '0000-00-00', '', 27, 8926627, 0); INSERT INTO `integrantes_cargo` VALUES ('', 'ANALISTA DE PRESUPUESTO I', '30', 'FIJO', '', '0000-00-00', '0000-00-00', '', '1005', '', '0000-00-00', 0, 0, '', '0000-00-00', '0000-00-00', '', 28, 8388339, 0); INSERT INTO `integrantes_cargo` VALUES ('', 'AUXILIAR DE OFICINA', '30', 'FIJO', '', '0000-00-00', '0000-00-00', '', '1001', '', '0000-00-00', 0, 0, '', '0000-00-00', '0000-00-00', '', 29, 8378076, 0); INSERT INTO `integrantes_cargo` VALUES ('', 'SECRETARIA I', '30', 'FIJO', '', '0000-00-00', '0000-00-00', '', '1003', '', '0000-00-00', 0, 0, '', '0000-00-00', '0000-00-00', '', 30, 12224570, 0); INSERT INTO `integrantes_cargo` VALUES ('', 'AUXILIAR DE OFICINA', '30', 'FIJO', '', '0000-00-00', '0000-00-00', '', '1007', '', '0000-00-00', 0, 0, '', '0000-00-00', '0000-00-00', '', 31, 8392072, 0); INSERT INTO `integrantes_cargo` VALUES ('', 'AUXILIAR DE OFICINA', '30', 'FIJO', '', '0000-00-00', '0000-00-00', '', '1003', '', '0000-00-00', 0, 0, '', '0000-00-00', '0000-00-00', '', 32, 8381570, 0); INSERT INTO `integrantes_cargo` VALUES ('', 'ARCHIVISTA', '30', 'FIJO', '', '0000-00-00', '0000-00-00', '', '1003', '', '0000-00-00', 0, 0, '', '0000-00-00', '0000-00-00', '', 33, 12225307, 0); INSERT INTO `integrantes_cargo` VALUES ('', 'AUXILIAR DE OFICINA', '30', 'FIJO', '', '0000-00-00', '0000-00-00', '', '1003', '', '0000-00-00', 0, 0, '', '0000-00-00', '0000-00-00', '', 34, 4649004, 0); INSERT INTO `integrantes_cargo` VALUES ('', 'AUXILIAR DE OFICINA', '30', 'FIJO', '', '0000-00-00', '0000-00-00', '', '1005', '', '0000-00-00', 0, 0, '', '0000-00-00', '0000-00-00', '', 35, 5473836, 0); INSERT INTO `integrantes_cargo` VALUES ('', 'PROGRAMADOR I', '30', 'FIJO', '', '0000-00-00', '0000-00-00', '', '1002', '', '0000-00-00', 0, 0, '', '0000-00-00', '0000-00-00', '', 36, 11144676, 0); INSERT INTO `integrantes_cargo` VALUES ('', 'SECRETARIA I', '30', 'FIJO', '', '0000-00-00', '0000-00-00', '', '1006', '', '0000-00-00', 0, 0, '', '0000-00-00', '0000-00-00', '', 37, 6428161, 2); INSERT INTO `integrantes_cargo` VALUES ('', 'SECRETARIA III', '30', 'FIJO', '', '0000-00-00', '0000-00-00', '', '1004', '', '0000-00-00', 0, 0, '', '0000-00-00', '0000-00-00', '', 38, 8396643, 0); INSERT INTO `integrantes_cargo` VALUES ('', 'SECRETARIA III', '30', 'FIJO', '', '0000-00-00', '0000-00-00', '', '1007', '', '0000-00-00', 0, 0, '', '0000-00-00', '0000-00-00', '', 39, 11142484, 0); INSERT INTO `integrantes_cargo` VALUES ('', 'ANALISTA DE PRESUPUESTO I', '30', 'FIJO', '', '0000-00-00', '0000-00-00', '', '1005', '', '0000-00-00', 0, 0, '', '0000-00-00', '0000-00-00', '', 40, 5476102, 0); INSERT INTO `integrantes_cargo` VALUES ('', 'ASISTENTE ADMINISTRATIVO', '30', 'FIJO', '', '0000-00-00', '0000-00-00', '', '1002', '', '0000-00-00', 0, 0, '', '0000-00-00', '0000-00-00', '', 41, 12506912, 0); INSERT INTO `integrantes_cargo` VALUES ('', 'CONDUCTOR', '30', 'FIJO', '', '0000-00-00', '0000-00-00', '', '1004', '', '0000-00-00', 0, 0, '', '0000-00-00', '0000-00-00', '', 42, 8392561, 0); INSERT INTO `integrantes_cargo` VALUES ('', 'CONDUCTOR', '30', 'FIJO', '', '0000-00-00', '0000-00-00', '', '1003', '', '0000-00-00', 0, 0, '', '0000-00-00', '0000-00-00', '', 43, 4271638, 0); INSERT INTO `integrantes_cargo` VALUES ('', 'SECRETARIA II', '30', 'FIJO', '', '0000-00-00', '0000-00-00', '', '1008', '', '0000-00-00', 0, 0, '', '0000-00-00', '0000-00-00', '', 44, 5589301, 0); INSERT INTO `integrantes_cargo` VALUES ('', 'RECEPCIONISTA', '30', 'FIJO', '', '0000-00-00', '0000-00-00', '', '1007', '', '0000-00-00', 0, 0, '', '0000-00-00', '0000-00-00', '', 45, 8398597, 0); INSERT INTO `integrantes_cargo` VALUES ('', 'RECEPCIONISTA', '30', 'FIJO', '', '0000-00-00', '0000-00-00', '', '1007', '', '0000-00-00', 0, 0, '', '0000-00-00', '0000-00-00', '', 46, 12669638, 0); INSERT INTO `integrantes_cargo` VALUES ('', 'ASISTENTE DE PERSONAL', '30', 'FIJO', '', '0000-00-00', '0000-00-00', '', '1002', '', '0000-00-00', 0, 0, '', '0000-00-00', '0000-00-00', '', 48, 5721970, 0); INSERT INTO `integrantes_cargo` VALUES ('', 'OPERADOR DE FOTOCOPOADORA', '30', 'FIJO', '', '0000-00-00', '0000-00-00', '', '1004', '', '0000-00-00', 0, 0, '', '0000-00-00', '0000-00-00', '', 49, 13541356, 0); INSERT INTO `integrantes_cargo` VALUES ('', 'DIRECTOR ASISTENTE', '70', 'FIJO', '', '0000-00-00', '0000-00-00', '', '1004', '', '0000-00-00', 0, 0, '', '0000-00-00', '0000-00-00', '', 50, 3946767, 0); INSERT INTO `integrantes_cargo` VALUES ('', 'DIRECTOR', '70', 'FIJO', '', '0000-00-00', '0000-00-00', '', '1006', '', '0000-00-00', 0, 0, '', '0000-00-00', '0000-00-00', '', 60, 6966895, 0); INSERT INTO `integrantes_cargo` VALUES ('', 'AUDITOR COORDINADOR', '50', 'FIJO', '', '0000-00-00', '0000-00-00', '', '1006', '', '0000-00-00', 0, 0, '', '0000-00-00', '0000-00-00', '', 59, 8470624, 4); INSERT INTO `integrantes_cargo` VALUES ('', 'CONTRALOR DEL ESTADO', '90', 'FIJO', '', '0000-00-00', '0000-00-00', '', '1004', '', '0000-00-00', 0, 0, '', '0000-00-00', '0000-00-00', '', 61, 4650716, 0); INSERT INTO `integrantes_cargo` VALUES ('', 'DIRECTOR', '70', 'FIJO', '', '0000-00-00', '0000-00-00', '', '1002', '', '0000-00-00', 0, 0, '', '0000-00-00', '0000-00-00', '', 62, 6177583, 0); INSERT INTO `integrantes_cargo` VALUES ('', 'ABOGADO II', '30', 'FIJO', '', '0000-00-00', '0000-00-00', '', '1006', '', '0000-00-00', 0, 0, '', '0000-00-00', '0000-00-00', '', 63, 12661621, 4); INSERT INTO `integrantes_cargo` VALUES ('', 'DIRECTOR', '70', 'FIJO', '', '0000-00-00', '0000-00-00', '', '1008', '', '0000-00-00', 0, 0, '', '0000-00-00', '0000-00-00', '', 109, 6122659, 0); INSERT INTO `integrantes_cargo` VALUES ('', 'AUDITOR II', '30', 'FIJO', '', '0000-00-00', '0000-00-00', '', '1005', '', '0000-00-00', 0, 0, '', '0000-00-00', '0000-00-00', '', 65, 4647928, 0); INSERT INTO `integrantes_cargo` VALUES ('', 'ABOGADO I', '30', 'FIJO', '', '0000-00-00', '0000-00-00', '', '1008', '', '0000-00-00', 0, 0, '', '0000-00-00', '0000-00-00', '', 115, 13541970, 0); INSERT INTO `integrantes_cargo` VALUES ('', 'ABOGADO I', '30', 'FIJO', '', '0000-00-00', '0000-00-00', '', '1008', '', '0000-00-00', 0, 0, '', '0000-00-00', '0000-00-00', '', 114, 12673593, 1); INSERT INTO `integrantes_cargo` VALUES ('', 'INSPECTOR DE OBRAS I', '30', 'FIJO', '', '0000-00-00', '0000-00-00', '', '1006', '', '0000-00-00', 0, 0, '', '0000-00-00', '0000-00-00', '', 113, 14543612, 0); INSERT INTO `integrantes_cargo` VALUES ('', 'AUDITOR II', '30', 'FIJO', '', '0000-00-00', '0000-00-00', '', '1005', '', '0000-00-00', 0, 0, '', '0000-00-00', '0000-00-00', '', 112, 4652451, 0); INSERT INTO `integrantes_cargo` VALUES ('', 'DIRECTOR ASISTENTE', '70', 'FIJO', '', '0000-00-00', '0000-00-00', '', '1004', '', '0000-00-00', 0, 0, '', '0000-00-00', '0000-00-00', '', 111, 5605331, 0); INSERT INTO `integrantes_cargo` VALUES ('', 'PROGRAMADOR I', '30', 'FIJO', '', '0000-00-00', '0000-00-00', '', '1001', '', '0000-00-00', 0, 0, '', '0000-00-00', '0000-00-00', '', 84, 11855143, 4); INSERT INTO `integrantes_cargo` VALUES ('', 'AUDITOR COORDINADOR', '50', 'FIJO', '', '0000-00-00', '0000-00-00', '', '1005', '', '0000-00-00', 0, 0, '', '0000-00-00', '0000-00-00', '', 110, 8385744, 0); INSERT INTO `integrantes_cargo` VALUES ('', 'AUDITOR II', '30', 'FIJO', '', '0000-00-00', '0000-00-00', '', '1005', '', '0000-00-00', 0, 0, '', '0000-00-00', '0000-00-00', '', 86, 4651478, 4); INSERT INTO `integrantes_cargo` VALUES ('', 'INSPECTOR DE OBRAS III', '30', 'FIJO', '', '0000-00-00', '0000-00-00', '', '1005', '', '0000-00-00', 0, 0, '', '0000-00-00', '0000-00-00', '', 87, 5482954, 3); INSERT INTO `integrantes_cargo` VALUES ('', 'DIRECTOR', '70', 'FIJO', '', '0000-00-00', '0000-00-00', '', '1003', '', '0000-00-00', 0, 0, '', '0000-00-00', '0000-00-00', '', 88, 13023459, 0); INSERT INTO `integrantes_cargo` VALUES ('', 'AUXILIAR DE OFICINA', '30', 'FIJO', '', '0000-00-00', '0000-00-00', '', '1007', '', '0000-00-00', 0, 0, '', '0000-00-00', '0000-00-00', '', 108, 5482703, 0); INSERT INTO `integrantes_cargo` VALUES ('', 'INSPECTOR COORDINADOR', '50', 'FIJO', '', '0000-00-00', '0000-00-00', '', '1006', '', '0000-00-00', 0, 0, '', '0000-00-00', '0000-00-00', '', 92, 8566093, 0); INSERT INTO `integrantes_cargo` VALUES ('', 'DIRECTOR', '70', 'FIJO', '', '0000-00-00', '0000-00-00', '', '1007', '', '0000-00-00', 0, 0, '', '0000-00-00', '0000-00-00', '', 93, 5482594, 0); INSERT INTO `integrantes_cargo` VALUES ('', 'AUDITOR COORDINADOR', '50', 'FIJO', '', '0000-00-00', '0000-00-00', '', '1005', '', '0000-00-00', 0, 0, '', '0000-00-00', '0000-00-00', '', 94, 11536888, 6); INSERT INTO `integrantes_cargo` VALUES ('', 'DIBUJANTE', '30', 'FIJO', '', '0000-00-00', '0000-00-00', '', '1006', '', '0000-00-00', 0, 0, '', '0000-00-00', '0000-00-00', '', 95, 11142532, 3); INSERT INTO `integrantes_cargo` VALUES ('', 'ABOGADO II', '30', 'FIJO', '', '0000-00-00', '0000-00-00', '', '1005', '', '0000-00-00', 0, 0, '', '0000-00-00', '0000-00-00', '', 96, 11852605, 5); INSERT INTO `integrantes_cargo` VALUES ('', 'DIRECTOR', '70', 'FIJO', '', '0000-00-00', '0000-00-00', '', '1001', '', '0000-00-00', 0, 0, '', '0000-00-00', '0000-00-00', '', 97, 13729622, 0); INSERT INTO `integrantes_cargo` VALUES ('', 'COORDINADOR DE INFORMATICA', '30', 'FIJO', '', '0000-00-00', '0000-00-00', '', '1002', '', '0000-00-00', 0, 0, '', '0000-00-00', '0000-00-00', '', 98, 14055011, 6); INSERT INTO `integrantes_cargo` VALUES ('', 'ABOGADO COORDINADOR', '50', 'FIJO', '', '0000-00-00', '0000-00-00', '', '1005', '', '0000-00-00', 0, 0, '', '0000-00-00', '0000-00-00', '', 99, 5482007, 3); INSERT INTO `integrantes_cargo` VALUES ('', 'AUDITOR II', '30', 'FIJO', '', '0000-00-00', '0000-00-00', '', '1005', '', '0000-00-00', 0, 0, '', '0000-00-00', '0000-00-00', '', 100, 5643691, 3); INSERT INTO `integrantes_cargo` VALUES ('', 'ANALISTA DE ORGANIZACION Y SISTEMAS II', '30', 'FIJO', '', '0000-00-00', '0000-00-00', '', '1001', '', '0000-00-00', 0, 0, '', '0000-00-00', '0000-00-00', '', 101, 13668974, 5); INSERT INTO `integrantes_cargo` VALUES ('', 'ANALISTA DE PERSONAL III', '30', 'FIJO', '', '0000-00-00', '0000-00-00', '', '1002', '', '0000-00-00', 0, 0, '', '0000-00-00', '0000-00-00', '', 102, 11506606, 3); INSERT INTO `integrantes_cargo` VALUES ('', 'AUXILIAR DE OFICINA', '30', 'FIJO', '', '0000-00-00', '0000-00-00', '', '1007', '', '0000-00-00', 0, 0, '', '0000-00-00', '0000-00-00', '', 103, 1157385, 0); INSERT INTO `integrantes_cargo` VALUES ('', 'COORDINADOR COMUNICACIONAL', '50', 'FIJO', '', '0000-00-00', '0000-00-00', '', '1004', '', '0000-00-00', 0, 0, '', '0000-00-00', '0000-00-00', '', 104, 9425982, 5); INSERT INTO `integrantes_cargo` VALUES ('', 'AUDITOR II', '30', 'FIJO', '', '0000-00-00', '0000-00-00', '', '1005', '', '0000-00-00', 0, 0, '', '0000-00-00', '0000-00-00', '', 105, 12920483, 3); INSERT INTO `integrantes_cargo` VALUES ('', 'COORDINADOR DE ADMINISTRACION', '50', 'FIJO', '', '0000-00-00', '0000-00-00', '', '1003', '', '0000-00-00', 0, 0, '', '0000-00-00', '0000-00-00', '', 106, 5972426, 5); INSERT INTO `integrantes_cargo` VALUES ('', 'INSPECTOR DE OBRAS I', '30', 'FIJO', '', '0000-00-00', '0000-00-00', '', '1005', '', '0000-00-00', 0, 0, '', '0000-00-00', '0000-00-00', '', 107, 14685167, 1); INSERT INTO `integrantes_cargo` VALUES ('', 'AUDITOR I', '30', 'FIJO', '', '0000-00-00', '0000-00-00', '', '1006', '', '0000-00-00', 0, 0, '', '0000-00-00', '0000-00-00', '', 116, 15422391, 0); INSERT INTO `integrantes_cargo` VALUES ('', 'AUDITOR I', '30', 'FIJO', '', '0000-00-00', '0000-00-00', '', '1006', '', '0000-00-00', 0, 0, '', '0000-00-00', '0000-00-00', '', 117, 15896190, 0); INSERT INTO `integrantes_cargo` VALUES ('', 'AUXILIAR DE OFICINA', '30', 'FIJO', '', '0000-00-00', '0000-00-00', '', '1003', '', '0000-00-00', 0, 0, '', '0000-00-00', '0000-00-00', '', 118, 3826253, 0); INSERT INTO `integrantes_cargo` VALUES ('', 'PROGRAMADOR II', '30', 'FIJO', '', '0000-00-00', '0000-00-00', '', '1001', '', '0000-00-00', 0, 0, '', '0000-00-00', '0000-00-00', '', 119, 12506760, 0); INSERT INTO `integrantes_cargo` VALUES ('', 'ARCHIVISTA', '30', 'FIJO', '', '0000-00-00', '0000-00-00', '', '1003', '', '0000-00-00', 0, 0, '', '0000-00-00', '0000-00-00', '', 120, 4983744, 0); INSERT INTO `integrantes_cargo` VALUES ('', 'DIRECTOR', '70', 'FIJO', '', '0000-00-00', '0000-00-00', '', '1005', '', '0000-00-00', 0, 0, '', '0000-00-00', '0000-00-00', '', 121, 9429622, 0); INSERT INTO `integrantes_cargo` VALUES ('', 'GUIA PROTOCOLAR', '30', 'FIJO', '', '0000-00-00', '0000-00-00', '', '1004', '', '0000-00-00', 0, 0, '', '0000-00-00', '0000-00-00', '', 122, 12223561, 0); INSERT INTO `integrantes_cargo` VALUES ('', 'AUDITOR I', '30', 'FIJO', '', '0000-00-00', '0000-00-00', '', '1006', '', '0000-00-00', 0, 0, '', '0000-00-00', '0000-00-00', '', 123, 15423652, 0); INSERT INTO `integrantes_cargo` VALUES ('', 'AUDITOR I', '30', 'FIJO', '', '0000-00-00', '0000-00-00', '', '1006', '', '0000-00-00', 0, 0, '', '0000-00-00', '0000-00-00', '', 124, 10519925, 0); INSERT INTO `integrantes_cargo` VALUES ('', 'INSPECTOR DE OBRAS I', '30', 'FIJO', '', '0000-00-00', '0000-00-00', '', '1005', '', '0000-00-00', 0, 0, '', '0000-00-00', '0000-00-00', '', 125, 13190579, 0); INSERT INTO `integrantes_cargo` VALUES ('', 'PROGRAMADOR II', '30', 'FIJO', '', '0000-00-00', '0000-00-00', '', '1001', '', '0000-00-00', 0, 0, '', '0000-00-00', '0000-00-00', '', 126, 13424082, 0); INSERT INTO `integrantes_cargo` VALUES ('', 'AUDITOR I', '30', 'FIJO', '', '0000-00-00', '0000-00-00', '', '1006', '', '0000-00-00', 0, 0, '', '0000-00-00', '0000-00-00', '', 127, 6727828, 0); -- -------------------------------------------------------- -- -- Estructura de tabla para la tabla `integrantes_conceptos` -- CREATE TABLE `integrantes_conceptos` ( `id` int(11) NOT NULL auto_increment, `cedula` int(10) unsigned NOT NULL default '0', `cod_concepto` varchar(4) NOT NULL default '', PRIMARY KEY (`cedula`,`cod_concepto`), UNIQUE KEY `id` (`id`), KEY `cod_concepto` (`cod_concepto`) ) ENGINE=MyISAM DEFAULT CHARSET=latin1 AUTO_INCREMENT=752 ; -- -- Volcar la base de datos para la tabla `integrantes_conceptos` -- INSERT INTO `integrantes_conceptos` VALUES (7, 6966895, '0003'); INSERT INTO `integrantes_conceptos` VALUES (8, 6966895, '0004'); INSERT INTO `integrantes_conceptos` VALUES (9, 6966895, '0001'); INSERT INTO `integrantes_conceptos` VALUES (10, 6966895, '0005'); INSERT INTO `integrantes_conceptos` VALUES (457, 5482594, '0014'); INSERT INTO `integrantes_conceptos` VALUES (15, 5605331, '0001'); INSERT INTO `integrantes_conceptos` VALUES (16, 5605331, '0004'); INSERT INTO `integrantes_conceptos` VALUES (456, 13023459, '0014'); INSERT INTO `integrantes_conceptos` VALUES (18, 5605331, '0005'); INSERT INTO `integrantes_conceptos` VALUES (19, 6122659, '0001'); INSERT INTO `integrantes_conceptos` VALUES (20, 6122659, '0003'); INSERT INTO `integrantes_conceptos` VALUES (21, 6122659, '0004'); INSERT INTO `integrantes_conceptos` VALUES (455, 3946767, '0014'); INSERT INTO `integrantes_conceptos` VALUES (23, 6122659, '0005'); INSERT INTO `integrantes_conceptos` VALUES (24, 6122659, '9001'); INSERT INTO `integrantes_conceptos` VALUES (25, 13023459, '0001'); INSERT INTO `integrantes_conceptos` VALUES (26, 13023459, '0003'); INSERT INTO `integrantes_conceptos` VALUES (27, 13023459, '0004'); INSERT INTO `integrantes_conceptos` VALUES (454, 6122659, '0014'); INSERT INTO `integrantes_conceptos` VALUES (29, 13023459, '0005'); INSERT INTO `integrantes_conceptos` VALUES (30, 13023459, '9001'); INSERT INTO `integrantes_conceptos` VALUES (31, 4650716, '0003'); INSERT INTO `integrantes_conceptos` VALUES (32, 4650716, '0004'); INSERT INTO `integrantes_conceptos` VALUES (33, 4650716, '9001'); INSERT INTO `integrantes_conceptos` VALUES (34, 4650716, '0005'); INSERT INTO `integrantes_conceptos` VALUES (453, 5605331, '0014'); INSERT INTO `integrantes_conceptos` VALUES (36, 5605331, '0008'); INSERT INTO `integrantes_conceptos` VALUES (37, 5605331, '1000'); INSERT INTO `integrantes_conceptos` VALUES (38, 5605331, '0003'); INSERT INTO `integrantes_conceptos` VALUES (39, 5605331, '9001'); INSERT INTO `integrantes_conceptos` VALUES (40, 5605331, '0002'); INSERT INTO `integrantes_conceptos` VALUES (41, 13729622, '9001'); INSERT INTO `integrantes_conceptos` VALUES (42, 6966895, '9001'); INSERT INTO `integrantes_conceptos` VALUES (43, 5482594, '9001'); INSERT INTO `integrantes_conceptos` VALUES (44, 8385744, '9001'); INSERT INTO `integrantes_conceptos` VALUES (45, 9429622, '9001'); INSERT INTO `integrantes_conceptos` VALUES (46, 8566093, '9001'); INSERT INTO `integrantes_conceptos` VALUES (47, 3946767, '9001'); INSERT INTO `integrantes_conceptos` VALUES (48, 6177583, '9001'); INSERT INTO `integrantes_conceptos` VALUES (49, 11536888, '9001'); INSERT INTO `integrantes_conceptos` VALUES (50, 4051711, '0003'); INSERT INTO `integrantes_conceptos` VALUES (51, 4512285, '0003'); INSERT INTO `integrantes_conceptos` VALUES (52, 8385761, '0003'); INSERT INTO `integrantes_conceptos` VALUES (53, 3670594, '0003'); INSERT INTO `integrantes_conceptos` VALUES (54, 5477294, '0003'); INSERT INTO `integrantes_conceptos` VALUES (55, 9303416, '0003'); INSERT INTO `integrantes_conceptos` VALUES (56, 4654397, '0003'); INSERT INTO `integrantes_conceptos` VALUES (57, 11829028, '0003'); INSERT INTO `integrantes_conceptos` VALUES (58, 12222156, '0003'); INSERT INTO `integrantes_conceptos` VALUES (59, 4018459, '0003'); INSERT INTO `integrantes_conceptos` VALUES (60, 9308955, '0003'); INSERT INTO `integrantes_conceptos` VALUES (61, 5477905, '0003'); INSERT INTO `integrantes_conceptos` VALUES (62, 8442192, '0003'); INSERT INTO `integrantes_conceptos` VALUES (63, 8926627, '0003'); INSERT INTO `integrantes_conceptos` VALUES (64, 8388339, '0003'); INSERT INTO `integrantes_conceptos` VALUES (65, 8378076, '0003'); INSERT INTO `integrantes_conceptos` VALUES (66, 12224570, '0003'); INSERT INTO `integrantes_conceptos` VALUES (67, 8392072, '0003'); INSERT INTO `integrantes_conceptos` VALUES (68, 8381570, '0003'); INSERT INTO `integrantes_conceptos` VALUES (69, 13669573, '0003'); INSERT INTO `integrantes_conceptos` VALUES (70, 12225307, '0003'); INSERT INTO `integrantes_conceptos` VALUES (71, 5482703, '0003'); INSERT INTO `integrantes_conceptos` VALUES (72, 4649004, '0003'); INSERT INTO `integrantes_conceptos` VALUES (73, 5473836, '0003'); INSERT INTO `integrantes_conceptos` VALUES (74, 11144676, '0003'); INSERT INTO `integrantes_conceptos` VALUES (75, 6428161, '0003'); INSERT INTO `integrantes_conceptos` VALUES (76, 8396643, '0003'); INSERT INTO `integrantes_conceptos` VALUES (77, 11142484, '0003'); INSERT INTO `integrantes_conceptos` VALUES (78, 5476102, '0003'); INSERT INTO `integrantes_conceptos` VALUES (79, 12506912, '0003'); INSERT INTO `integrantes_conceptos` VALUES (80, 8392561, '0003'); INSERT INTO `integrantes_conceptos` VALUES (81, 4271638, '0003'); INSERT INTO `integrantes_conceptos` VALUES (82, 5589301, '0003'); INSERT INTO `integrantes_conceptos` VALUES (83, 8398597, '0003'); INSERT INTO `integrantes_conceptos` VALUES (84, 12669638, '0003'); INSERT INTO `integrantes_conceptos` VALUES (85, 5721970, '0003'); INSERT INTO `integrantes_conceptos` VALUES (86, 13541356, '0003'); INSERT INTO `integrantes_conceptos` VALUES (87, 3946767, '0003'); INSERT INTO `integrantes_conceptos` VALUES (88, 8470624, '0003'); INSERT INTO `integrantes_conceptos` VALUES (89, 6177583, '0003'); INSERT INTO `integrantes_conceptos` VALUES (90, 12661621, '0003'); INSERT INTO `integrantes_conceptos` VALUES (91, 4647928, '0003'); INSERT INTO `integrantes_conceptos` VALUES (92, 4651478, '0003'); INSERT INTO `integrantes_conceptos` VALUES (93, 5482954, '0003'); INSERT INTO `integrantes_conceptos` VALUES (94, 8385744, '0003'); INSERT INTO `integrantes_conceptos` VALUES (95, 11855143, '0003'); INSERT INTO `integrantes_conceptos` VALUES (96, 8566093, '0003'); INSERT INTO `integrantes_conceptos` VALUES (97, 5482594, '0003'); INSERT INTO `integrantes_conceptos` VALUES (98, 11536888, '0003'); INSERT INTO `integrantes_conceptos` VALUES (99, 11142532, '0003'); INSERT INTO `integrantes_conceptos` VALUES (100, 11852605, '0003'); INSERT INTO `integrantes_conceptos` VALUES (101, 13729622, '0003'); INSERT INTO `integrantes_conceptos` VALUES (102, 4652451, '0003'); INSERT INTO `integrantes_conceptos` VALUES (103, 14055011, '0003'); INSERT INTO `integrantes_conceptos` VALUES (104, 5482007, '0003'); INSERT INTO `integrantes_conceptos` VALUES (105, 8390397, '0003'); INSERT INTO `integrantes_conceptos` VALUES (106, 4051700, '0003'); INSERT INTO `integrantes_conceptos` VALUES (107, 5643691, '0003'); INSERT INTO `integrantes_conceptos` VALUES (108, 7164093, '0003'); INSERT INTO `integrantes_conceptos` VALUES (109, 11506606, '0003'); INSERT INTO `integrantes_conceptos` VALUES (110, 13668974, '0003'); INSERT INTO `integrantes_conceptos` VALUES (111, 9425982, '0003'); INSERT INTO `integrantes_conceptos` VALUES (112, 12920483, '0003'); INSERT INTO `integrantes_conceptos` VALUES (113, 5972426, '0003'); INSERT INTO `integrantes_conceptos` VALUES (114, 9429622, '0003'); INSERT INTO `integrantes_conceptos` VALUES (115, 12223561, '0003'); INSERT INTO `integrantes_conceptos` VALUES (116, 15423652, '0003'); INSERT INTO `integrantes_conceptos` VALUES (117, 10519925, '0003'); INSERT INTO `integrantes_conceptos` VALUES (118, 13190579, '0003'); INSERT INTO `integrantes_conceptos` VALUES (119, 13424082, '0003'); INSERT INTO `integrantes_conceptos` VALUES (120, 14685167, '0003'); INSERT INTO `integrantes_conceptos` VALUES (121, 6727828, '0003'); INSERT INTO `integrantes_conceptos` VALUES (122, 14543612, '0003'); INSERT INTO `integrantes_conceptos` VALUES (123, 4983744, '0003'); INSERT INTO `integrantes_conceptos` VALUES (124, 3946767, '0004'); INSERT INTO `integrantes_conceptos` VALUES (125, 5482594, '0004'); INSERT INTO `integrantes_conceptos` VALUES (126, 13729622, '0004'); INSERT INTO `integrantes_conceptos` VALUES (578, 9429622, '0011'); INSERT INTO `integrantes_conceptos` VALUES (128, 13729622, '0001'); INSERT INTO `integrantes_conceptos` VALUES (129, 3946767, '0001'); INSERT INTO `integrantes_conceptos` VALUES (130, 9429622, '0001'); INSERT INTO `integrantes_conceptos` VALUES (131, 5482594, '0001'); INSERT INTO `integrantes_conceptos` VALUES (132, 6177583, '0001'); INSERT INTO `integrantes_conceptos` VALUES (133, 4051711, '0005'); INSERT INTO `integrantes_conceptos` VALUES (134, 4512285, '0005'); INSERT INTO `integrantes_conceptos` VALUES (135, 8385761, '0005'); INSERT INTO `integrantes_conceptos` VALUES (136, 3670594, '0005'); INSERT INTO `integrantes_conceptos` VALUES (137, 5477294, '0005'); INSERT INTO `integrantes_conceptos` VALUES (138, 9303416, '0005'); INSERT INTO `integrantes_conceptos` VALUES (139, 4654397, '0005'); INSERT INTO `integrantes_conceptos` VALUES (140, 10204661, '0005'); INSERT INTO `integrantes_conceptos` VALUES (141, 11829028, '0005'); INSERT INTO `integrantes_conceptos` VALUES (142, 12222156, '0005'); INSERT INTO `integrantes_conceptos` VALUES (143, 4018459, '0005'); INSERT INTO `integrantes_conceptos` VALUES (144, 9308955, '0005'); INSERT INTO `integrantes_conceptos` VALUES (145, 5477905, '0005'); INSERT INTO `integrantes_conceptos` VALUES (146, 8442192, '0005'); INSERT INTO `integrantes_conceptos` VALUES (147, 8926627, '0005'); INSERT INTO `integrantes_conceptos` VALUES (148, 8388339, '0005'); INSERT INTO `integrantes_conceptos` VALUES (149, 8378076, '0005'); INSERT INTO `integrantes_conceptos` VALUES (150, 12224570, '0005'); INSERT INTO `integrantes_conceptos` VALUES (151, 8392072, '0005'); INSERT INTO `integrantes_conceptos` VALUES (152, 8381570, '0005'); INSERT INTO `integrantes_conceptos` VALUES (153, 13669573, '0005'); INSERT INTO `integrantes_conceptos` VALUES (154, 12225307, '0005'); INSERT INTO `integrantes_conceptos` VALUES (155, 5482703, '0005'); INSERT INTO `integrantes_conceptos` VALUES (156, 4649004, '0005'); INSERT INTO `integrantes_conceptos` VALUES (157, 8382049, '0005'); INSERT INTO `integrantes_conceptos` VALUES (158, 5473836, '0005'); INSERT INTO `integrantes_conceptos` VALUES (159, 4654821, '0005'); INSERT INTO `integrantes_conceptos` VALUES (160, 5480903, '0005'); INSERT INTO `integrantes_conceptos` VALUES (161, 4648525, '0005'); INSERT INTO `integrantes_conceptos` VALUES (162, 4653768, '0005'); INSERT INTO `integrantes_conceptos` VALUES (163, 4189050, '0005'); INSERT INTO `integrantes_conceptos` VALUES (164, 11144676, '0005'); INSERT INTO `integrantes_conceptos` VALUES (165, 6428161, '0005'); INSERT INTO `integrantes_conceptos` VALUES (166, 8396643, '0005'); INSERT INTO `integrantes_conceptos` VALUES (167, 11142484, '0005'); INSERT INTO `integrantes_conceptos` VALUES (168, 5476102, '0005'); INSERT INTO `integrantes_conceptos` VALUES (169, 12506912, '0005'); INSERT INTO `integrantes_conceptos` VALUES (170, 8392561, '0005'); INSERT INTO `integrantes_conceptos` VALUES (171, 4271638, '0005'); INSERT INTO `integrantes_conceptos` VALUES (172, 5589301, '0005'); INSERT INTO `integrantes_conceptos` VALUES (173, 8398597, '0005'); INSERT INTO `integrantes_conceptos` VALUES (174, 12669638, '0005'); INSERT INTO `integrantes_conceptos` VALUES (175, 5721970, '0005'); INSERT INTO `integrantes_conceptos` VALUES (176, 13541356, '0005'); INSERT INTO `integrantes_conceptos` VALUES (177, 4647270, '0005'); INSERT INTO `integrantes_conceptos` VALUES (178, 3946767, '0005'); INSERT INTO `integrantes_conceptos` VALUES (179, 3824167, '0005'); INSERT INTO `integrantes_conceptos` VALUES (180, 8470624, '0005'); INSERT INTO `integrantes_conceptos` VALUES (181, 6177583, '0005'); INSERT INTO `integrantes_conceptos` VALUES (182, 12661621, '0005'); INSERT INTO `integrantes_conceptos` VALUES (183, 4647928, '0005'); INSERT INTO `integrantes_conceptos` VALUES (184, 4651478, '0005'); INSERT INTO `integrantes_conceptos` VALUES (185, 5482954, '0005'); INSERT INTO `integrantes_conceptos` VALUES (186, 8385744, '0005'); INSERT INTO `integrantes_conceptos` VALUES (187, 11855143, '0005'); INSERT INTO `integrantes_conceptos` VALUES (188, 8566093, '0005'); INSERT INTO `integrantes_conceptos` VALUES (189, 4422887, '0005'); INSERT INTO `integrantes_conceptos` VALUES (190, 5482594, '0005'); INSERT INTO `integrantes_conceptos` VALUES (191, 11536888, '0005'); INSERT INTO `integrantes_conceptos` VALUES (192, 4656784, '0005'); INSERT INTO `integrantes_conceptos` VALUES (193, 11142532, '0005'); INSERT INTO `integrantes_conceptos` VALUES (194, 11852605, '0005'); INSERT INTO `integrantes_conceptos` VALUES (195, 13729622, '0005'); INSERT INTO `integrantes_conceptos` VALUES (196, 4652451, '0005'); INSERT INTO `integrantes_conceptos` VALUES (197, 10214381, '0005'); INSERT INTO `integrantes_conceptos` VALUES (198, 4583844, '0005'); INSERT INTO `integrantes_conceptos` VALUES (199, 14055011, '0005'); INSERT INTO `integrantes_conceptos` VALUES (200, 5482007, '0005'); INSERT INTO `integrantes_conceptos` VALUES (201, 8390397, '0005'); INSERT INTO `integrantes_conceptos` VALUES (202, 4051700, '0005'); INSERT INTO `integrantes_conceptos` VALUES (203, 5643691, '0005'); INSERT INTO `integrantes_conceptos` VALUES (204, 11143327, '0005'); INSERT INTO `integrantes_conceptos` VALUES (205, 5885859, '0005'); INSERT INTO `integrantes_conceptos` VALUES (206, 7164093, '0005'); INSERT INTO `integrantes_conceptos` VALUES (207, 4656077, '0005'); INSERT INTO `integrantes_conceptos` VALUES (208, 11506606, '0005'); INSERT INTO `integrantes_conceptos` VALUES (209, 13668974, '0005'); INSERT INTO `integrantes_conceptos` VALUES (210, 14220083, '0005'); INSERT INTO `integrantes_conceptos` VALUES (211, 9425982, '0005'); INSERT INTO `integrantes_conceptos` VALUES (212, 12920483, '0005'); INSERT INTO `integrantes_conceptos` VALUES (213, 5972426, '0005'); INSERT INTO `integrantes_conceptos` VALUES (214, 9429622, '0005'); INSERT INTO `integrantes_conceptos` VALUES (215, 12223561, '0005'); INSERT INTO `integrantes_conceptos` VALUES (216, 15423652, '0005'); INSERT INTO `integrantes_conceptos` VALUES (217, 10519925, '0005'); INSERT INTO `integrantes_conceptos` VALUES (218, 13848164, '0005'); INSERT INTO `integrantes_conceptos` VALUES (219, 13190579, '0005'); INSERT INTO `integrantes_conceptos` VALUES (220, 13424082, '0005'); INSERT INTO `integrantes_conceptos` VALUES (221, 13848264, '0005'); INSERT INTO `integrantes_conceptos` VALUES (222, 14685167, '0005'); INSERT INTO `integrantes_conceptos` VALUES (223, 6727828, '0005'); INSERT INTO `integrantes_conceptos` VALUES (224, 14543612, '0005'); INSERT INTO `integrantes_conceptos` VALUES (225, 4983744, '0005'); INSERT INTO `integrantes_conceptos` VALUES (226, 222222222, '0005'); INSERT INTO `integrantes_conceptos` VALUES (452, 6177583, '0014'); INSERT INTO `integrantes_conceptos` VALUES (451, 6966895, '0014'); INSERT INTO `integrantes_conceptos` VALUES (450, 9429622, '0014'); INSERT INTO `integrantes_conceptos` VALUES (449, 13729622, '0014'); INSERT INTO `integrantes_conceptos` VALUES (231, 6122659, '0002'); INSERT INTO `integrantes_conceptos` VALUES (232, 3946767, '0002'); INSERT INTO `integrantes_conceptos` VALUES (233, 13023459, '0002'); INSERT INTO `integrantes_conceptos` VALUES (234, 5482594, '0002'); INSERT INTO `integrantes_conceptos` VALUES (235, 9429622, '0002'); INSERT INTO `integrantes_conceptos` VALUES (236, 6966895, '0002'); INSERT INTO `integrantes_conceptos` VALUES (237, 13729622, '0002'); INSERT INTO `integrantes_conceptos` VALUES (459, 4051711, '1000'); INSERT INTO `integrantes_conceptos` VALUES (239, 4512285, '1000'); INSERT INTO `integrantes_conceptos` VALUES (240, 8385761, '1000'); INSERT INTO `integrantes_conceptos` VALUES (241, 3670594, '1000'); INSERT INTO `integrantes_conceptos` VALUES (242, 5477294, '1000'); INSERT INTO `integrantes_conceptos` VALUES (243, 9303416, '1000'); INSERT INTO `integrantes_conceptos` VALUES (244, 4654397, '1000'); INSERT INTO `integrantes_conceptos` VALUES (245, 10204661, '1000'); INSERT INTO `integrantes_conceptos` VALUES (246, 11829028, '1000'); INSERT INTO `integrantes_conceptos` VALUES (247, 12222156, '1000'); INSERT INTO `integrantes_conceptos` VALUES (248, 2803086, '1000'); INSERT INTO `integrantes_conceptos` VALUES (249, 4018459, '1000'); INSERT INTO `integrantes_conceptos` VALUES (250, 9308955, '1000'); INSERT INTO `integrantes_conceptos` VALUES (251, 5477905, '1000'); INSERT INTO `integrantes_conceptos` VALUES (252, 8442192, '1000'); INSERT INTO `integrantes_conceptos` VALUES (253, 8926627, '1000'); INSERT INTO `integrantes_conceptos` VALUES (254, 8388339, '1000'); INSERT INTO `integrantes_conceptos` VALUES (255, 8378076, '1000'); INSERT INTO `integrantes_conceptos` VALUES (256, 12224570, '1000'); INSERT INTO `integrantes_conceptos` VALUES (257, 8392072, '1000'); INSERT INTO `integrantes_conceptos` VALUES (258, 8381570, '1000'); INSERT INTO `integrantes_conceptos` VALUES (259, 1157385, '1000'); INSERT INTO `integrantes_conceptos` VALUES (260, 13669573, '1000'); INSERT INTO `integrantes_conceptos` VALUES (261, 12225307, '1000'); INSERT INTO `integrantes_conceptos` VALUES (262, 5482703, '1000'); INSERT INTO `integrantes_conceptos` VALUES (263, 4649004, '1000'); INSERT INTO `integrantes_conceptos` VALUES (264, 1633192, '1000'); INSERT INTO `integrantes_conceptos` VALUES (265, 8382049, '1000'); INSERT INTO `integrantes_conceptos` VALUES (266, 5473836, '1000'); INSERT INTO `integrantes_conceptos` VALUES (267, 4654821, '1000'); INSERT INTO `integrantes_conceptos` VALUES (268, 3486366, '1000'); INSERT INTO `integrantes_conceptos` VALUES (269, 5480903, '1000'); INSERT INTO `integrantes_conceptos` VALUES (270, 4648525, '1000'); INSERT INTO `integrantes_conceptos` VALUES (271, 4653768, '1000'); INSERT INTO `integrantes_conceptos` VALUES (272, 4189050, '1000'); INSERT INTO `integrantes_conceptos` VALUES (273, 11144676, '1000'); INSERT INTO `integrantes_conceptos` VALUES (274, 6428161, '1000'); INSERT INTO `integrantes_conceptos` VALUES (275, 8396643, '1000'); INSERT INTO `integrantes_conceptos` VALUES (276, 11142484, '1000'); INSERT INTO `integrantes_conceptos` VALUES (277, 5476102, '1000'); INSERT INTO `integrantes_conceptos` VALUES (278, 12506912, '1000'); INSERT INTO `integrantes_conceptos` VALUES (279, 8392561, '1000'); INSERT INTO `integrantes_conceptos` VALUES (280, 4271638, '1000'); INSERT INTO `integrantes_conceptos` VALUES (281, 5589301, '1000'); INSERT INTO `integrantes_conceptos` VALUES (282, 8398597, '1000'); INSERT INTO `integrantes_conceptos` VALUES (283, 12669638, '1000'); INSERT INTO `integrantes_conceptos` VALUES (284, 5721970, '1000'); INSERT INTO `integrantes_conceptos` VALUES (285, 13541356, '1000'); INSERT INTO `integrantes_conceptos` VALUES (286, 4647270, '1000'); INSERT INTO `integrantes_conceptos` VALUES (287, 3946767, '1000'); INSERT INTO `integrantes_conceptos` VALUES (288, 3824167, '1000'); INSERT INTO `integrantes_conceptos` VALUES (289, 8470624, '1000'); INSERT INTO `integrantes_conceptos` VALUES (290, 6966895, '1000'); INSERT INTO `integrantes_conceptos` VALUES (291, 4650716, '1000'); INSERT INTO `integrantes_conceptos` VALUES (292, 6177583, '1000'); INSERT INTO `integrantes_conceptos` VALUES (293, 1882215, '1000'); INSERT INTO `integrantes_conceptos` VALUES (294, 12661621, '1000'); INSERT INTO `integrantes_conceptos` VALUES (295, 6122659, '1000'); INSERT INTO `integrantes_conceptos` VALUES (296, 4647928, '1000'); INSERT INTO `integrantes_conceptos` VALUES (297, 4651478, '1000'); INSERT INTO `integrantes_conceptos` VALUES (298, 5482954, '1000'); INSERT INTO `integrantes_conceptos` VALUES (299, 13023459, '1000'); INSERT INTO `integrantes_conceptos` VALUES (300, 8385744, '1000'); INSERT INTO `integrantes_conceptos` VALUES (301, 11855143, '1000'); INSERT INTO `integrantes_conceptos` VALUES (302, 8566093, '1000'); INSERT INTO `integrantes_conceptos` VALUES (303, 4422887, '1000'); INSERT INTO `integrantes_conceptos` VALUES (304, 5482594, '1000'); INSERT INTO `integrantes_conceptos` VALUES (305, 11536888, '1000'); INSERT INTO `integrantes_conceptos` VALUES (306, 4656784, '1000'); INSERT INTO `integrantes_conceptos` VALUES (307, 11142532, '1000'); INSERT INTO `integrantes_conceptos` VALUES (308, 11852605, '1000'); INSERT INTO `integrantes_conceptos` VALUES (309, 13729622, '1000'); INSERT INTO `integrantes_conceptos` VALUES (310, 4652451, '1000'); INSERT INTO `integrantes_conceptos` VALUES (311, 10214381, '1000'); INSERT INTO `integrantes_conceptos` VALUES (312, 4583844, '1000'); INSERT INTO `integrantes_conceptos` VALUES (313, 14055011, '1000'); INSERT INTO `integrantes_conceptos` VALUES (314, 5482007, '1000'); INSERT INTO `integrantes_conceptos` VALUES (315, 8390397, '1000'); INSERT INTO `integrantes_conceptos` VALUES (316, 3822286, '1000'); INSERT INTO `integrantes_conceptos` VALUES (317, 1320383, '1000'); INSERT INTO `integrantes_conceptos` VALUES (318, 2832725, '1000'); INSERT INTO `integrantes_conceptos` VALUES (319, 2826195, '1000'); INSERT INTO `integrantes_conceptos` VALUES (320, 4051700, '1000'); INSERT INTO `integrantes_conceptos` VALUES (321, 3488626, '1000'); INSERT INTO `integrantes_conceptos` VALUES (322, 3487152, '1000'); INSERT INTO `integrantes_conceptos` VALUES (323, 3489278, '1000'); INSERT INTO `integrantes_conceptos` VALUES (324, 5643691, '1000'); INSERT INTO `integrantes_conceptos` VALUES (325, 3488376, '1000'); INSERT INTO `integrantes_conceptos` VALUES (326, 879613, '1000'); INSERT INTO `integrantes_conceptos` VALUES (327, 3045299, '1000'); INSERT INTO `integrantes_conceptos` VALUES (328, 11143327, '1000'); INSERT INTO `integrantes_conceptos` VALUES (329, 5885859, '1000'); INSERT INTO `integrantes_conceptos` VALUES (330, 1748998, '1000'); INSERT INTO `integrantes_conceptos` VALUES (331, 7164093, '1000'); INSERT INTO `integrantes_conceptos` VALUES (332, 4656077, '1000'); INSERT INTO `integrantes_conceptos` VALUES (333, 2168112, '1000'); INSERT INTO `integrantes_conceptos` VALUES (334, 2166981, '1000'); INSERT INTO `integrantes_conceptos` VALUES (335, 11506606, '1000'); INSERT INTO `integrantes_conceptos` VALUES (336, 13668974, '1000'); INSERT INTO `integrantes_conceptos` VALUES (337, 14220083, '1000'); INSERT INTO `integrantes_conceptos` VALUES (338, 9425982, '1000'); INSERT INTO `integrantes_conceptos` VALUES (339, 12920483, '1000'); INSERT INTO `integrantes_conceptos` VALUES (340, 5972426, '1000'); INSERT INTO `integrantes_conceptos` VALUES (341, 9429622, '1000'); INSERT INTO `integrantes_conceptos` VALUES (342, 12223561, '1000'); INSERT INTO `integrantes_conceptos` VALUES (343, 15423652, '1000'); INSERT INTO `integrantes_conceptos` VALUES (344, 10519925, '1000'); INSERT INTO `integrantes_conceptos` VALUES (345, 13848164, '1000'); INSERT INTO `integrantes_conceptos` VALUES (346, 13190579, '1000'); INSERT INTO `integrantes_conceptos` VALUES (347, 13424082, '1000'); INSERT INTO `integrantes_conceptos` VALUES (348, 13848264, '1000'); INSERT INTO `integrantes_conceptos` VALUES (349, 14685167, '1000'); INSERT INTO `integrantes_conceptos` VALUES (350, 6727828, '1000'); INSERT INTO `integrantes_conceptos` VALUES (351, 14543612, '1000'); INSERT INTO `integrantes_conceptos` VALUES (352, 4983744, '1000'); INSERT INTO `integrantes_conceptos` VALUES (353, 2155158, '1000'); INSERT INTO `integrantes_conceptos` VALUES (354, 222222222, '1000'); INSERT INTO `integrantes_conceptos` VALUES (355, 13729622, '0008'); INSERT INTO `integrantes_conceptos` VALUES (462, 4051711, '0001'); INSERT INTO `integrantes_conceptos` VALUES (357, 4512285, '0008'); INSERT INTO `integrantes_conceptos` VALUES (701, 8470624, '0006'); INSERT INTO `integrantes_conceptos` VALUES (622, 3670594, '0007'); INSERT INTO `integrantes_conceptos` VALUES (360, 5477294, '0008'); INSERT INTO `integrantes_conceptos` VALUES (711, 9303416, '0002'); INSERT INTO `integrantes_conceptos` VALUES (362, 4654397, '0008'); INSERT INTO `integrantes_conceptos` VALUES (363, 11829028, '0008'); INSERT INTO `integrantes_conceptos` VALUES (364, 12222156, '0008'); INSERT INTO `integrantes_conceptos` VALUES (644, 4051711, '0002'); INSERT INTO `integrantes_conceptos` VALUES (366, 9308955, '0008'); INSERT INTO `integrantes_conceptos` VALUES (367, 5477905, '0008'); INSERT INTO `integrantes_conceptos` VALUES (633, 8442192, '0002'); INSERT INTO `integrantes_conceptos` VALUES (369, 8926627, '0008'); INSERT INTO `integrantes_conceptos` VALUES (370, 8388339, '0008'); INSERT INTO `integrantes_conceptos` VALUES (371, 8378076, '0008'); INSERT INTO `integrantes_conceptos` VALUES (615, 12224570, '0002'); INSERT INTO `integrantes_conceptos` VALUES (373, 8392072, '0008'); INSERT INTO `integrantes_conceptos` VALUES (663, 8381570, '0004'); INSERT INTO `integrantes_conceptos` VALUES (375, 13669573, '0008'); INSERT INTO `integrantes_conceptos` VALUES (376, 12225307, '0008'); INSERT INTO `integrantes_conceptos` VALUES (620, 5482703, '0010'); INSERT INTO `integrantes_conceptos` VALUES (639, 4018459, '0002'); INSERT INTO `integrantes_conceptos` VALUES (379, 8382049, '0008'); INSERT INTO `integrantes_conceptos` VALUES (380, 5473836, '0008'); INSERT INTO `integrantes_conceptos` VALUES (381, 4654821, '0008'); INSERT INTO `integrantes_conceptos` VALUES (382, 11144676, '0008'); INSERT INTO `integrantes_conceptos` VALUES (383, 6428161, '0008'); INSERT INTO `integrantes_conceptos` VALUES (384, 8396643, '0008'); INSERT INTO `integrantes_conceptos` VALUES (385, 11142484, '0008'); INSERT INTO `integrantes_conceptos` VALUES (386, 5476102, '0008'); INSERT INTO `integrantes_conceptos` VALUES (387, 12506912, '0008'); INSERT INTO `integrantes_conceptos` VALUES (585, 8392561, '0009'); INSERT INTO `integrantes_conceptos` VALUES (659, 8381570, '0001'); INSERT INTO `integrantes_conceptos` VALUES (687, 5589301, '0002'); INSERT INTO `integrantes_conceptos` VALUES (391, 8398597, '0008'); INSERT INTO `integrantes_conceptos` VALUES (392, 12669638, '0008'); INSERT INTO `integrantes_conceptos` VALUES (393, 5721970, '0008'); INSERT INTO `integrantes_conceptos` VALUES (592, 13541356, '0007'); INSERT INTO `integrantes_conceptos` VALUES (395, 4647270, '0008'); INSERT INTO `integrantes_conceptos` VALUES (396, 3946767, '0008'); INSERT INTO `integrantes_conceptos` VALUES (397, 8470624, '0008'); INSERT INTO `integrantes_conceptos` VALUES (398, 6966895, '0008'); INSERT INTO `integrantes_conceptos` VALUES (399, 4650716, '0008'); INSERT INTO `integrantes_conceptos` VALUES (400, 6177583, '0008'); INSERT INTO `integrantes_conceptos` VALUES (401, 12661621, '0008'); INSERT INTO `integrantes_conceptos` VALUES (402, 6122659, '0008'); INSERT INTO `integrantes_conceptos` VALUES (403, 4647928, '0008'); INSERT INTO `integrantes_conceptos` VALUES (404, 4651478, '0008'); INSERT INTO `integrantes_conceptos` VALUES (405, 5482954, '0008'); INSERT INTO `integrantes_conceptos` VALUES (406, 13023459, '0008'); INSERT INTO `integrantes_conceptos` VALUES (407, 8385744, '0008'); INSERT INTO `integrantes_conceptos` VALUES (408, 11855143, '0008'); INSERT INTO `integrantes_conceptos` VALUES (409, 8566093, '0008'); INSERT INTO `integrantes_conceptos` VALUES (410, 5482594, '0008'); INSERT INTO `integrantes_conceptos` VALUES (411, 11536888, '0008'); INSERT INTO `integrantes_conceptos` VALUES (412, 4656784, '0008'); INSERT INTO `integrantes_conceptos` VALUES (413, 11142532, '0008'); INSERT INTO `integrantes_conceptos` VALUES (414, 11852605, '0008'); INSERT INTO `integrantes_conceptos` VALUES (415, 4652451, '0008'); INSERT INTO `integrantes_conceptos` VALUES (416, 14055011, '0008'); INSERT INTO `integrantes_conceptos` VALUES (417, 5482007, '0008'); INSERT INTO `integrantes_conceptos` VALUES (418, 8390397, '0008'); INSERT INTO `integrantes_conceptos` VALUES (419, 4051700, '0008'); INSERT INTO `integrantes_conceptos` VALUES (420, 5643691, '0008'); INSERT INTO `integrantes_conceptos` VALUES (421, 7164093, '0008'); INSERT INTO `integrantes_conceptos` VALUES (422, 4656077, '0008'); INSERT INTO `integrantes_conceptos` VALUES (423, 11506606, '0008'); INSERT INTO `integrantes_conceptos` VALUES (424, 13668974, '0008'); INSERT INTO `integrantes_conceptos` VALUES (425, 9425982, '0008'); INSERT INTO `integrantes_conceptos` VALUES (426, 12920483, '0008'); INSERT INTO `integrantes_conceptos` VALUES (427, 5972426, '0008'); INSERT INTO `integrantes_conceptos` VALUES (428, 9429622, '0008'); INSERT INTO `integrantes_conceptos` VALUES (429, 12223561, '0008'); INSERT INTO `integrantes_conceptos` VALUES (430, 15423652, '0008'); INSERT INTO `integrantes_conceptos` VALUES (431, 10519925, '0008'); INSERT INTO `integrantes_conceptos` VALUES (432, 13190579, '0008'); INSERT INTO `integrantes_conceptos` VALUES (433, 13424082, '0008'); INSERT INTO `integrantes_conceptos` VALUES (434, 14685167, '0008'); INSERT INTO `integrantes_conceptos` VALUES (435, 6727828, '0008'); INSERT INTO `integrantes_conceptos` VALUES (436, 14543612, '0008'); INSERT INTO `integrantes_conceptos` VALUES (437, 4983744, '0008'); INSERT INTO `integrantes_conceptos` VALUES (438, 6122659, '0009'); INSERT INTO `integrantes_conceptos` VALUES (439, 13023459, '0010'); INSERT INTO `integrantes_conceptos` VALUES (700, 8385761, '0006'); INSERT INTO `integrantes_conceptos` VALUES (441, 5482594, '0010'); INSERT INTO `integrantes_conceptos` VALUES (699, 8385761, '0004'); INSERT INTO `integrantes_conceptos` VALUES (443, 4650716, '0001'); INSERT INTO `integrantes_conceptos` VALUES (444, 4650716, '0012'); INSERT INTO `integrantes_conceptos` VALUES (445, 4650716, '0013'); INSERT INTO `integrantes_conceptos` VALUES (446, 4650716, '0010'); INSERT INTO `integrantes_conceptos` VALUES (447, 6966895, '0010'); INSERT INTO `integrantes_conceptos` VALUES (702, 8470624, '0001'); INSERT INTO `integrantes_conceptos` VALUES (458, 4650716, '0014'); INSERT INTO `integrantes_conceptos` VALUES (463, 3946767, '0010'); INSERT INTO `integrantes_conceptos` VALUES (698, 8385761, '0002'); INSERT INTO `integrantes_conceptos` VALUES (697, 8385761, '0001'); INSERT INTO `integrantes_conceptos` VALUES (696, 8385761, '0007'); INSERT INTO `integrantes_conceptos` VALUES (695, 5477294, '0010'); INSERT INTO `integrantes_conceptos` VALUES (694, 5477294, '0007'); INSERT INTO `integrantes_conceptos` VALUES (693, 5477294, '0006'); INSERT INTO `integrantes_conceptos` VALUES (692, 5477294, '0001'); INSERT INTO `integrantes_conceptos` VALUES (691, 5589301, '0007'); INSERT INTO `integrantes_conceptos` VALUES (690, 5589301, '0001'); INSERT INTO `integrantes_conceptos` VALUES (689, 5589301, '0006'); INSERT INTO `integrantes_conceptos` VALUES (688, 5589301, '0004'); INSERT INTO `integrantes_conceptos` VALUES (686, 11852605, '0006'); INSERT INTO `integrantes_conceptos` VALUES (685, 11852605, '0007'); INSERT INTO `integrantes_conceptos` VALUES (684, 11852605, '0004'); INSERT INTO `integrantes_conceptos` VALUES (683, 11852605, '0002'); INSERT INTO `integrantes_conceptos` VALUES (682, 11852605, '0001'); INSERT INTO `integrantes_conceptos` VALUES (681, 12661621, '0004'); INSERT INTO `integrantes_conceptos` VALUES (680, 12661621, '0006'); INSERT INTO `integrantes_conceptos` VALUES (679, 12661621, '0002'); INSERT INTO `integrantes_conceptos` VALUES (678, 12661621, '0001'); INSERT INTO `integrantes_conceptos` VALUES (677, 12661621, '0007'); INSERT INTO `integrantes_conceptos` VALUES (676, 3826253, '1000'); INSERT INTO `integrantes_conceptos` VALUES (675, 3826253, '0003'); INSERT INTO `integrantes_conceptos` VALUES (674, 3826253, '0006'); INSERT INTO `integrantes_conceptos` VALUES (673, 3826253, '0004'); INSERT INTO `integrantes_conceptos` VALUES (671, 4983744, '0006'); INSERT INTO `integrantes_conceptos` VALUES (672, 3826253, '0005'); INSERT INTO `integrantes_conceptos` VALUES (669, 4983744, '0002'); INSERT INTO `integrantes_conceptos` VALUES (668, 4983744, '0004'); INSERT INTO `integrantes_conceptos` VALUES (667, 5972426, '0006'); INSERT INTO `integrantes_conceptos` VALUES (666, 5972426, '0004'); INSERT INTO `integrantes_conceptos` VALUES (665, 5972426, '0001'); INSERT INTO `integrantes_conceptos` VALUES (664, 5972426, '0002'); INSERT INTO `integrantes_conceptos` VALUES (662, 8381570, '0006'); INSERT INTO `integrantes_conceptos` VALUES (661, 8381570, '0007'); INSERT INTO `integrantes_conceptos` VALUES (660, 8381570, '0002'); INSERT INTO `integrantes_conceptos` VALUES (658, 4271638, '0104'); INSERT INTO `integrantes_conceptos` VALUES (657, 4271638, '0006'); INSERT INTO `integrantes_conceptos` VALUES (577, 6122659, '0010'); INSERT INTO `integrantes_conceptos` VALUES (576, 6177583, '0004'); INSERT INTO `integrantes_conceptos` VALUES (656, 4271638, '0007'); INSERT INTO `integrantes_conceptos` VALUES (655, 4271638, '0004'); INSERT INTO `integrantes_conceptos` VALUES (654, 4271638, '0002'); INSERT INTO `integrantes_conceptos` VALUES (653, 4271638, '0001'); INSERT INTO `integrantes_conceptos` VALUES (652, 12225307, '0006'); INSERT INTO `integrantes_conceptos` VALUES (651, 12225307, '0007'); INSERT INTO `integrantes_conceptos` VALUES (650, 12225307, '0004'); INSERT INTO `integrantes_conceptos` VALUES (649, 12225307, '0002'); INSERT INTO `integrantes_conceptos` VALUES (648, 12225307, '0001'); INSERT INTO `integrantes_conceptos` VALUES (579, 9429622, '0010'); INSERT INTO `integrantes_conceptos` VALUES (647, 4051711, '0004'); INSERT INTO `integrantes_conceptos` VALUES (646, 4051711, '0006'); INSERT INTO `integrantes_conceptos` VALUES (645, 4051711, '0007'); INSERT INTO `integrantes_conceptos` VALUES (643, 4018459, '0004'); INSERT INTO `integrantes_conceptos` VALUES (642, 4018459, '0006'); INSERT INTO `integrantes_conceptos` VALUES (641, 4018459, '0007'); INSERT INTO `integrantes_conceptos` VALUES (640, 4018459, '0001'); INSERT INTO `integrantes_conceptos` VALUES (638, 4649004, '0006'); INSERT INTO `integrantes_conceptos` VALUES (637, 4649004, '0004'); INSERT INTO `integrantes_conceptos` VALUES (636, 4649004, '0007'); INSERT INTO `integrantes_conceptos` VALUES (635, 4649004, '0001'); INSERT INTO `integrantes_conceptos` VALUES (634, 4649004, '0002'); INSERT INTO `integrantes_conceptos` VALUES (632, 8442192, '0004'); INSERT INTO `integrantes_conceptos` VALUES (631, 8442192, '0006'); INSERT INTO `integrantes_conceptos` VALUES (630, 8442192, '0001'); INSERT INTO `integrantes_conceptos` VALUES (629, 8442192, '0007'); INSERT INTO `integrantes_conceptos` VALUES (628, 3670594, '0010'); INSERT INTO `integrantes_conceptos` VALUES (627, 3670594, '0002'); INSERT INTO `integrantes_conceptos` VALUES (626, 3670594, '0104'); INSERT INTO `integrantes_conceptos` VALUES (625, 3670594, '0004'); INSERT INTO `integrantes_conceptos` VALUES (624, 3670594, '0001'); INSERT INTO `integrantes_conceptos` VALUES (623, 3670594, '0006'); INSERT INTO `integrantes_conceptos` VALUES (621, 5482703, '0004'); INSERT INTO `integrantes_conceptos` VALUES (619, 5482703, '0006'); INSERT INTO `integrantes_conceptos` VALUES (618, 5482703, '0002'); INSERT INTO `integrantes_conceptos` VALUES (617, 5482703, '0007'); INSERT INTO `integrantes_conceptos` VALUES (616, 5482703, '0001'); INSERT INTO `integrantes_conceptos` VALUES (614, 12224570, '0007'); INSERT INTO `integrantes_conceptos` VALUES (613, 12224570, '0006'); INSERT INTO `integrantes_conceptos` VALUES (612, 12224570, '0004'); INSERT INTO `integrantes_conceptos` VALUES (611, 12224570, '0001'); INSERT INTO `integrantes_conceptos` VALUES (610, 12222156, '0007'); INSERT INTO `integrantes_conceptos` VALUES (609, 12222156, '0004'); INSERT INTO `integrantes_conceptos` VALUES (608, 12222156, '0006'); INSERT INTO `integrantes_conceptos` VALUES (607, 12222156, '0001'); INSERT INTO `integrantes_conceptos` VALUES (606, 12223561, '0001'); INSERT INTO `integrantes_conceptos` VALUES (605, 12223561, '0004'); INSERT INTO `integrantes_conceptos` VALUES (604, 12223561, '0006'); INSERT INTO `integrantes_conceptos` VALUES (603, 12223561, '0002'); INSERT INTO `integrantes_conceptos` VALUES (602, 9425982, '0002'); INSERT INTO `integrantes_conceptos` VALUES (601, 9425982, '0004'); INSERT INTO `integrantes_conceptos` VALUES (600, 9425982, '0006'); INSERT INTO `integrantes_conceptos` VALUES (599, 9425982, '0001'); INSERT INTO `integrantes_conceptos` VALUES (598, 13541356, '0104'); INSERT INTO `integrantes_conceptos` VALUES (597, 13541356, '0009'); INSERT INTO `integrantes_conceptos` VALUES (596, 13541356, '0001'); INSERT INTO `integrantes_conceptos` VALUES (595, 13541356, '0004'); INSERT INTO `integrantes_conceptos` VALUES (594, 13541356, '0006'); INSERT INTO `integrantes_conceptos` VALUES (593, 13541356, '0002'); INSERT INTO `integrantes_conceptos` VALUES (591, 8392561, '0002'); INSERT INTO `integrantes_conceptos` VALUES (590, 8392561, '0004'); INSERT INTO `integrantes_conceptos` VALUES (589, 8392561, '0007'); INSERT INTO `integrantes_conceptos` VALUES (588, 8392561, '0006'); INSERT INTO `integrantes_conceptos` VALUES (587, 8392561, '0001'); INSERT INTO `integrantes_conceptos` VALUES (586, 8392561, '0104'); INSERT INTO `integrantes_conceptos` VALUES (584, 8396643, '0002'); INSERT INTO `integrantes_conceptos` VALUES (583, 8396643, '0006'); INSERT INTO `integrantes_conceptos` VALUES (582, 8396643, '0004'); INSERT INTO `integrantes_conceptos` VALUES (581, 8396643, '0104'); INSERT INTO `integrantes_conceptos` VALUES (580, 8396643, '0001'); INSERT INTO `integrantes_conceptos` VALUES (703, 8470624, '0007'); INSERT INTO `integrantes_conceptos` VALUES (704, 8566093, '0001'); INSERT INTO `integrantes_conceptos` VALUES (705, 8566093, '0002'); INSERT INTO `integrantes_conceptos` VALUES (706, 8566093, '0007'); INSERT INTO `integrantes_conceptos` VALUES (708, 8566093, '0014'); INSERT INTO `integrantes_conceptos` VALUES (709, 8566093, '0009'); INSERT INTO `integrantes_conceptos` VALUES (710, 8566093, '0004'); INSERT INTO `integrantes_conceptos` VALUES (712, 9303416, '0001'); INSERT INTO `integrantes_conceptos` VALUES (713, 9303416, '0004'); INSERT INTO `integrantes_conceptos` VALUES (714, 9303416, '0006'); INSERT INTO `integrantes_conceptos` VALUES (715, 9303416, '0007'); INSERT INTO `integrantes_conceptos` VALUES (716, 9303416, '0008'); INSERT INTO `integrantes_conceptos` VALUES (717, 4652451, '0006'); INSERT INTO `integrantes_conceptos` VALUES (718, 13424082, '0006'); INSERT INTO `integrantes_conceptos` VALUES (719, 15423652, '0006'); INSERT INTO `integrantes_conceptos` VALUES (720, 14685167, '0006'); INSERT INTO `integrantes_conceptos` VALUES (721, 14543612, '0006'); INSERT INTO `integrantes_conceptos` VALUES (722, 13190579, '0006'); INSERT INTO `integrantes_conceptos` VALUES (723, 12669638, '0006'); INSERT INTO `integrantes_conceptos` VALUES (724, 11855143, '0006'); INSERT INTO `integrantes_conceptos` VALUES (725, 12920483, '0006'); INSERT INTO `integrantes_conceptos` VALUES (726, 11144676, '0006'); INSERT INTO `integrantes_conceptos` VALUES (727, 11142484, '0006'); INSERT INTO `integrantes_conceptos` VALUES (728, 11506606, '0006'); INSERT INTO `integrantes_conceptos` VALUES (729, 9308955, '0006'); INSERT INTO `integrantes_conceptos` VALUES (730, 12506912, '0006'); INSERT INTO `integrantes_conceptos` VALUES (731, 8926627, '0006'); INSERT INTO `integrantes_conceptos` VALUES (732, 8398597, '0006'); INSERT INTO `integrantes_conceptos` VALUES (733, 5643691, '0006'); INSERT INTO `integrantes_conceptos` VALUES (734, 8378076, '0006'); INSERT INTO `integrantes_conceptos` VALUES (735, 8388339, '0006'); INSERT INTO `integrantes_conceptos` VALUES (736, 6727828, '0006'); INSERT INTO `integrantes_conceptos` VALUES (737, 13424082, '0004'); INSERT INTO `integrantes_conceptos` VALUES (738, 13424082, '0001'); INSERT INTO `integrantes_conceptos` VALUES (739, 8392072, '0006'); INSERT INTO `integrantes_conceptos` VALUES (740, 11142532, '0006'); INSERT INTO `integrantes_conceptos` VALUES (741, 6428161, '0006'); INSERT INTO `integrantes_conceptos` VALUES (742, 5721970, '0006'); INSERT INTO `integrantes_conceptos` VALUES (743, 4651478, '0006'); INSERT INTO `integrantes_conceptos` VALUES (744, 4512285, '0006'); INSERT INTO `integrantes_conceptos` VALUES (745, 4647928, '0006'); INSERT INTO `integrantes_conceptos` VALUES (746, 5482954, '0006'); INSERT INTO `integrantes_conceptos` VALUES (747, 5477905, '0006'); INSERT INTO `integrantes_conceptos` VALUES (748, 5476102, '0006'); INSERT INTO `integrantes_conceptos` VALUES (749, 5473836, '0006'); INSERT INTO `integrantes_conceptos` VALUES (750, 13668974, '0006'); INSERT INTO `integrantes_conceptos` VALUES (751, 4654397, '0006'); -- -------------------------------------------------------- -- -- Estructura de tabla para la tabla `integrantes_constantes` -- CREATE TABLE `integrantes_constantes` ( `id` int(11) NOT NULL auto_increment, `cedula` int(10) unsigned NOT NULL default '0' COMMENT 'cedula', `cod_constantes` varchar(4) NOT NULL default '' COMMENT 'codigo de la constante asignada', `monto` decimal(10,2) NOT NULL, PRIMARY KEY (`id`), UNIQUE KEY `cedula` (`cedula`,`cod_constantes`) ) ENGINE=MyISAM DEFAULT CHARSET=latin1 AUTO_INCREMENT=380 ; -- -- Volcar la base de datos para la tabla `integrantes_constantes` -- INSERT INTO `integrantes_constantes` VALUES (45, 8926627, '1021', 855.97); INSERT INTO `integrantes_constantes` VALUES (41, 4018459, '1021', 673.58); INSERT INTO `integrantes_constantes` VALUES (43, 5477905, '1021', 645.98); INSERT INTO `integrantes_constantes` VALUES (44, 8442192, '1021', 830.23); INSERT INTO `integrantes_constantes` VALUES (42, 9308955, '1021', 1484.28); INSERT INTO `integrantes_constantes` VALUES (32, 4051711, '1021', 847.73); INSERT INTO `integrantes_constantes` VALUES (33, 4512285, '1021', 935.47); INSERT INTO `integrantes_constantes` VALUES (34, 8385761, '1021', 1078.63); INSERT INTO `integrantes_constantes` VALUES (35, 3670594, '1021', 922.57); INSERT INTO `integrantes_constantes` VALUES (36, 5477294, '1021', 1724.91); INSERT INTO `integrantes_constantes` VALUES (37, 9303416, '1021', 1027.80); INSERT INTO `integrantes_constantes` VALUES (38, 4654397, '1021', 1236.40); INSERT INTO `integrantes_constantes` VALUES (39, 11829028, '1021', 635.95); INSERT INTO `integrantes_constantes` VALUES (40, 12222156, '1021', 1027.80); INSERT INTO `integrantes_constantes` VALUES (46, 8388339, '1021', 1027.80); INSERT INTO `integrantes_constantes` VALUES (47, 8378076, '1021', 1489.21); INSERT INTO `integrantes_constantes` VALUES (48, 12224570, '1021', 766.82); INSERT INTO `integrantes_constantes` VALUES (49, 8392072, '1021', 672.90); INSERT INTO `integrantes_constantes` VALUES (50, 8381570, '1021', 680.19); INSERT INTO `integrantes_constantes` VALUES (51, 13669573, '1021', 1236.40); INSERT INTO `integrantes_constantes` VALUES (52, 12225307, '1021', 674.17); INSERT INTO `integrantes_constantes` VALUES (53, 5482703, '1021', 1087.40); INSERT INTO `integrantes_constantes` VALUES (54, 4649004, '1021', 651.85); INSERT INTO `integrantes_constantes` VALUES (55, 5473836, '1021', 742.95); INSERT INTO `integrantes_constantes` VALUES (56, 11144676, '1021', 1362.90); INSERT INTO `integrantes_constantes` VALUES (57, 6428161, '1021', 696.09); INSERT INTO `integrantes_constantes` VALUES (58, 8396643, '1021', 1548.06); INSERT INTO `integrantes_constantes` VALUES (59, 11142484, '1021', 889.69); INSERT INTO `integrantes_constantes` VALUES (60, 5476102, '1021', 1027.80); INSERT INTO `integrantes_constantes` VALUES (61, 12506912, '1021', 796.32); INSERT INTO `integrantes_constantes` VALUES (62, 8392561, '1021', 969.28); INSERT INTO `integrantes_constantes` VALUES (63, 4271638, '1021', 991.98); INSERT INTO `integrantes_constantes` VALUES (64, 5589301, '1021', 742.22); INSERT INTO `integrantes_constantes` VALUES (65, 8398597, '1021', 830.23); INSERT INTO `integrantes_constantes` VALUES (66, 12669638, '1021', 748.85); INSERT INTO `integrantes_constantes` VALUES (67, 5721970, '1021', 1359.69); INSERT INTO `integrantes_constantes` VALUES (68, 13541356, '1021', 921.25); INSERT INTO `integrantes_constantes` VALUES (69, 3946767, '1021', 3570.10); INSERT INTO `integrantes_constantes` VALUES (70, 8470624, '1021', 2552.33); INSERT INTO `integrantes_constantes` VALUES (71, 6966895, '1021', 4631.04); INSERT INTO `integrantes_constantes` VALUES (72, 4650716, '1021', 5947.90); INSERT INTO `integrantes_constantes` VALUES (73, 6177583, '1021', 4462.62); INSERT INTO `integrantes_constantes` VALUES (74, 12661621, '1021', 1814.21); INSERT INTO `integrantes_constantes` VALUES (75, 6122659, '1021', 5008.92); INSERT INTO `integrantes_constantes` VALUES (76, 4647928, '1021', 1606.97); INSERT INTO `integrantes_constantes` VALUES (77, 4651478, '1021', 1713.03); INSERT INTO `integrantes_constantes` VALUES (78, 5482954, '1021', 1861.54); INSERT INTO `integrantes_constantes` VALUES (79, 13023459, '1021', 4631.04); INSERT INTO `integrantes_constantes` VALUES (80, 8385744, '1021', 2402.12); INSERT INTO `integrantes_constantes` VALUES (81, 11855143, '1021', 1348.81); INSERT INTO `integrantes_constantes` VALUES (82, 8566093, '1021', 2855.35); INSERT INTO `integrantes_constantes` VALUES (83, 5482594, '1021', 4826.76); INSERT INTO `integrantes_constantes` VALUES (84, 11536888, '1021', 2619.49); INSERT INTO `integrantes_constantes` VALUES (85, 11142532, '1021', 1281.39); INSERT INTO `integrantes_constantes` VALUES (86, 11852605, '1021', 1826.54); INSERT INTO `integrantes_constantes` VALUES (87, 4652451, '1021', 1592.75); INSERT INTO `integrantes_constantes` VALUES (88, 14055011, '1021', 2597.11); INSERT INTO `integrantes_constantes` VALUES (89, 5482007, '1021', 2073.24); INSERT INTO `integrantes_constantes` VALUES (90, 8390397, '1021', 1446.96); INSERT INTO `integrantes_constantes` VALUES (91, 5643691, '1021', 1562.90); INSERT INTO `integrantes_constantes` VALUES (92, 11506606, '1021', 2022.66); INSERT INTO `integrantes_constantes` VALUES (93, 9425982, '1021', 2390.80); INSERT INTO `integrantes_constantes` VALUES (94, 12920483, '1021', 1576.98); INSERT INTO `integrantes_constantes` VALUES (95, 5972426, '1021', 2529.94); INSERT INTO `integrantes_constantes` VALUES (96, 9429622, '1021', 4816.28); INSERT INTO `integrantes_constantes` VALUES (97, 12223561, '1021', 1215.98); INSERT INTO `integrantes_constantes` VALUES (98, 15423652, '1021', 1261.58); INSERT INTO `integrantes_constantes` VALUES (99, 10519925, '1021', 1446.96); INSERT INTO `integrantes_constantes` VALUES (100, 13190579, '1021', 1236.40); INSERT INTO `integrantes_constantes` VALUES (101, 13424082, '1021', 1236.40); INSERT INTO `integrantes_constantes` VALUES (102, 14685167, '1021', 1236.40); INSERT INTO `integrantes_constantes` VALUES (103, 14543612, '1021', 1236.40); INSERT INTO `integrantes_constantes` VALUES (104, 6727828, '1021', 1434.16); INSERT INTO `integrantes_constantes` VALUES (105, 4983744, '1021', 1236.40); INSERT INTO `integrantes_constantes` VALUES (107, 6966895, '0005', 120.00); INSERT INTO `integrantes_constantes` VALUES (108, 6966895, '0003', 133.14); INSERT INTO `integrantes_constantes` VALUES (334, 8392561, '0007', 350.00); INSERT INTO `integrantes_constantes` VALUES (183, 6177583, '9000', 1.17); INSERT INTO `integrantes_constantes` VALUES (184, 8566093, '9000', 1.44); INSERT INTO `integrantes_constantes` VALUES (182, 6122659, '9000', 3.86); INSERT INTO `integrantes_constantes` VALUES (180, 4650716, '9000', 6.55); INSERT INTO `integrantes_constantes` VALUES (179, 3946767, '9000', 1.67); INSERT INTO `integrantes_constantes` VALUES (178, 6966895, '9000', 3.68); INSERT INTO `integrantes_constantes` VALUES (181, 5482594, '9000', 3.63); INSERT INTO `integrantes_constantes` VALUES (177, 9429622, '9000', 1.20); INSERT INTO `integrantes_constantes` VALUES (176, 11536888, '9000', 1.73); INSERT INTO `integrantes_constantes` VALUES (175, 13023459, '9000', 3.29); INSERT INTO `integrantes_constantes` VALUES (174, 13729622, '9000', 4.71); INSERT INTO `integrantes_constantes` VALUES (194, 5605331, '1021', 4546.82); INSERT INTO `integrantes_constantes` VALUES (173, 5605331, '1002', 348.74); INSERT INTO `integrantes_constantes` VALUES (172, 5605331, '0005', 120.00); INSERT INTO `integrantes_constantes` VALUES (329, 9429622, '0003', 651.40); INSERT INTO `integrantes_constantes` VALUES (196, 13729622, '1002', 769.48); INSERT INTO `integrantes_constantes` VALUES (185, 8385744, '9000', 0.95); INSERT INTO `integrantes_constantes` VALUES (186, 5605331, '9000', 3.19); INSERT INTO `integrantes_constantes` VALUES (187, 6122659, '1002', 847.08); INSERT INTO `integrantes_constantes` VALUES (188, 6122659, '0007', 200.00); INSERT INTO `integrantes_constantes` VALUES (189, 6122659, '0005', 100.00); INSERT INTO `integrantes_constantes` VALUES (190, 13023459, '0005', 100.00); INSERT INTO `integrantes_constantes` VALUES (191, 13023459, '1002', 911.16); INSERT INTO `integrantes_constantes` VALUES (192, 4650716, '0005', 120.00); INSERT INTO `integrantes_constantes` VALUES (328, 6122659, '0003', 133.14); INSERT INTO `integrantes_constantes` VALUES (197, 6966895, '1002', 696.21); INSERT INTO `integrantes_constantes` VALUES (198, 5482594, '1002', 811.28); INSERT INTO `integrantes_constantes` VALUES (199, 13023459, '0003', 133.14); INSERT INTO `integrantes_constantes` VALUES (200, 13023459, '0017', 12.82); INSERT INTO `integrantes_constantes` VALUES (201, 4650716, '0006', 250.00); INSERT INTO `integrantes_constantes` VALUES (202, 4650716, '0008', 350.00); INSERT INTO `integrantes_constantes` VALUES (203, 4650716, '0003', 196.14); INSERT INTO `integrantes_constantes` VALUES (204, 6966895, '0017', 12.82); INSERT INTO `integrantes_constantes` VALUES (205, 13729622, '0005', 100.00); INSERT INTO `integrantes_constantes` VALUES (206, 13729622, '1021', 5008.92); INSERT INTO `integrantes_constantes` VALUES (207, 6177583, '0005', 100.00); INSERT INTO `integrantes_constantes` VALUES (208, 5482594, '0005', 100.00); INSERT INTO `integrantes_constantes` VALUES (209, 5482594, '0003', 196.14); INSERT INTO `integrantes_constantes` VALUES (210, 5482594, '0017', 229.07); INSERT INTO `integrantes_constantes` VALUES (211, 9429622, '0005', 100.00); INSERT INTO `integrantes_constantes` VALUES (212, 3946767, '0003', 97.06); INSERT INTO `integrantes_constantes` VALUES (213, 3946767, '0005', 100.00); INSERT INTO `integrantes_constantes` VALUES (214, 3946767, '1002', 259.86); INSERT INTO `integrantes_constantes` VALUES (333, 8396643, '1002', 207.32); INSERT INTO `integrantes_constantes` VALUES (379, 13424082, '0005', 100.00); INSERT INTO `integrantes_constantes` VALUES (378, 9303416, '0005', 75.00); INSERT INTO `integrantes_constantes` VALUES (377, 9303416, '1002', 226.76); INSERT INTO `integrantes_constantes` VALUES (376, 8566093, '1002', 358.42); INSERT INTO `integrantes_constantes` VALUES (375, 8566093, '0007', 270.00); INSERT INTO `integrantes_constantes` VALUES (374, 8566093, '0005', 100.00); INSERT INTO `integrantes_constantes` VALUES (373, 8470624, '0005', 100.00); INSERT INTO `integrantes_constantes` VALUES (372, 8385761, '1002', 431.60); INSERT INTO `integrantes_constantes` VALUES (371, 5477294, '0003', 196.14); INSERT INTO `integrantes_constantes` VALUES (370, 5477294, '0005', 100.00); INSERT INTO `integrantes_constantes` VALUES (369, 5589301, '1002', 51.92); INSERT INTO `integrantes_constantes` VALUES (367, 11852605, '1002', 624.08); INSERT INTO `integrantes_constantes` VALUES (366, 11852605, '0005', 100.00); INSERT INTO `integrantes_constantes` VALUES (365, 12661621, '1002', 45.46); INSERT INTO `integrantes_constantes` VALUES (364, 12661621, '0005', 100.00); INSERT INTO `integrantes_constantes` VALUES (363, 3826253, '1021', 700.00); INSERT INTO `integrantes_constantes` VALUES (362, 4983744, '0005', 100.00); INSERT INTO `integrantes_constantes` VALUES (361, 4983744, '1002', 180.56); INSERT INTO `integrantes_constantes` VALUES (360, 5972426, '1002', 586.96); INSERT INTO `integrantes_constantes` VALUES (359, 5972426, '0005', 100.00); INSERT INTO `integrantes_constantes` VALUES (358, 8381570, '1002', 269.18); INSERT INTO `integrantes_constantes` VALUES (357, 4271638, '0004', 200.00); INSERT INTO `integrantes_constantes` VALUES (356, 4271638, '1002', 176.68); INSERT INTO `integrantes_constantes` VALUES (355, 12225307, '1002', 183.88); INSERT INTO `integrantes_constantes` VALUES (354, 4051711, '1002', 41.68); INSERT INTO `integrantes_constantes` VALUES (353, 4018459, '1002', 28.40); INSERT INTO `integrantes_constantes` VALUES (352, 4649004, '1002', 169.38); INSERT INTO `integrantes_constantes` VALUES (351, 8442192, '1002', 255.14); INSERT INTO `integrantes_constantes` VALUES (350, 3670594, '0004', 100.00); INSERT INTO `integrantes_constantes` VALUES (349, 3670594, '0003', 97.06); INSERT INTO `integrantes_constantes` VALUES (348, 3670594, '1002', 78.90); INSERT INTO `integrantes_constantes` VALUES (347, 5482703, '0003', 97.06); INSERT INTO `integrantes_constantes` VALUES (346, 5482703, '1002', 162.00); INSERT INTO `integrantes_constantes` VALUES (345, 12224570, '1002', 223.20); INSERT INTO `integrantes_constantes` VALUES (344, 12222156, '0005', 75.00); INSERT INTO `integrantes_constantes` VALUES (343, 12223561, '1002', 259.32); INSERT INTO `integrantes_constantes` VALUES (342, 12223561, '0005', 75.00); INSERT INTO `integrantes_constantes` VALUES (341, 9425982, '0005', 100.00); INSERT INTO `integrantes_constantes` VALUES (340, 9425982, '1002', 404.12); INSERT INTO `integrantes_constantes` VALUES (339, 13541356, '0004', 150.00); INSERT INTO `integrantes_constantes` VALUES (338, 13541356, '0007', 150.00); INSERT INTO `integrantes_constantes` VALUES (337, 13541356, '1002', 171.78); INSERT INTO `integrantes_constantes` VALUES (336, 8392561, '1002', 277.22); INSERT INTO `integrantes_constantes` VALUES (335, 8392561, '0004', 350.00); INSERT INTO `integrantes_constantes` VALUES (332, 8396643, '0004', 250.00); INSERT INTO `integrantes_constantes` VALUES (331, 8396643, '0005', 75.00); INSERT INTO `integrantes_constantes` VALUES (330, 9429622, '0017', 554.08); -- -------------------------------------------------------- -- -- Estructura de tabla para la tabla `integrantes_direcciones` -- CREATE TABLE `integrantes_direcciones` ( `id` int(11) NOT NULL auto_increment, `cedula` int(11) NOT NULL, `cod_direccion` varchar(10) NOT NULL, `fecha_vigencia` date NOT NULL, PRIMARY KEY (`id`) ) ENGINE=MyISAM DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ; -- -- Volcar la base de datos para la tabla `integrantes_direcciones` -- -- -------------------------------------------------------- -- -- Estructura de tabla para la tabla `nivel` -- CREATE TABLE `nivel` ( `id` int(11) NOT NULL auto_increment, `nombre` varchar(30) NOT NULL, `codigo` varchar(2) NOT NULL, PRIMARY KEY (`id`), UNIQUE KEY `nombre` (`nombre`) ) ENGINE=MyISAM DEFAULT CHARSET=utf8 AUTO_INCREMENT=6 ; -- -- Volcar la base de datos para la tabla `nivel` -- INSERT INTO `nivel` VALUES (1, 'DIRECTOR', '70'); INSERT INTO `nivel` VALUES (2, 'COORDINADOR', '50'); INSERT INTO `nivel` VALUES (3, 'FUNCIONARIO', '30'); INSERT INTO `nivel` VALUES (4, 'PASANTE', '10'); INSERT INTO `nivel` VALUES (5, 'CONTRALOR', '90'); -- -------------------------------------------------------- -- -- Estructura de tabla para la tabla `nomina` -- CREATE TABLE `nomina` ( `cod` varchar(5) NOT NULL default '' COMMENT 'codigo de la nomina', `cedula` int(10) unsigned NOT NULL default '0', `cod_incidencia` varchar(4) NOT NULL COMMENT 'codigo de la incidencia (constante o concepto)', `descripcion` varchar(50) NOT NULL, `monto_incidencia` decimal(10,2) NOT NULL COMMENT 'monto', `tipo` varchar(10) NOT NULL, `id` int(11) NOT NULL auto_increment, `tipo_nomina` varchar(20) default NULL, PRIMARY KEY (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=latin1 AUTO_INCREMENT=129 ; -- -- Volcar la base de datos para la tabla `nomina` -- INSERT INTO `nomina` VALUES ('0006', 3946767, '0001', 'Bono de Antiguedad', 40.00, 'CREDITO', 1, 'DIRECTORES'); INSERT INTO `nomina` VALUES ('0006', 3946767, '0008', 'Prima Profesionales', 50.00, 'CREDITO', 2, 'DIRECTORES'); INSERT INTO `nomina` VALUES ('0006', 3946767, '1000', 'Sueldo Quincenal', 1785.05, 'CREDITO', 3, 'DIRECTORES'); INSERT INTO `nomina` VALUES ('0006', 3946767, '7001', 'Total Asignaciones', 1875.05, 'ASIGNACION', 4, 'DIRECTORES'); INSERT INTO `nomina` VALUES ('0006', 3946767, '0002', 'Prestamos', 129.93, 'DEBITO', 5, 'DIRECTORES'); INSERT INTO `nomina` VALUES ('0006', 3946767, '0003', 'Fondo de Jubilacion y Pension', 53.55, 'DEBITO', 6, 'DIRECTORES'); INSERT INTO `nomina` VALUES ('0006', 3946767, '0004', 'CACOENE', 357.01, 'DEBITO', 7, 'DIRECTORES'); INSERT INTO `nomina` VALUES ('0006', 3946767, '0005', 'Ley de Vivienda y Habitat', 18.75, 'DEBITO', 8, 'DIRECTORES'); INSERT INTO `nomina` VALUES ('0006', 3946767, '0010', 'Poliza HCM', 48.53, 'DEBITO', 9, 'DIRECTORES'); INSERT INTO `nomina` VALUES ('0006', 3946767, '0014', ' S.S.O. y Reg. Prest. Empleo 2', 60.45, 'DEBITO', 10, 'DIRECTORES'); INSERT INTO `nomina` VALUES ('0006', 3946767, '9001', 'R.I.S.L.R.', 31.31, 'DEBITO', 11, 'DIRECTORES'); INSERT INTO `nomina` VALUES ('0006', 3946767, '7002', 'Total Deducciones', 699.54, 'DEDUCCION', 12, 'DIRECTORES'); INSERT INTO `nomina` VALUES ('0006', 3946767, '7003', 'Total Neto', 1175.50, 'NETO', 13, 'DIRECTORES'); INSERT INTO `nomina` VALUES ('0006', 6966895, '0001', 'Bono de Antiguedad', 35.00, 'CREDITO', 14, 'DIRECTORES'); INSERT INTO `nomina` VALUES ('0006', 6966895, '0008', 'Prima Profesionales', 60.00, 'CREDITO', 15, 'DIRECTORES'); INSERT INTO `nomina` VALUES ('0006', 6966895, '1000', 'Sueldo Quincenal', 2315.52, 'CREDITO', 16, 'DIRECTORES'); INSERT INTO `nomina` VALUES ('0006', 6966895, '7001', 'Total Asignaciones', 2410.52, 'ASIGNACION', 17, 'DIRECTORES'); INSERT INTO `nomina` VALUES ('0006', 6966895, '0002', 'Prestamos', 348.10, 'DEBITO', 18, 'DIRECTORES'); INSERT INTO `nomina` VALUES ('0006', 6966895, '0003', 'Fondo de Jubilacion y Pension', 69.46, 'DEBITO', 19, 'DIRECTORES'); INSERT INTO `nomina` VALUES ('0006', 6966895, '0004', 'CACOENE', 463.10, 'DEBITO', 20, 'DIRECTORES'); INSERT INTO `nomina` VALUES ('0006', 6966895, '0005', 'Ley de Vivienda y Habitat', 24.10, 'DEBITO', 21, 'DIRECTORES'); INSERT INTO `nomina` VALUES ('0006', 6966895, '0010', 'Poliza HCM', 66.56, 'DEBITO', 22, 'DIRECTORES'); INSERT INTO `nomina` VALUES ('0006', 6966895, '0014', ' S.S.O. y Reg. Prest. Empleo 2', 60.45, 'DEBITO', 23, 'DIRECTORES'); INSERT INTO `nomina` VALUES ('0006', 6966895, '9001', 'R.I.S.L.R.', 88.70, 'DEBITO', 24, 'DIRECTORES'); INSERT INTO `nomina` VALUES ('0006', 6966895, '7002', 'Total Deducciones', 1120.51, 'DEDUCCION', 25, 'DIRECTORES'); INSERT INTO `nomina` VALUES ('0006', 6966895, '7003', 'Total Neto', 1290.00, 'NETO', 26, 'DIRECTORES'); INSERT INTO `nomina` VALUES ('0006', 4650716, '0001', 'Bono de Antiguedad', 120.00, 'CREDITO', 27, 'DIRECTORES'); INSERT INTO `nomina` VALUES ('0006', 4650716, '0008', 'Prima Profesionales', 60.00, 'CREDITO', 28, 'DIRECTORES'); INSERT INTO `nomina` VALUES ('0006', 4650716, '0012', 'Prima Jerarquia y Responsabilidad', 125.00, 'CREDITO', 29, 'DIRECTORES'); INSERT INTO `nomina` VALUES ('0006', 4650716, '0013', 'Comp. Gastos Repres.', 175.00, 'CREDITO', 30, 'DIRECTORES'); INSERT INTO `nomina` VALUES ('0006', 4650716, '1000', 'Sueldo Quincenal', 2973.95, 'CREDITO', 31, 'DIRECTORES'); INSERT INTO `nomina` VALUES ('0006', 4650716, '7001', 'Total Asignaciones', 3453.95, 'ASIGNACION', 32, 'DIRECTORES'); INSERT INTO `nomina` VALUES ('0006', 4650716, '0003', 'Fondo de Jubilacion y Pension', 89.21, 'DEBITO', 33, 'DIRECTORES'); INSERT INTO `nomina` VALUES ('0006', 4650716, '0004', 'CACOENE', 594.79, 'DEBITO', 34, 'DIRECTORES'); INSERT INTO `nomina` VALUES ('0006', 4650716, '0005', 'Ley de Vivienda y Habitat', 34.53, 'DEBITO', 35, 'DIRECTORES'); INSERT INTO `nomina` VALUES ('0006', 4650716, '0010', 'Poliza HCM', 98.07, 'DEBITO', 36, 'DIRECTORES'); INSERT INTO `nomina` VALUES ('0006', 4650716, '0014', ' S.S.O. y Reg. Prest. Empleo 2', 60.45, 'DEBITO', 37, 'DIRECTORES'); INSERT INTO `nomina` VALUES ('0006', 4650716, '9001', 'R.I.S.L.R.', 226.23, 'DEBITO', 38, 'DIRECTORES'); INSERT INTO `nomina` VALUES ('0006', 4650716, '7002', 'Total Deducciones', 1103.30, 'DEDUCCION', 39, 'DIRECTORES'); INSERT INTO `nomina` VALUES ('0006', 4650716, '7003', 'Total Neto', 2350.64, 'NETO', 40, 'DIRECTORES'); INSERT INTO `nomina` VALUES ('0006', 6177583, '0001', 'Bono de Antiguedad', 70.00, 'CREDITO', 41, 'DIRECTORES'); INSERT INTO `nomina` VALUES ('0006', 6177583, '0008', 'Prima Profesionales', 50.00, 'CREDITO', 42, 'DIRECTORES'); INSERT INTO `nomina` VALUES ('0006', 6177583, '1000', 'Sueldo Quincenal', 2231.31, 'CREDITO', 43, 'DIRECTORES'); INSERT INTO `nomina` VALUES ('0006', 6177583, '7001', 'Total Asignaciones', 2351.31, 'ASIGNACION', 44, 'DIRECTORES'); INSERT INTO `nomina` VALUES ('0006', 6177583, '0003', 'Fondo de Jubilacion y Pension', 66.93, 'DEBITO', 45, 'DIRECTORES'); INSERT INTO `nomina` VALUES ('0006', 6177583, '0004', 'CACOENE', 446.26, 'DEBITO', 46, 'DIRECTORES'); INSERT INTO `nomina` VALUES ('0006', 6177583, '0005', 'Ley de Vivienda y Habitat', 23.51, 'DEBITO', 47, 'DIRECTORES'); INSERT INTO `nomina` VALUES ('0006', 6177583, '0014', ' S.S.O. y Reg. Prest. Empleo 2', 60.45, 'DEBITO', 48, 'DIRECTORES'); INSERT INTO `nomina` VALUES ('0006', 6177583, '9001', 'R.I.S.L.R.', 27.51, 'DEBITO', 49, 'DIRECTORES'); INSERT INTO `nomina` VALUES ('0006', 6177583, '7002', 'Total Deducciones', 624.68, 'DEDUCCION', 50, 'DIRECTORES'); INSERT INTO `nomina` VALUES ('0006', 6177583, '7003', 'Total Neto', 1726.62, 'NETO', 51, 'DIRECTORES'); INSERT INTO `nomina` VALUES ('0006', 6122659, '0001', 'Bono de Antiguedad', 45.00, 'CREDITO', 52, 'DIRECTORES'); INSERT INTO `nomina` VALUES ('0006', 6122659, '0008', 'Prima Profesionales', 50.00, 'CREDITO', 53, 'DIRECTORES'); INSERT INTO `nomina` VALUES ('0006', 6122659, '0009', 'Prima de Responsabilidad', 100.00, 'CREDITO', 54, 'DIRECTORES'); INSERT INTO `nomina` VALUES ('0006', 6122659, '1000', 'Sueldo Quincenal', 2504.46, 'CREDITO', 55, 'DIRECTORES'); INSERT INTO `nomina` VALUES ('0006', 6122659, '7001', 'Total Asignaciones', 2699.46, 'ASIGNACION', 56, 'DIRECTORES'); INSERT INTO `nomina` VALUES ('0006', 6122659, '0002', 'Prestamos', 423.54, 'DEBITO', 57, 'DIRECTORES'); INSERT INTO `nomina` VALUES ('0006', 6122659, '0003', 'Fondo de Jubilacion y Pension', 75.13, 'DEBITO', 58, 'DIRECTORES'); INSERT INTO `nomina` VALUES ('0006', 6122659, '0004', 'CACOENE', 500.89, 'DEBITO', 59, 'DIRECTORES'); INSERT INTO `nomina` VALUES ('0006', 6122659, '0005', 'Ley de Vivienda y Habitat', 26.99, 'DEBITO', 60, 'DIRECTORES'); INSERT INTO `nomina` VALUES ('0006', 6122659, '0010', 'Poliza HCM', 66.56, 'DEBITO', 61, 'DIRECTORES'); INSERT INTO `nomina` VALUES ('0006', 6122659, '0014', ' S.S.O. y Reg. Prest. Empleo 2', 60.45, 'DEBITO', 62, 'DIRECTORES'); INSERT INTO `nomina` VALUES ('0006', 6122659, '9001', 'R.I.S.L.R.', 104.19, 'DEBITO', 63, 'DIRECTORES'); INSERT INTO `nomina` VALUES ('0006', 6122659, '7002', 'Total Deducciones', 1257.78, 'DEDUCCION', 64, 'DIRECTORES'); INSERT INTO `nomina` VALUES ('0006', 6122659, '7003', 'Total Neto', 1441.67, 'NETO', 65, 'DIRECTORES'); INSERT INTO `nomina` VALUES ('0006', 13023459, '0001', 'Bono de Antiguedad', 40.00, 'CREDITO', 66, 'DIRECTORES'); INSERT INTO `nomina` VALUES ('0006', 13023459, '0008', 'Prima Profesionales', 50.00, 'CREDITO', 67, 'DIRECTORES'); INSERT INTO `nomina` VALUES ('0006', 13023459, '1000', 'Sueldo Quincenal', 2315.52, 'CREDITO', 68, 'DIRECTORES'); INSERT INTO `nomina` VALUES ('0006', 13023459, '7001', 'Total Asignaciones', 2405.52, 'ASIGNACION', 69, 'DIRECTORES'); INSERT INTO `nomina` VALUES ('0006', 13023459, '0002', 'Prestamos', 455.58, 'DEBITO', 70, 'DIRECTORES'); INSERT INTO `nomina` VALUES ('0006', 13023459, '0003', 'Fondo de Jubilacion y Pension', 69.46, 'DEBITO', 71, 'DIRECTORES'); INSERT INTO `nomina` VALUES ('0006', 13023459, '0004', 'CACOENE', 463.10, 'DEBITO', 72, 'DIRECTORES'); INSERT INTO `nomina` VALUES ('0006', 13023459, '0005', 'Ley de Vivienda y Habitat', 24.05, 'DEBITO', 73, 'DIRECTORES'); INSERT INTO `nomina` VALUES ('0006', 13023459, '0010', 'Poliza HCM', 66.56, 'DEBITO', 74, 'DIRECTORES'); INSERT INTO `nomina` VALUES ('0006', 13023459, '0014', ' S.S.O. y Reg. Prest. Empleo 2', 60.45, 'DEBITO', 75, 'DIRECTORES'); INSERT INTO `nomina` VALUES ('0006', 13023459, '9001', 'R.I.S.L.R.', 79.14, 'DEBITO', 76, 'DIRECTORES'); INSERT INTO `nomina` VALUES ('0006', 13023459, '7002', 'Total Deducciones', 1218.37, 'DEDUCCION', 77, 'DIRECTORES'); INSERT INTO `nomina` VALUES ('0006', 13023459, '7003', 'Total Neto', 1187.14, 'NETO', 78, 'DIRECTORES'); INSERT INTO `nomina` VALUES ('0006', 5482594, '0001', 'Bono de Antiguedad', 40.00, 'CREDITO', 79, 'DIRECTORES'); INSERT INTO `nomina` VALUES ('0006', 5482594, '0008', 'Prima Profesionales', 50.00, 'CREDITO', 80, 'DIRECTORES'); INSERT INTO `nomina` VALUES ('0006', 5482594, '1000', 'Sueldo Quincenal', 2413.38, 'CREDITO', 81, 'DIRECTORES'); INSERT INTO `nomina` VALUES ('0006', 5482594, '7001', 'Total Asignaciones', 2503.38, 'ASIGNACION', 82, 'DIRECTORES'); INSERT INTO `nomina` VALUES ('0006', 5482594, '0002', 'Prestamos', 405.64, 'DEBITO', 83, 'DIRECTORES'); INSERT INTO `nomina` VALUES ('0006', 5482594, '0003', 'Fondo de Jubilacion y Pension', 72.40, 'DEBITO', 84, 'DIRECTORES'); INSERT INTO `nomina` VALUES ('0006', 5482594, '0004', 'CACOENE', 482.67, 'DEBITO', 85, 'DIRECTORES'); INSERT INTO `nomina` VALUES ('0006', 5482594, '0005', 'Ley de Vivienda y Habitat', 25.03, 'DEBITO', 86, 'DIRECTORES'); INSERT INTO `nomina` VALUES ('0006', 5482594, '0010', 'Poliza HCM', 98.07, 'DEBITO', 87, 'DIRECTORES'); INSERT INTO `nomina` VALUES ('0006', 5482594, '0014', ' S.S.O. y Reg. Prest. Empleo 2', 60.45, 'DEBITO', 88, 'DIRECTORES'); INSERT INTO `nomina` VALUES ('0006', 5482594, '9001', 'R.I.S.L.R.', 90.87, 'DEBITO', 89, 'DIRECTORES'); INSERT INTO `nomina` VALUES ('0006', 5482594, '7002', 'Total Deducciones', 1235.15, 'DEDUCCION', 90, 'DIRECTORES'); INSERT INTO `nomina` VALUES ('0006', 5482594, '7003', 'Total Neto', 1268.22, 'NETO', 91, 'DIRECTORES'); INSERT INTO `nomina` VALUES ('0006', 5605331, '0001', 'Bono de Antiguedad', 45.00, 'CREDITO', 92, 'DIRECTORES'); INSERT INTO `nomina` VALUES ('0006', 5605331, '0008', 'Prima Profesionales', 60.00, 'CREDITO', 93, 'DIRECTORES'); INSERT INTO `nomina` VALUES ('0006', 5605331, '1000', 'Sueldo Quincenal', 2273.41, 'CREDITO', 94, 'DIRECTORES'); INSERT INTO `nomina` VALUES ('0006', 5605331, '7001', 'Total Asignaciones', 2378.41, 'ASIGNACION', 95, 'DIRECTORES'); INSERT INTO `nomina` VALUES ('0006', 5605331, '0002', 'Prestamos', 174.37, 'DEBITO', 96, 'DIRECTORES'); INSERT INTO `nomina` VALUES ('0006', 5605331, '0003', 'Fondo de Jubilacion y Pension', 68.20, 'DEBITO', 97, 'DIRECTORES'); INSERT INTO `nomina` VALUES ('0006', 5605331, '0004', 'CACOENE', 454.68, 'DEBITO', 98, 'DIRECTORES'); INSERT INTO `nomina` VALUES ('0006', 5605331, '0005', 'Ley de Vivienda y Habitat', 23.78, 'DEBITO', 99, 'DIRECTORES'); INSERT INTO `nomina` VALUES ('0006', 5605331, '0014', ' S.S.O. y Reg. Prest. Empleo 2', 60.45, 'DEBITO', 100, 'DIRECTORES'); INSERT INTO `nomina` VALUES ('0006', 5605331, '9001', 'R.I.S.L.R.', 75.87, 'DEBITO', 101, 'DIRECTORES'); INSERT INTO `nomina` VALUES ('0006', 5605331, '7002', 'Total Deducciones', 857.36, 'DEDUCCION', 102, 'DIRECTORES'); INSERT INTO `nomina` VALUES ('0006', 5605331, '7003', 'Total Neto', 1521.04, 'NETO', 103, 'DIRECTORES'); INSERT INTO `nomina` VALUES ('0006', 13729622, '0001', 'Bono de Antiguedad', 35.00, 'CREDITO', 104, 'DIRECTORES'); INSERT INTO `nomina` VALUES ('0006', 13729622, '0008', 'Prima Profesionales', 50.00, 'CREDITO', 105, 'DIRECTORES'); INSERT INTO `nomina` VALUES ('0006', 13729622, '1000', 'Sueldo Quincenal', 2504.46, 'CREDITO', 106, 'DIRECTORES'); INSERT INTO `nomina` VALUES ('0006', 13729622, '7001', 'Total Asignaciones', 2589.46, 'ASIGNACION', 107, 'DIRECTORES'); INSERT INTO `nomina` VALUES ('0006', 13729622, '0002', 'Prestamos', 384.74, 'DEBITO', 108, 'DIRECTORES'); INSERT INTO `nomina` VALUES ('0006', 13729622, '0003', 'Fondo de Jubilacion y Pension', 75.13, 'DEBITO', 109, 'DIRECTORES'); INSERT INTO `nomina` VALUES ('0006', 13729622, '0004', 'CACOENE', 500.89, 'DEBITO', 110, 'DIRECTORES'); INSERT INTO `nomina` VALUES ('0006', 13729622, '0005', 'Ley de Vivienda y Habitat', 25.89, 'DEBITO', 111, 'DIRECTORES'); INSERT INTO `nomina` VALUES ('0006', 13729622, '0014', ' S.S.O. y Reg. Prest. Empleo 2', 60.45, 'DEBITO', 112, 'DIRECTORES'); INSERT INTO `nomina` VALUES ('0006', 13729622, '9001', 'R.I.S.L.R.', 121.96, 'DEBITO', 113, 'DIRECTORES'); INSERT INTO `nomina` VALUES ('0006', 13729622, '7002', 'Total Deducciones', 1169.08, 'DEDUCCION', 114, 'DIRECTORES'); INSERT INTO `nomina` VALUES ('0006', 13729622, '7003', 'Total Neto', 1420.37, 'NETO', 115, 'DIRECTORES'); INSERT INTO `nomina` VALUES ('0006', 9429622, '0001', 'Bono de Antiguedad', 65.00, 'CREDITO', 116, 'DIRECTORES'); INSERT INTO `nomina` VALUES ('0006', 9429622, '0008', 'Prima Profesionales', 50.00, 'CREDITO', 117, 'DIRECTORES'); INSERT INTO `nomina` VALUES ('0006', 9429622, '1000', 'Sueldo Quincenal', 2408.14, 'CREDITO', 118, 'DIRECTORES'); INSERT INTO `nomina` VALUES ('0006', 9429622, '7001', 'Total Asignaciones', 2523.14, 'ASIGNACION', 119, 'DIRECTORES'); INSERT INTO `nomina` VALUES ('0006', 9429622, '0002', 'Prestamos', 0.00, 'DEBITO', 120, 'DIRECTORES'); INSERT INTO `nomina` VALUES ('0006', 9429622, '0003', 'Fondo de Jubilacion y Pension', 72.24, 'DEBITO', 121, 'DIRECTORES'); INSERT INTO `nomina` VALUES ('0006', 9429622, '0005', 'Ley de Vivienda y Habitat', 25.23, 'DEBITO', 122, 'DIRECTORES'); INSERT INTO `nomina` VALUES ('0006', 9429622, '0010', 'Poliza HCM', 325.70, 'DEBITO', 123, 'DIRECTORES'); INSERT INTO `nomina` VALUES ('0006', 9429622, '0011', 'Ajuste poliza HCM', 277.04, 'DEBITO', 124, 'DIRECTORES'); INSERT INTO `nomina` VALUES ('0006', 9429622, '0014', ' S.S.O. y Reg. Prest. Empleo 2', 60.45, 'DEBITO', 125, 'DIRECTORES'); INSERT INTO `nomina` VALUES ('0006', 9429622, '9001', 'R.I.S.L.R.', 30.27, 'DEBITO', 126, 'DIRECTORES'); INSERT INTO `nomina` VALUES ('0006', 9429622, '7002', 'Total Deducciones', 790.95, 'DEDUCCION', 127, 'DIRECTORES'); INSERT INTO `nomina` VALUES ('0006', 9429622, '7003', 'Total Neto', 1732.18, 'NETO', 128, 'DIRECTORES'); -- -------------------------------------------------------- -- -- Estructura de tabla para la tabla `nomina_actual` -- CREATE TABLE `nomina_actual` ( `cod` varchar(5) NOT NULL, `periodo` varchar(2) NOT NULL, `f_ini` date NOT NULL, `f_fin` date NOT NULL, `f_elab` date NOT NULL, `id` int(11) NOT NULL auto_increment, `titulo` varchar(100) NOT NULL, `status` varchar(10) NOT NULL default '0', PRIMARY KEY (`id`), UNIQUE KEY `cod` (`cod`) ) ENGINE=InnoDB DEFAULT CHARSET=latin1 COMMENT='tabla que contiene los datos de la nomina activa' AUTO_INCREMENT=3 ; -- -- Volcar la base de datos para la tabla `nomina_actual` -- INSERT INTO `nomina_actual` VALUES ('0001', '1', '2007-01-31', '2008-01-31', '2007-08-13', 1, 'Nomina del Mes de Enero', 'INACTIVA'); INSERT INTO `nomina_actual` VALUES ('0006', '5', '2008-03-01', '2008-03-15', '2008-03-17', 2, 'Nomina del Mes de Marzo (1ra quincena)', 'ACTIVA'); -- -------------------------------------------------------- -- -- Estructura de tabla para la tabla `pagos_especiales` -- CREATE TABLE `pagos_especiales` ( `id` int(11) NOT NULL auto_increment, `cedula` int(11) NOT NULL, `cod_incidencia` varchar(4) NOT NULL, `descripcion` varchar(50) NOT NULL, `monto` decimal(10,2) NOT NULL, PRIMARY KEY (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ; -- -- Volcar la base de datos para la tabla `pagos_especiales` -- -- -------------------------------------------------------- -- -- Estructura de tabla para la tabla `usuarios` -- CREATE TABLE `usuarios` ( `id` int(11) NOT NULL auto_increment, `login` varchar(10) NOT NULL, `password` varchar(10) NOT NULL, `privilegios` varchar(1) NOT NULL, UNIQUE KEY `login` (`login`), KEY `id` (`id`) ) ENGINE=MyISAM DEFAULT CHARSET=latin1 AUTO_INCREMENT=6 ; -- -- Volcar la base de datos para la tabla `usuarios` -- INSERT INTO `usuarios` VALUES (1, 'capepo', 'capepo', '1'); INSERT INTO `usuarios` VALUES (3, 'alexis', 'alexis', '2'); -- -------------------------------------------------------- -- -- Estructura de tabla para la tabla `variables` -- CREATE TABLE `variables` ( `id` int(11) NOT NULL auto_increment, `cod` varchar(4) NOT NULL, `abreviatura` varchar(10) NOT NULL, `descripcion` varchar(50) NOT NULL, `valor` varchar(50) NOT NULL, UNIQUE KEY `codigo` (`cod`), UNIQUE KEY `var` (`abreviatura`), KEY `id` (`id`) ) ENGINE=MyISAM DEFAULT CHARSET=latin1 AUTO_INCREMENT=8 ; -- -- Volcar la base de datos para la tabla `variables` -- INSERT INTO `variables` VALUES (2, '1000', 'map', 'Monto Antiguedad Previa', '10'); INSERT INTO `variables` VALUES (3, '1001', 'mas', 'Monto Antiguedad Actual', '10');
true
966b4cad3ec4b8d35d0c56f8fab9166405747b23
SQL
paulalcabasa/Oracle-SQL-Files
/XXIPC_CUSTOMER_DETAIL_V.sql
UTF-8
9,162
3.296875
3
[]
no_license
SELECT * FROM XXIPC_CUSTOMER_DETAIL_V where cust_account_id = 15094 and site_use_id = 10045; drop view XXIPC_CUSTOMER_DETAIL_V; commit; CREATE VIEW XXIPC_CUSTOMER_DETAIL_V AS SELECT DISTINCT hca1.account_number customer_number, hca1.account_name, hp1.party_name, hca1.cust_account_id , ACCT_SU1.site_use_id, acct_site1.org_id, (SELECT DISTINCT loc.address1 FROM hz_parties hp , hz_cust_accounts hca , HZ_LOCATIONS LOC , HZ_PARTY_SITES PARTY_SITE , HZ_CUST_SITE_USES_ALL ACCT_SU , HZ_CUST_ACCT_SITES_ALL ACCT_SITE WHERE hp.party_id = hca.party_id AND loc.location_id = party_site.location_id AND party_site.party_site_id = acct_site.party_site_id AND acct_su.cust_acct_site_id = acct_site.cust_acct_site_id AND acct_su.site_use_code = 'BILL_TO' AND ACCT_SU.STATUS = 'A' AND ACCT_SITE.CUST_ACCOUNT_ID = HCA.CUST_ACCOUNT_ID AND acct_site.status = 'A' AND acct_site.org_id = acct_site1.org_id AND hca.account_number = hca1.account_number AND hps1.party_site_id = party_site.party_site_id ) bill_to_address1, (SELECT DISTINCT loc.address2 FROM hz_parties hp , hz_cust_accounts hca , HZ_LOCATIONS LOC , HZ_PARTY_SITES PARTY_SITE , HZ_CUST_SITE_USES_ALL ACCT_SU , HZ_CUST_ACCT_SITES_ALL ACCT_SITE WHERE hp.party_id = hca.party_id AND loc.location_id = party_site.location_id AND party_site.party_site_id = acct_site.party_site_id AND acct_su.cust_acct_site_id = acct_site.cust_acct_site_id AND acct_su.site_use_code = 'BILL_TO' AND ACCT_SU.STATUS = 'A' AND ACCT_SITE.CUST_ACCOUNT_ID = HCA.CUST_ACCOUNT_ID AND acct_site.status = 'A' AND acct_site.org_id = acct_site1.org_id AND hca.account_number = hca1.account_number AND hps1.party_site_id = party_site.party_site_id ) bill_to_address2, (SELECT DISTINCT loc.address3 FROM hz_parties hp , hz_cust_accounts hca , HZ_LOCATIONS LOC , HZ_PARTY_SITES PARTY_SITE , HZ_CUST_SITE_USES_ALL ACCT_SU , HZ_CUST_ACCT_SITES_ALL ACCT_SITE WHERE hp.party_id = hca.party_id AND loc.location_id = party_site.location_id AND party_site.party_site_id = acct_site.party_site_id AND acct_su.cust_acct_site_id = acct_site.cust_acct_site_id AND acct_su.site_use_code = 'BILL_TO' AND ACCT_SU.STATUS = 'A' AND ACCT_SITE.CUST_ACCOUNT_ID = HCA.CUST_ACCOUNT_ID AND acct_site.status = 'A' AND acct_site.org_id = acct_site1.org_id AND hca.account_number = hca1.account_number AND hps1.party_site_id = party_site.party_site_id ) bill_to_address3, (SELECT DISTINCT loc.address4 FROM hz_parties hp , hz_cust_accounts hca , HZ_LOCATIONS LOC , HZ_PARTY_SITES PARTY_SITE , HZ_CUST_SITE_USES_ALL ACCT_SU , HZ_CUST_ACCT_SITES_ALL ACCT_SITE WHERE hp.party_id = hca.party_id AND loc.location_id = party_site.location_id AND party_site.party_site_id = acct_site.party_site_id AND acct_su.cust_acct_site_id = acct_site.cust_acct_site_id AND acct_su.site_use_code = 'BILL_TO' AND ACCT_SU.STATUS = 'A' AND ACCT_SITE.CUST_ACCOUNT_ID = HCA.CUST_ACCOUNT_ID AND acct_site.status = 'A' AND acct_site.org_id = acct_site1.org_id AND hca.account_number = hca1.account_number AND hps1.party_site_id = party_site.party_site_id ) bill_to_address4, (SELECT DISTINCT loc.address1 FROM hz_parties hp , hz_cust_accounts hca , HZ_LOCATIONS LOC , HZ_PARTY_SITES PARTY_SITE , HZ_CUST_SITE_USES_ALL ACCT_SU , HZ_CUST_ACCT_SITES_ALL ACCT_SITE WHERE hp.party_id = hca.party_id AND loc.location_id = party_site.location_id AND party_site.party_site_id = acct_site.party_site_id AND acct_su.cust_acct_site_id = acct_site.cust_acct_site_id AND acct_su.site_use_code = 'SHIP_TO' AND ACCT_SU.STATUS = 'A' AND ACCT_SITE.CUST_ACCOUNT_ID = HCA.CUST_ACCOUNT_ID AND acct_site.status = 'A' AND acct_site.org_id = acct_site1.org_id AND hca.account_number = hca1.account_number AND hps1.party_site_id = party_site.party_site_id ) SHIP_to_address1, (SELECT DISTINCT loc.address2 FROM hz_parties hp , hz_cust_accounts hca , HZ_LOCATIONS LOC , HZ_PARTY_SITES PARTY_SITE , HZ_CUST_SITE_USES_ALL ACCT_SU , HZ_CUST_ACCT_SITES_ALL ACCT_SITE WHERE hp.party_id = hca.party_id AND loc.location_id = party_site.location_id AND party_site.party_site_id = acct_site.party_site_id AND acct_su.cust_acct_site_id = acct_site.cust_acct_site_id AND acct_su.site_use_code = 'SHIP_TO' AND ACCT_SU.STATUS = 'A' AND ACCT_SITE.CUST_ACCOUNT_ID = HCA.CUST_ACCOUNT_ID AND acct_site.status = 'A' AND acct_site.org_id = acct_site1.org_id AND hca.account_number = hca1.account_number AND hps1.party_site_id = party_site.party_site_id ) SHIP_to_address2, (SELECT DISTINCT loc.address3 FROM hz_parties hp , hz_cust_accounts hca , HZ_LOCATIONS LOC , HZ_PARTY_SITES PARTY_SITE , HZ_CUST_SITE_USES_ALL ACCT_SU , HZ_CUST_ACCT_SITES_ALL ACCT_SITE WHERE hp.party_id = hca.party_id AND loc.location_id = party_site.location_id AND party_site.party_site_id = acct_site.party_site_id AND acct_su.cust_acct_site_id = acct_site.cust_acct_site_id AND acct_su.site_use_code = 'SHIP_TO' AND ACCT_SU.STATUS = 'A' AND ACCT_SITE.CUST_ACCOUNT_ID = HCA.CUST_ACCOUNT_ID AND acct_site.status = 'A' AND acct_site.org_id = acct_site1.org_id AND hca.account_number = hca1.account_number AND hps1.party_site_id = party_site.party_site_id ) SHIP_to_address3, (SELECT DISTINCT loc.address4 FROM hz_parties hp , hz_cust_accounts hca , HZ_LOCATIONS LOC , HZ_PARTY_SITES PARTY_SITE , HZ_CUST_SITE_USES_ALL ACCT_SU , HZ_CUST_ACCT_SITES_ALL ACCT_SITE WHERE hp.party_id = hca.party_id AND loc.location_id = party_site.location_id AND party_site.party_site_id = acct_site.party_site_id AND acct_su.cust_acct_site_id = acct_site.cust_acct_site_id AND acct_su.site_use_code = 'SHIP_TO' AND ACCT_SU.STATUS = 'A' AND ACCT_SITE.CUST_ACCOUNT_ID = HCA.CUST_ACCOUNT_ID AND acct_site.status = 'A' AND acct_site.org_id = acct_site1.org_id AND hca.account_number = hca1.account_number AND hps1.party_site_id = party_site.party_site_id ) SHIP_to_address4, (SELECT DISTINCT party_site.party_site_number bill_PARTY_SITE_NUMBER FROM hz_parties hp , hz_cust_accounts hca , HZ_LOCATIONS LOC , HZ_PARTY_SITES PARTY_SITE , HZ_CUST_SITE_USES_ALL ACCT_SU , HZ_CUST_ACCT_SITES_ALL ACCT_SITE WHERE hp.party_id = hca.party_id AND loc.location_id = party_site.location_id AND party_site.party_site_id = acct_site.party_site_id AND acct_su.cust_acct_site_id = acct_site.cust_acct_site_id AND acct_su.site_use_code = 'BILL_TO' AND ACCT_SU.STATUS = 'A' AND ACCT_SITE.CUST_ACCOUNT_ID = HCA.CUST_ACCOUNT_ID AND acct_site.status = 'A' AND acct_site.org_id = acct_site1.org_id AND hca.account_number = hca1.account_number AND hps1.party_site_id = party_site.party_site_id ) bill_to_party_site, (SELECT DISTINCT party_site.party_site_number bill_PARTY_SITE_NUMBER FROM hz_parties hp , hz_cust_accounts hca , HZ_LOCATIONS LOC , HZ_PARTY_SITES PARTY_SITE , HZ_CUST_SITE_USES_ALL ACCT_SU , HZ_CUST_ACCT_SITES_ALL ACCT_SITE WHERE hp.party_id = hca.party_id AND loc.location_id = party_site.location_id AND party_site.party_site_id = acct_site.party_site_id AND acct_su.cust_acct_site_id = acct_site.cust_acct_site_id AND acct_su.site_use_code = 'SHIP_TO' AND ACCT_SU.STATUS = 'A' AND ACCT_SITE.CUST_ACCOUNT_ID = HCA.CUST_ACCOUNT_ID AND acct_site.status = 'A' AND acct_site.org_id = acct_site1.org_id AND hca.account_number = hca1.account_number AND hps1.party_site_id = party_site.party_site_id ) ship_to_party_site FROM hz_parties hp1, hz_cust_accounts hca1, hz_locations hl1, HZ_PARTY_SITES hps1, HZ_CUST_SITE_USES_ALL ACCT_SU1, HZ_CUST_ACCT_SITES_ALL ACCT_SITE1 WHERE 1 =1 AND hp1.party_id = hca1.party_id AND hp1.party_id = hps1.party_id AND hl1.location_id = hps1.location_id AND hps1.party_site_id = acct_site1.party_site_id AND acct_su1.cust_acct_site_id = acct_site1.cust_acct_site_id AND ACCT_SITE1.CUST_ACCOUNT_ID = HCA1.CUST_ACCOUNT_ID -- AND acct_site1.org_id = 82 -- AND hca1.cust_account_id = 14088 -- AND ACCT_SU1.site_use_id = 9963;
true
8e83aa70af0504b168daafc7eb1da7dc93cd37c9
SQL
maraboinanishanth/DocSortGitRepository
/DocSort v1.0.0.5/DocSort CPA/DataBase Scripts/StoredProcedures/`sp_ShowScannedDocuments`.sql
UTF-8
440
3.546875
4
[]
no_license
DELIMITER $$ USE `cpa-mysql`$$ DROP PROCEDURE IF EXISTS `sp_ShowScannedDocuments`$$ CREATE DEFINER=`root`@`localhost` PROCEDURE `sp_ShowScannedDocuments`() BEGIN SELECT d.*,f.*,sd.*,k.Keyword FROM tbl_documentslist d INNER JOIN tbl_files f ON d.document_ID=f.File_ID LEFT JOIN tbl_scanneddocumentresults sd ON d.Document_ID=sd.Document_ID LEFT JOIN tbl_keywords k ON k.Keyword_ID=sd.Keyword_ID WHERE f.IsDelete='True'; END$$ DELIMITER ;
true
6c3cb9efce32b5f7061782ec8be25249acc1e9f7
SQL
patricknaka/Nova
/Views Nike/VW_NK_NFV_DET.sql
UTF-8
8,072
2.921875
3
[]
no_license
SELECT DISTINCT -- O campo CD_CIA foi incluido para diferenciar NIKE(13) E BUNZL(15) --********************************************************************************************************************************************************** 13 CD_CIA, CASE WHEN tcemm030.t$euca = ' ' then substr(tcemm124.t$grid,-2,2) else tcemm030.t$euca end as CD_FILIAL, cisli940.t$docn$l NR_NF, cisli940.t$seri$l NR_SERIE_NF, ltrim(rtrim(cisli941.t$item$l)) CD_ITEM, cisli941.t$dqua$l QT_FATURADA, nvl((select dv.t$dqua$l from baandb.tcisli941601 dv where dv.t$fire$l=tdsls401.t$fire$l and dv.t$line$l=tdsls401.t$line$l),'0') QT_DEVOLVIDA, cisli941.t$pric$l VL_UNITARIO_PRODUTO, nvl(ICMS.t$amnt$l, 0) VL_ICMS, (SELECT cisli943.t$amnt$l FROM baandb.tcisli943601 cisli943 WHERE cisli943.t$fire$l=cisli941.t$fire$l AND cisli943.t$line$l=cisli941.t$line$l AND cisli943.t$brty$l=2) VL_ICMS_ST, (SELECT cisli943.t$amnt$l FROM baandb.tcisli943601 cisli943 WHERE cisli943.t$fire$l=cisli941.t$fire$l AND cisli943.t$line$l=cisli941.t$line$l AND cisli943.t$brty$l=3) VL_IPI, cisli941.t$gamt$l VL_PRODUTO, cisli941.t$fght$l VL_FRETE, cisli941.t$insr$l VL_SEGURO, case when cisli941.t$item$l not in (select a.t$itjl$c from baandb.tznsls000601 a where a.t$indt$c=(select min(b.t$indt$c) from baandb.tznsls000601 b) UNION ALL select a.t$itmd$c from baandb.tznsls000601 a where a.t$indt$c=(select min(b.t$indt$c) from baandb.tznsls000601 b) UNION ALL select a.t$itmf$c from baandb.tznsls000601 a where a.t$indt$c=(select min(b.t$indt$c) from baandb.tznsls000601 b)) then cisli941.t$gexp$l- nvl((select sum(c.t$amnt$l) from baandb.tcisli941601 c where c.t$fire$l=cisli941.t$fire$l and c.t$item$l=(select a.t$itjl$c from baandb.tznsls000601 a where a.t$indt$c=(select min(b.t$indt$c) from baandb.tznsls000601 b))),0) else 0 end VL_DESPESA, (SELECT cisli943.t$amnt$l FROM baandb.tcisli943601 cisli943 WHERE cisli943.t$fire$l=cisli941.t$fire$l AND cisli943.t$line$l=cisli941.t$line$l AND cisli943.t$brty$l=16) VL_IMPOSTO_IMPORTACAO, cisli941.t$ldam$l VL_DESCONTO, cisli941.t$iprt$l VL_TOTAL_ITEM, nvl(to_char((select cdv.t$docn$l from baandb.tcisli940601 cdv where cdv.t$fire$l=tdsls401.t$fire$l)),' ') NR_NFR_DEVOLUCAO, case when cisli941.t$item$l not in (select a.t$itjl$c from baandb.tznsls000601 a where a.t$indt$c=(select min(b.t$indt$c) from baandb.tznsls000601 b) UNION ALL select a.t$itmd$c from baandb.tznsls000601 a where a.t$indt$c=(select min(b.t$indt$c) from baandb.tznsls000601 b) UNION ALL select a.t$itmf$c from baandb.tznsls000601 a where a.t$indt$c=(select min(b.t$indt$c) from baandb.tznsls000601 b)) then nvl((select sum(c.t$amnt$l) from baandb.tcisli941601 c where c.t$fire$l=cisli941.t$fire$l and c.t$item$l=(select a.t$itjl$c from baandb.tznsls000601 a where a.t$indt$c=(select min(b.t$indt$c) from baandb.tznsls000601 b))),0) else 0 end VL_DESPESA_FINANCEIRA, nvl(PIS.t$amnt$l,0) VL_PIS, cisli941.t$iprt$l*(nvl(ICMS.t$rate$l,0)/100) VL_ICMS_PRODUTO, cisli941.t$fght$l*(nvl(ICMS.t$rate$l,0)/100) VL_ICMS_FRETE, CASE WHEN cisli941.t$insr$l+cisli941.t$gexp$l+cisli941.t$cchr$l>0 THEN nvl(ICMS.t$amnt$l, 0) -cisli941.t$iprt$l*(nvl(ICMS.t$rate$l,0)/100) -cisli941.t$fght$l*(nvl(ICMS.t$rate$l,0)/100) ELSE 0 END VL_ICMS_OUTROS, nvl(COFINS.t$amnt$l,0) VL_COFINS, cisli941.t$iprt$l*(nvl(COFINS.t$rate$l,0)/100) VL_COFINS_PRODUTO, cisli941.t$fght$l*(nvl(COFINS.t$rate$l,0)/100) VL_COFINS_FRETE, CASE WHEN cisli941.t$insr$l+cisli941.t$gexp$l+cisli941.t$cchr$l>0 THEN nvl(COFINS.t$amnt$l, 0) -cisli941.t$iprt$l*(nvl(COFINS.t$rate$l,0)/100) -cisli941.t$fght$l*(nvl(COFINS.t$rate$l,0)/100) ELSE 0 END VL_COFINS_OUTROS, cisli941.t$iprt$l*(nvl(PIS.t$rate$l,0)/100) VL_PIS_PRODUTO, cisli941.t$fght$l*(nvl(PIS.t$rate$l,0)/100) VL_PIS_FRETE, CASE WHEN cisli941.t$insr$l+cisli941.t$gexp$l+cisli941.t$cchr$l>0 THEN nvl(PIS.t$amnt$l, 0) -cisli941.t$iprt$l*(nvl(PIS.t$rate$l,0)/100) -cisli941.t$fght$l*(nvl(PIS.t$rate$l,0)/100) ELSE 0 END VL_PIS_OUTROS, nvl(CSLL.t$amnt$l,0) VL_CSLL, cisli941.t$iprt$l*(nvl(CSLL.t$rate$l,0)/100) VL_CSLL_PRODUTO, cisli941.t$fght$l*(nvl(CSLL.t$rate$l,0)/100) VL_CSLL_FRETE, CASE WHEN cisli941.t$insr$l+cisli941.t$gexp$l+cisli941.t$cchr$l>0 THEN nvl(CSLL.t$amnt$l, 0) -cisli941.t$iprt$l*(nvl(CSLL.t$rate$l,0)/100) -cisli941.t$fght$l*(nvl(CSLL.t$rate$l,0)/100) ELSE 0 END VL_CSLL_OUTROS, znsls401.t$vldi$c VL_DESCONTO_INCONDICIONAL, cisli941.t$line$l NR_ITEM_NF, cisli941.t$ccfo$l CD_NATUREZA_OPERACAO, cisli941.t$opor$l SQ_NATUREZA_OPERACAO, cisli941.t$cchr$l VL_DESPESA_ADUANEIRA, CASE WHEN (cisli941.t$sour$l=2 or cisli941.t$sour$l=8) THEN cisli941.t$gexp$l ELSE 0 END VL_ADICIONAL_IMPORTACAO, CASE WHEN (cisli941.t$sour$l=2 or cisli941.t$sour$l=8) THEN nvl(PIS.t$amnt$l,0) ELSE 0 END VL_PIS_IMPORTACAO, CASE WHEN (cisli941.t$sour$l=2 or cisli941.t$sour$l=8) THEN nvl(COFINS.t$amnt$l,0) ELSE 0 END VL_COFINS_IMPORTACAO, CASE WHEN (cisli941.t$sour$l=2 or cisli941.t$sour$l=8) THEN cisli941.t$fght$l ELSE 0 END VL_CIF_IMPORTACAO, CAST((FROM_TZ(TO_TIMESTAMP(TO_CHAR(cisli941.t$rcd_utc, 'DD-MON-YYYY HH24:MI:SS'), 'DD-MON-YYYY HH24:MI:SS'), 'GMT') AT time zone 'America/Sao_Paulo') AS DATE) DT_ULT_ATUALIZACAO, tcemm124.t$grid CD_UNIDADE_EMPRESARIAL, cisli941.t$fire$l NR_REFERENCIA_FISCAL, nvl(ICMS.t$sbas$l,0) VL_BASE_ICMS, (SELECT cisli943.t$sbas$l FROM baandb.tcisli943601 cisli943 WHERE cisli943.t$fire$l=cisli941.t$fire$l AND cisli943.t$line$l=cisli941.t$line$l AND cisli943.t$brty$l=3) VL_BASE_IPI, CASE WHEN cisli940.t$fdty$l=15 then cisli941.t$refr$l ELSE NULL END NR_REFERENCIA_FISCAL_FATURA, CASE WHEN cisli940.t$fdty$l=15 then TO_CHAR(cisli941.t$rfdl$l) ELSE NULL END NR_ITEM_NF_FATURA, cisli941.t$refr$l NR_REFERENCIA_FISCAL_RELATIVA, cisli941.t$rfdl$l NR_LINHA_REF_FISCAL_RELATIVA FROM baandb.tcisli940601 cisli940, baandb.ttcemm124601 tcemm124, baandb.ttcemm030601 tcemm030, baandb.tcisli941601 cisli941 LEFT JOIN baandb.tcisli245601 cisli245 ON cisli245.t$fire$l=cisli941.t$fire$l AND cisli245.t$line$l=cisli941.t$line$l LEFT JOIN baandb.tcisli943601 ICMS ON ICMS.t$fire$l=cisli941.t$fire$l AND ICMS.t$line$l=cisli941.t$line$l AND ICMS.t$brty$l=1 LEFT JOIN baandb.tcisli943601 COFINS ON COFINS.t$fire$l=cisli941.t$fire$l AND COFINS.t$line$l=cisli941.t$line$l AND COFINS.t$brty$l=6 LEFT JOIN baandb.tcisli943601 PIS ON PIS.t$fire$l=cisli941.t$fire$l AND PIS.t$line$l=cisli941.t$line$l AND PIS.t$brty$l=5 LEFT JOIN baandb.tcisli943601 CSLL ON CSLL.t$fire$l=cisli941.t$fire$l AND CSLL.t$line$l=cisli941.t$line$l AND CSLL.t$brty$l=13 LEFT JOIN baandb.tznsls401601 znsls401 ON cisli245.t$slso=znsls401.t$orno$c AND cisli245.t$pono=znsls401.t$pono$c LEFT JOIN baandb.ttdsls401601 tdsls401 ON cisli245.t$slso=tdsls401.t$orno AND cisli245.t$pono=tdsls401.t$pono AND cisli245.t$sqnb=tdsls401.t$sqnb, baandb.ttcibd001601 tcibd001 WHERE cisli940.t$fire$l=cisli941.t$fire$l AND tcemm124.t$loco=601 AND tcemm124.t$dtyp=1 AND tcemm124.t$cwoc=cisli940.t$cofc$l AND tcemm030.t$eunt=tcemm124.t$grid AND tcibd001.t$item=cisli941.t$item$l AND tcibd001.t$ctyp$l!=2
true
3a8c5db0d89517c46e4323c7d8b593dc10c0f608
SQL
ministryofjustice/prison-visits-2
/db/views/rejection_percentage_by_days_v01.sql
UTF-8
2,762
4.625
5
[ "MIT", "LicenseRef-scancode-proprietary-license" ]
permissive
WITH rejection_reasons AS ( SELECT visit_id, unnest(reasons) AS reason FROM rejections GROUP BY visit_id, reasons ), rejected_visits_count_by_prison AS ( SELECT prisons.name AS prison_name, prisons.id AS prison_id, visits.created_at::date AS date, COUNT(*) AS rejected_count FROM visits INNER JOIN prisons ON prisons.id = visits.prison_id WHERE visits.processing_state = 'rejected' GROUP BY prison_name, prisons.id, date ), visit_count_by_prison AS ( SELECT prisons.name AS prison_name, prisons.id AS prison_id, COUNT(*) AS total_count, visits.created_at::date AS date FROM visits INNER JOIN prisons ON prisons.id = visits.prison_id GROUP BY prison_name, prisons.id, date ), rejected_visit_count_reason_date_and_prison AS ( SELECT reason, prisons.name AS prison_name, prisons.id AS prison_id, COUNT(*) AS rejected_count, visits.created_at::date AS date FROM visits INNER JOIN prisons ON prisons.id = visits.prison_id INNER JOIN rejection_reasons ON visits.id = rejection_reasons.visit_id WHERE visits.processing_state = 'rejected' GROUP BY prison_name, prisons.id, reason, date ), visit_count_by_prison_and_date AS ( SELECT prisons.name AS prison_name, prisons.id AS prison_id, COUNT(*) AS total_count, visits.created_at::date AS date FROM visits INNER JOIN prisons ON prisons.id = visits.prison_id GROUP BY prison_name, prisons.id, date ) SELECT rejected.prison_name, rejected.prison_id AS prison_id, 'total' AS reason, ROUND((rejected_count::numeric / total_count * 100),2) AS percentage, rejected.date AS date FROM rejected_visits_count_by_prison AS rejected, visit_count_by_prison AS total WHERE rejected.prison_id = total.prison_id AND rejected.date = total.date GROUP BY rejected.prison_name, rejected.prison_id, reason, percentage, rejected.date UNION SELECT rejected.prison_name, rejected.prison_id, reason, ROUND((rejected_count::numeric / total_count * 100),2) AS percentage, rejected.date AS date FROM rejected_visit_count_reason_date_and_prison AS rejected, visit_count_by_prison_and_date AS total WHERE rejected.prison_name = total.prison_name AND rejected.date = total.date GROUP BY rejected.prison_name, rejected.prison_id, reason, percentage, rejected.date
true
24dae672197ce1806db9128bba9708f3342b5c9b
SQL
666riosmauricio/telefonia-movil
/servidor/sql/base de datos telefonia.sql
UTF-8
1,021
3.078125
3
[]
no_license
create database Telefonia; use Telefonia; create table persona ( perId int not null, perNombre varchar(50) not null, perApellido varchar(50) not null, perTelefonoFijo varchar(20) not null, perFechaDeNacimiento varchar(20) not null, perCedula varchar(20) not null primary key ); create table linea ( linumerolinea varchar(30) not null primary key, perCedula varchar(20) not null, linestado varchar(20) not null, foreign key (perCedula) references persona (perCedula) ); create table equipo ( equSerial integer not null primary key, liNumeroLinea varchar (30) not null, equMarca varchar (50) not null, equDescripcion varchar (50) not null, equEstado varchar (50) not null, foreign key (liNumeroLinea) references linea (LiNumeroLinea) ); create table factura ( facNumero integer not null primary key, liNumeroLinea varchar (30), facFechaEmision date not null, facValor decimal not null, foreign key (liNumeroLinea) references linea (LiNumeroLinea) );
true
54d30b0442373c80e78317b1ac2ffb43799ea647
SQL
jmarca/calvad_areas
/sql/generate_membercells.sql
UTF-8
1,808
3.421875
3
[ "MIT" ]
permissive
\t on \o counties_grids.json with allgrids as (select distinct floor(grids.i_cell) || '_'|| floor(grids.j_cell) as cell,st_centroid(grids.geom4326) as centroid, grids.geom4326 as geom from carbgrid.state4k grids ), countygrids as (select distinct c.cell, a.name as county, conum from allgrids c join public.carb_counties_aligned_03 a on (st_contains(a.geom4326,c.centroid)) ), jsonCounty (area,val) as (select county, json_agg (cell) from countygrids where county is not null group by county order by county) select json_object_agg (area,val) from jsonCounty; \o airdistricts_grids.json with allgrids as (select distinct floor(grids.i_cell) || '_'|| floor(grids.j_cell) as cell,st_centroid(grids.geom4326) as centroid, grids.geom4326 as geom from carbgrid.state4k grids ), districtgrids as (select distinct c.cell, a.disn as airdistrict,a.dis from allgrids c join public.carb_airdistricts_aligned_03 a on (st_contains(a.geom4326,c.centroid)) ), jsonDistrict (area,val) as (select airdistrict, json_agg (cell) from districtgrids where airdistrict is not null group by airdistrict order by airdistrict) select json_object_agg (area,val) from jsonDistrict; \o airbasins_grids.json with allgrids as (select distinct floor(grids.i_cell) || '_'|| floor(grids.j_cell) as cell,st_centroid(grids.geom4326) as centroid, grids.geom4326 as geom from carbgrid.state4k grids ), basingrids as (select distinct c.cell,a.basin_name as airbasin,a.ab as bas from allgrids c join public.carb_airbasins_aligned_03 a on (st_contains(a.geom_4326,c.centroid)) ), jsonBasin (area,val) as (select airbasin, json_agg (cell) from basingrids where airbasin is not null group by airbasin order by airbasin) select json_object_agg (area,val) from jsonBasin;
true
1874228c1ddc6edd2f1c2a6876d5a3a1a3352333
SQL
palpriyanshu/express
/setup/sql/express_schema.sql
UTF-8
1,429
4.09375
4
[]
no_license
PRAGMA foreign_keys = on; DROP TABLE IF EXISTS users; DROP TABLE IF EXISTS stories; DROP TABLE IF EXISTS tags; DROP TABLE IF EXISTS claps; DROP TABLE IF EXISTS comments; CREATE TABLE users ( id varchar(42) PRIMARY KEY, github_id integer NOT NULL, display_name text NOT NULL DEFAULT 'Expresser', avatar_url text NOT NULL, bio text ); CREATE TABLE stories ( id integer PRIMARY KEY AUTOINCREMENT, written_by varchar(42) NOT NULL, state varchar(9) NOT NULL DEFAULT 'drafted', title text NOT NULL DEFAULT 'Untitled Story', content text, cover_image text, last_modified timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP, FOREIGN KEY (written_by) REFERENCES users(id), CHECK (state IN ('drafted','published')) ); CREATE TABLE tags ( id integer PRIMARY KEY AUTOINCREMENT, tag_on integer NOT NULL, tag varchar(50) NOT NULL, FOREIGN KEY (tag_on) REFERENCES stories(id) ); CREATE TABLE claps ( id integer PRIMARY KEY AUTOINCREMENT, clapped_on integer NOT NULL, clapped_by varchar(42) NOT NULL, FOREIGN KEY (clapped_on) REFERENCES stories(id), FOREIGN KEY (clapped_by) REFERENCES users(id) ); CREATE TABLE comments ( id integer PRIMARY KEY AUTOINCREMENT, commented_by varchar(42) NOT NULL, commented_on integer NOT NULL, comment text NOT NULL, commented_at timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP, FOREIGN KEY (commented_by) REFERENCES users(id), FOREIGN KEY (commented_on) REFERENCES stories(id) );
true
5184ac23502b007e5075ba095b51ba8208e86df0
SQL
Jason-Cooke/bigquery-etl
/udf_js/json_extract_missing_cols.sql
UTF-8
3,157
4.28125
4
[]
no_license
/* Extract missing columns from additional properties. More generally, get a list of nodes from a JSON blob. param input: The JSON blob to explode param indicates_node: An array of strings. If a key's value is an object, and contains one of these values, that key is returned as a node. param known_nodes: An array of strings. If a key is in this array, it is returned as a node. Notes: - Use indicates_node for things like histograms. For example ['histogram_type'] will ensure that each histogram will be returned as a missing node, rather than the subvalues within the histogram (e.g. values, sum, etc.) - Use known_nodes if you're aware of a missing section, like ['simpleMeasurements'] - This doesn't support Arrays of structs, the array itself will be returned as a node See here for an example usage https://sql.telemetry.mozilla.org/queries/64460/source */ CREATE TEMP FUNCTION udf_js_json_extract_missing_cols (input STRING, indicates_node ARRAY<STRING>, known_nodes ARRAY<STRING>) RETURNS ARRAY<STRING> LANGUAGE js AS """ if (input == null || input == '{}') { return null; } var key_paths = []; var parsed = JSON.parse(input); var remaining_paths = Object.keys(parsed).map(k => [k]); while(remaining_paths && remaining_paths.length){ var next_keypath = remaining_paths.pop(); var next_val = next_keypath.reduce((obj, k) => obj[k], parsed); var is_node = true; if(typeof next_val === 'object' && next_val !== null && !Array.isArray(next_val)) { is_node = false; var keys = Object.keys(next_val); if(known_nodes.indexOf(next_keypath[next_keypath.length - 1]) > -1){ is_node = true; } var keys_indicating_node = keys.filter( e => indicates_node.indexOf(e) > -1 ) if(keys_indicating_node.length > 0){ is_node = true; } if(!is_node){ Object.keys(next_val).map(k => remaining_paths.push(next_keypath.concat([k])) ); } } if(is_node) { key_paths.push(next_keypath.map(k => '`' + String(k) + '`').join('.')); } } return key_paths; """; -- Tests WITH addl_properties AS ( SELECT '{"first": {"second": {"third": "hello world"}, "other-second": "value"}}' AS additional_properties ), -- extracted AS ( SELECT udf_js_json_extract_missing_cols(additional_properties, ARRAY[], ARRAY[]) AS no_args, udf_js_json_extract_missing_cols(additional_properties, ARRAY['third'], ARRAY[]) AS indicates_node_arg, udf_js_json_extract_missing_cols(additional_properties, ARRAY[], ARRAY['first']) AS is_node_arg FROM addl_properties ) -- SELECT assert_array_equals_any_order(no_args, ARRAY['`first`.`second`.`third`', '`first`.`other-second`']), assert_array_equals_any_order(indicates_node_arg, ARRAY['`first`.`second`', '`first`.`other-second`']), assert_array_equals_any_order(is_node_arg, ARRAY['`first`']) FROM extracted
true
0b932a9cb9c29033ffa6790e85f8efe72abc5d8b
SQL
jgialis/CSE111
/Quizzes/Quiz4/Quiz-4/queries.sql
UTF-8
2,410
4.28125
4
[]
no_license
SELECT maker, type, min AS minPrice, max AS maxPrice FROM ( SELECT maker, Product.type AS type, MIN(price) AS min, MAX(price) AS max FROM Product, PC WHERE Product.model = PC.model AND maker = 'A' AND Product.type = 'pc' UNION ALL SELECT maker, Product.type AS type, MIN(price) AS min, MAX(price) AS max FROM Product, Laptop WHERE Product.model = Laptop.model AND maker = 'A' AND Product.type = 'laptop' UNION ALL SELECT maker, Product.type AS type, MIN(price) AS min, MAX(price) AS max FROM Product, Printer WHERE Product.model = Printer.model AND maker = 'A' AND Product.type = 'printer' ORDER BY maker, type ASC) SELECT * FROM master; DROP VIEW master; SELECT * FROM PriceRange ORDER BY maker, type ASC; SELECT * FROM Makers_minMax_type; DELETE FROM PC WHERE model = 1101; SELECT maker, P.model, speed, ram, hd, price FROM Product P, PC WHERE P.model = PC.model; -- Dunnno which indexes to build? -- Use .expert for some recommendations --SQLITE Commands .eqp on .timer on -- .output out.res.noindex -- To a no index file .output out.res.index -- To a index file. ---------------------- -- You can check if index is created by .index SQLITE command .print "CREATING AN INDEX ind_" CREATE INDEX some_index_name ON Product(type) .print "FULL TABLE QUERY" SELECT * FROM product; CREATE VIEW PC_Maker(maker, model, speed, ram, hd, price) AS SELECT maker, P.model, speed, ram, hd, price FROM Product P, PC WHERE P.model = PC.model SELECT * FROM PC_Maker; SELECT maker, P.model, speed, ram, hd, price FROM Product P, PC WHERE P.model = PC.model; UPDATE Printer SET price = 999 WHERE model = 3005; DELETE FROM Laptop WHERE model = 2001; DELETE FROM PriceRange; INSERT INTO PC(model, speed, ram, hd, price) VALUES(1017, 9000, 900, 90, 99); INSERT INTO PRODUCT(maker, model, type) VALUES('C',1017, 'pc'); INSERT INTO PriceRange SELECT maker, Product.type AS type, MIN(price) AS min, MAX(price) AS max FROM Product, PC WHERE Product.model = PC.model AND maker = 'C' ORDER BY maker, type ASC WHERE Product.model = 1017; SELECT * FROM PriceRange ORDER BY maker, type ASC;
true
fe8295a087beebdcdf3f8639292e84be07cf9494
SQL
FelippeKZP/sistemaWEB
/farmacia.sql
UTF-8
18,796
3.25
3
[]
no_license
-- Estrutura da tabela `cliente` -- CREATE TABLE IF NOT EXISTS `cliente` ( `id` int ( 11 ) NOT NULL AUTO_INCREMENT, `tipo_pessoa` varchar ( 20 ) COLLATE utf8_bin NOT NULL, `nome` varchar ( 80 ) COLLATE utf8_bin NOT NULL, `cpfCnpj` varchar ( 60 ) COLLATE utf8_bin NOT NULL, `rgIe` varchar ( 60 ) COLLATE utf8_bin NOT NULL, `telefone` varchar ( 60 ) COLLATE utf8_bin NOT NULL, `email` varchar ( 60 ) COLLATE utf8_bin NOT NULL, `data_cadastro` date NOT NULL, `data_aniversario` date NOT NULL, `cep` varchar ( 60 ) COLLATE utf8_bin NOT NULL, `bairro` varchar ( 60 ) COLLATE utf8_bin NOT NULL, `rua` varchar ( 60 ) COLLATE utf8_bin NOT NULL, `numero` varchar ( 60 ) COLLATE utf8_bin NOT NULL, `estado` varchar ( 60 ) COLLATE utf8_bin NOT NULL, `cidade` varchar ( 60 ) COLLATE utf8_bin NOT NULL, `pais` varchar ( 60 ) COLLATE utf8_bin NOT NULL, PRIMARY KEY ( `id` ) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE =utf8_bin AUTO_INCREMENT=3; -- -- -------------------------------------------------------- -- -- Estrutura da tabela `compra` -- CREATE TABLE IF NOT EXISTS `compra` ( `id` int ( 11 ) NOT NULL AUTO_INCREMENT, `id_fornecedor` int ( 11 ) NOT NULL, `id_usuario` int ( 11 ) NOT NULL, `data_compra` date NOT NULL, `total_compra` float NOT NULL, `numero_nota` int ( 11 ) NOT NULL, PRIMARY KEY ( `id` ), KEY `id_fornecedor_fk1001` ( `id_fornecedor` ), KEY `id_usuario_fk1002` ( `id_usuario` ) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE =utf8_bin AUTO_INCREMENT=6; -- -- Extraindo dados da tabela `compra` -- -- -------------------------------------------------------- -- -- Estrutura da tabela `contas_pagar` -- CREATE TABLE IF NOT EXISTS `contas_pagar` ( `id` int ( 11 ) NOT NULL AUTO_INCREMENT, `tipo` int ( 11 ) NOT NULL, `descricao` varchar ( 150 ) COLLATE utf8_bin NOT NULL, `data_conta` date NOT NULL, `data_vencimento` date NOT NULL, `data_pagamento` date NOT NULL, `total` float NOT NULL, `status` tinyint ( 1 ) NOT NULL, `id_usuario` int ( 11 ) NOT NULL, PRIMARY KEY ( `id` ), KEY `id_usuario_fk1785` ( `id_usuario` ) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE =utf8_bin AUTO_INCREMENT=9; -- -- Extraindo dados da tabela `contas_pagar` -- -- -------------------------------------------------------- -- -- Estrutura da tabela `contas_receber` -- CREATE TABLE IF NOT EXISTS `contas_receber` ( `id` int ( 11 ) NOT NULL AUTO_INCREMENT, `id_venda` int ( 11 ) NOT NULL, `id_usuario` int ( 11 ) DEFAULT NULL, `parcela` varchar ( 50 ) COLLATE utf8_bin NOT NULL, `dinheiro` float NOT NULL, `troco` float NOT NULL, `data_vencimento` date NOT NULL, `data_recebimento` date NOT NULL, `valor` float NOT NULL, `status` tinyint ( 1 ) NOT NULL, PRIMARY KEY ( `id` ), KEY `id_venda_fk1315` ( `id_venda` ), KEY `id_usuario_fk1320` ( `id_usuario` ) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE =utf8_bin AUTO_INCREMENT=50; -- -- Estrutura da tabela `fornecedor` -- CREATE TABLE IF NOT EXISTS `fornecedor` ( `id` int ( 11 ) NOT NULL AUTO_INCREMENT, `razao_social` varchar ( 60 ) COLLATE utf8_bin NOT NULL, `nome_fantasia` varchar ( 60 ) COLLATE utf8_bin NOT NULL, `cnpj` int ( 60 ) NOT NULL, `ie` int ( 60 ) NOT NULL, `telefone` varchar ( 60 ) COLLATE utf8_bin NOT NULL, `data_cadastro` date NOT NULL, `cep` varchar ( 60 ) COLLATE utf8_bin NOT NULL, `bairro` varchar ( 60 ) COLLATE utf8_bin NOT NULL, `rua` varchar ( 60 ) COLLATE utf8_bin NOT NULL, `numero` varchar ( 60 ) COLLATE utf8_bin NOT NULL, `estado` varchar ( 60 ) COLLATE utf8_bin NOT NULL, `cidade` varchar ( 60 ) COLLATE utf8_bin NOT NULL, `pais` varchar ( 60 ) COLLATE utf8_bin NOT NULL, PRIMARY KEY ( `id` ) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE =utf8_bin AUTO_INCREMENT=2; -- -------------------------------------------------------- -- -- Estrutura da tabela `funcao_funcionario` -- CREATE TABLE IF NOT EXISTS `funcao_funcionario` ( `id` int ( 11 ) NOT NULL AUTO_INCREMENT, `nome` varchar ( 150 ) COLLATE utf8_bin NOT NULL, `descricao` varchar ( 200 ) COLLATE utf8_bin NOT NULL, PRIMARY KEY ( `id` ) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE =utf8_bin AUTO_INCREMENT=7; -- -------------------------------------------------------- -- -- Estrutura da tabela `funcionario` -- CREATE TABLE IF NOT EXISTS `funcionario` ( `id` int ( 11 ) NOT NULL AUTO_INCREMENT, `id_funcao` int ( 11 ) NOT NULL, `nome` varchar ( 150 ) COLLATE utf8_bin NOT NULL, `cpf` varchar ( 50 ) COLLATE utf8_bin NOT NULL, `telefone` varchar ( 50 ) COLLATE utf8_bin NOT NULL, `data_aniversario` date NOT NULL, `cep` varchar ( 100 ) COLLATE utf8_bin NOT NULL, `rg` varchar ( 100 ) COLLATE utf8_bin NOT NULL, `bairro` varchar ( 150 ) COLLATE utf8_bin NOT NULL, `rua` varchar ( 150 ) COLLATE utf8_bin NOT NULL, `numero` varchar ( 50 ) COLLATE utf8_bin NOT NULL, `carteira` varchar ( 100 ) COLLATE utf8_bin NOT NULL, `data_admissao` date NOT NULL, `salario` float NOT NULL, `estado` varchar ( 100 ) COLLATE utf8_bin NOT NULL, `cidade` varchar ( 100 ) COLLATE utf8_bin NOT NULL, `pais` varchar ( 100 ) COLLATE utf8_bin NOT NULL, PRIMARY KEY ( `id` ), KEY `id_funcao_fk1457` ( `id_funcao` ) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE =utf8_bin AUTO_INCREMENT=2; -- -- -------------------------------------------------------- -- -- Estrutura da tabela `grupo_permissao` -- CREATE TABLE IF NOT EXISTS `grupo_permissao` ( `id` int ( 11 ) NOT NULL AUTO_INCREMENT, `id_permissao` varchar ( 80 ) COLLATE utf8_bin NOT NULL, `nome` varchar ( 50 ) COLLATE utf8_bin NOT NULL, PRIMARY KEY ( `id` ) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE =utf8_bin AUTO_INCREMENT=3; -- -- -------------------------------------------------------- -- -- Estrutura da tabela `grupo_produto` -- CREATE TABLE IF NOT EXISTS `grupo_produto` ( `id` int ( 11 ) NOT NULL AUTO_INCREMENT, `nome` varchar ( 50 ) COLLATE utf8_bin NOT NULL, PRIMARY KEY ( `id` ) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE =utf8_bin AUTO_INCREMENT=5; -- -- -------------------------------------------------------- -- -- Estrutura da tabela `historico_estoque` -- CREATE TABLE IF NOT EXISTS `historico_estoque` ( `id` int ( 11 ) NOT NULL AUTO_INCREMENT, `id_produto` int ( 11 ) NOT NULL, `id_usuario` int ( 11 ) NOT NULL, `acao` varchar ( 50 ) COLLATE utf8_bin NOT NULL, `data_acao` date NOT NULL, PRIMARY KEY ( `id` ), KEY `id_produto_fk1007` ( `id_produto` ), KEY `id_usuario_fk1008` ( `id_usuario` ) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE =utf8_bin AUTO_INCREMENT=90; -- -- Estrutura da tabela `item_compra` -- CREATE TABLE IF NOT EXISTS `item_compra` ( `id` int ( 11 ) NOT NULL AUTO_INCREMENT, `id_lote_produto` int ( 11 ) NOT NULL, `quantidade` int ( 11 ) NOT NULL, `total` float NOT NULL, `id_compra` int ( 11 ) NOT NULL, PRIMARY KEY ( `id` ), KEY `id_lote_produto_fk1009` ( `id_lote_produto` ), KEY `id_compra_fk1100` ( `id_compra` ) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE =utf8_bin AUTO_INCREMENT=10; -- -- -------------------------------------------------------- -- -- Estrutura da tabela `item_perda` -- CREATE TABLE IF NOT EXISTS `item_perda` ( `id` int ( 11 ) NOT NULL AUTO_INCREMENT, `id_perda` int ( 11 ) NOT NULL, `id_lote_produto` int ( 11 ) NOT NULL, `quantidade` int ( 11 ) NOT NULL, `total` float NOT NULL, PRIMARY KEY ( `id` ), UNIQUE KEY `id_lote_produto_fk1120` ( `id_lote_produto` ), KEY `id_perda_fk1110` ( `id_perda` ) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE =utf8_bin AUTO_INCREMENT=1; -- -------------------------------------------------------- -- -- Estrutura da tabela `item_venda` -- CREATE TABLE IF NOT EXISTS `item_venda` ( `id` int ( 11 ) NOT NULL AUTO_INCREMENT, `id_venda` int ( 11 ) NOT NULL, `id_lote_produto` int ( 11 ) NOT NULL, `quantidade` int ( 11 ) NOT NULL, `total` float NOT NULL, PRIMARY KEY ( `id` ), KEY `id_venda_fk1130` ( `id_venda` ), KEY `id_lote_produto_fk1140` ( `id_lote_produto` ) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE =utf8_bin AUTO_INCREMENT=32; -- -- Extraindo dados da tabela `item_venda` -- -- -------------------------------------------------------- -- -- Estrutura da tabela `lote_produto` -- CREATE TABLE IF NOT EXISTS `lote_produto` ( `id` int ( 11 ) NOT NULL AUTO_INCREMENT, `id_fornecedor` int ( 11 ) NOT NULL, `id_produto` int ( 11 ) NOT NULL, `numero_lote` varchar ( 60 ) COLLATE utf8_bin NOT NULL, `data_fabricacao` date NOT NULL, `data_vencimento` date NOT NULL, `quantidade` int ( 11 ) NOT NULL, PRIMARY KEY ( `id` ), KEY `id_fornecedor_fk1150` ( `id_fornecedor` ), KEY `id_produto_fk1160` ( `id_produto` ) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE =utf8_bin AUTO_INCREMENT=4; -- -- Extraindo dados da tabela `lote_produto` -- -- -------------------------------------------------------- -- -- Estrutura da tabela `notificacao` -- CREATE TABLE IF NOT EXISTS `notificacao` ( `id` int ( 11 ) NOT NULL AUTO_INCREMENT, `id_usuario` int ( 100 ) NOT NULL, `id_usuarioEnviar` int ( 11 ) NOT NULL, `data_notificacao` date NOT NULL, `tipo_notificacao` varchar ( 100 ) COLLATE utf8_bin NOT NULL, `propriedades` text COLLATE utf8_bin NOT NULL, `status` tinyint ( 1 ) NOT NULL, PRIMARY KEY ( `id` ) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE =utf8_bin AUTO_INCREMENT=4; -- -- Extraindo dados da tabela `notificacao` -- -- -------------------------------------------------------- -- -- Estrutura da tabela `perda` -- CREATE TABLE IF NOT EXISTS `perda` ( `id` int ( 11 ) NOT NULL AUTO_INCREMENT, `id_usuario` int ( 11 ) NOT NULL, `data_perda` int ( 11 ) NOT NULL, `total_perda` int ( 11 ) NOT NULL, `motivo` text COLLATE utf8_bin NOT NULL, PRIMARY KEY ( `id` ), KEY `id_usuario_fk1170` ( `id_usuario` ) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE =utf8_bin AUTO_INCREMENT=1; -- -------------------------------------------------------- -- -- Estrutura da tabela `permissao` -- CREATE TABLE IF NOT EXISTS `permissao` ( `id` int ( 11 ) NOT NULL AUTO_INCREMENT, `nome` varchar ( 50 ) COLLATE utf8_bin NOT NULL, `descricao` varchar ( 50 ) COLLATE utf8_bin NOT NULL, PRIMARY KEY ( `id` ) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE =utf8_bin AUTO_INCREMENT=6; -- -- Extraindo dados da tabela `permissao` -- -- -------------------------------------------------------- -- -- Estrutura da tabela `produto` -- CREATE TABLE IF NOT EXISTS `produto` ( `id` int ( 11 ) NOT NULL AUTO_INCREMENT, `nome` varchar ( 60 ) COLLATE utf8_bin NOT NULL, `cod_barras` varchar ( 60 ) COLLATE utf8_bin NOT NULL, `quantidade` int ( 11 ) NOT NULL, `quantidade_min` int ( 11 ) NOT NULL, `preco` float NOT NULL, `preco_compra` float NOT NULL, `lucro_venda` float NOT NULL, `margem_bruta` float NOT NULL, `status` tinyint ( 1 ) NOT NULL, `id_grupo_produto` int ( 11 ) NOT NULL, PRIMARY KEY ( `id` ), KEY `id_grupo_produto_fk1299` ( `id_grupo_produto` ) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE =utf8_bin AUTO_INCREMENT=27; -- -- Extraindo dados da tabela `produto` -- -- -------------------------------------------------------- -- -- Estrutura da tabela `produto_imagem` -- CREATE TABLE IF NOT EXISTS `produto_imagem` ( `id` int ( 11 ) NOT NULL AUTO_INCREMENT, `id_produto` int ( 11 ) NOT NULL, `url` varchar ( 100 ) COLLATE utf8_bin NOT NULL, PRIMARY KEY ( `id` ), KEY `id_produto_fk1227` ( `id_produto` ) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE =utf8_bin AUTO_INCREMENT=25; -- -- Extraindo dados da tabela `produto_imagem` -- -- -------------------------------------------------------- -- -- Estrutura da tabela `usuario` -- CREATE TABLE IF NOT EXISTS `usuario` ( `id` int ( 11 ) NOT NULL AUTO_INCREMENT, `id_grupo_permissao` int ( 11 ) NOT NULL, `nome` varchar ( 50 ) COLLATE utf8_bin NOT NULL, `email` varchar ( 50 ) COLLATE utf8_bin NOT NULL, `senha` varchar ( 32 ) COLLATE utf8_bin NOT NULL, `status` tinyint ( 1 ) NOT NULL, PRIMARY KEY ( `id` ), KEY `id_grupo_permissao_fk1180` ( `id_grupo_permissao` ) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE =utf8_bin AUTO_INCREMENT=21; -- -- Extraindo dados da tabela `usuario` -- -- -------------------------------------------------------- -- -- Estrutura da tabela `usuario_imagem` -- CREATE TABLE IF NOT EXISTS `usuario_imagem` ( `id` int ( 11 ) NOT NULL AUTO_INCREMENT, `id_usuario` int ( 11 ) NOT NULL, `url` varchar ( 100 ) COLLATE utf8_bin NOT NULL, PRIMARY KEY ( `id` ), KEY `id_usuario_fk2221` ( `id_usuario` ) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE =utf8_bin AUTO_INCREMENT=9; -- -- -- -------------------------------------------------------- -- -- Estrutura da tabela `usuario_token` -- CREATE TABLE IF NOT EXISTS `usuario_token` ( `id` int ( 11 ) NOT NULL AUTO_INCREMENT, `id_usuario` int ( 11 ) NOT NULL, `hash` varchar ( 32 ) COLLATE utf8_bin NOT NULL, `status` tinyint ( 1 ) NOT NULL, `data` datetime NOT NULL, PRIMARY KEY ( `id` ) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE =utf8_bin AUTO_INCREMENT=1; -- -------------------------------------------------------- -- -- Estrutura da tabela `venda` -- CREATE TABLE IF NOT EXISTS `venda` ( `id` int ( 11 ) NOT NULL AUTO_INCREMENT, `id_cliente` int ( 11 ) NOT NULL, `id_usuario` int ( 11 ) NOT NULL, `id_funcionario` int ( 11 ) NOT NULL, `data_venda` date NOT NULL, `total_venda` float NOT NULL, `tipo_pag` int ( 11 ) NOT NULL, `desconto` float NOT NULL, PRIMARY KEY ( `id` ), KEY `id_cliente_fk1190` ( `id_cliente` ), KEY `id_usuario_fk1200` ( `id_usuario` ), KEY `id_funcionario_fk1972` ( `id_funcionario` ) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE =utf8_bin AUTO_INCREMENT=31; -- -- Extraindo dados da tabela `venda` -- -- -- Constraints for dumped tables -- -- -- Limitadores para a tabela `compra` -- ALTER TABLE `compra` ADD CONSTRAINT `id_fornecedor_fk1001` FOREIGN KEY (`id_fornecedor`) REFERENCES `fornecedor` (`id`) ON DELETE NO ACTION ON UPDATE NO ACTION, ADD CONSTRAINT `id_usuario_fk1002` FOREIGN KEY (`id_usuario`) REFERENCES `usuario` (`id`) ON DELETE NO ACTION ON UPDATE NO ACTION; -- -- Limitadores para a tabela `contas_pagar` -- ALTER TABLE `contas_pagar` ADD CONSTRAINT `id_usuario_fk1785` FOREIGN KEY (`id_usuario`) REFERENCES `usuario` (`id`) ON DELETE NO ACTION ON UPDATE NO ACTION; -- -- Limitadores para a tabela `contas_receber` -- ALTER TABLE `contas_receber` ADD CONSTRAINT `id_venda_fk1315` FOREIGN KEY (`id_venda`) REFERENCES `venda` (`id`) ON DELETE NO ACTION ON UPDATE NO ACTION, ADD CONSTRAINT `id_venda_fk1320` FOREIGN KEY (`id_usuario`) REFERENCES `usuario` (`id`) ON DELETE NO ACTION ON UPDATE NO ACTION; -- -- Limitadores para a tabela `funcionario` -- ALTER TABLE `funcionario` ADD CONSTRAINT `id_funcao_fk1457` FOREIGN KEY (`id_funcao`) REFERENCES `funcao_funcionario` (`id`) ON DELETE NO ACTION ON UPDATE NO ACTION; -- -- Limitadores para a tabela `historico_estoque` -- ALTER TABLE `historico_estoque` ADD CONSTRAINT `id_produto_fk1007` FOREIGN KEY (`id_produto`) REFERENCES `produto` (`id`) ON DELETE NO ACTION ON UPDATE NO ACTION, ADD CONSTRAINT `id_usuario_fk1008` FOREIGN KEY (`id_usuario`) REFERENCES `usuario` (`id`) ON DELETE NO ACTION ON UPDATE NO ACTION; -- -- Limitadores para a tabela `item_compra` -- ALTER TABLE `item_compra` ADD CONSTRAINT `id_compra_fk1100` FOREIGN KEY (`id_compra`) REFERENCES `compra` (`id`) ON DELETE NO ACTION ON UPDATE NO ACTION, ADD CONSTRAINT `id_lote_produto_fk1009` FOREIGN KEY (`id_lote_produto`) REFERENCES `lote_produto` (`id`) ON DELETE NO ACTION ON UPDATE NO ACTION; -- -- Limitadores para a tabela `item_perda` -- ALTER TABLE `item_perda` ADD CONSTRAINT `id_lote_produto_fk1120` FOREIGN KEY (`id_lote_produto`) REFERENCES `lote_produto` (`id`) ON DELETE NO ACTION ON UPDATE NO ACTION, ADD CONSTRAINT `id_perda_fk1110` FOREIGN KEY (`id_perda`) REFERENCES `perda` (`id`) ON DELETE NO ACTION ON UPDATE NO ACTION; -- -- Limitadores para a tabela `item_venda` -- ALTER TABLE `item_venda` ADD CONSTRAINT `id_lote_produto_fk1140` FOREIGN KEY (`id_lote_produto`) REFERENCES `lote_produto` (`id`) ON DELETE NO ACTION ON UPDATE NO ACTION, ADD CONSTRAINT `id_venda_fk1130` FOREIGN KEY (`id_venda`) REFERENCES `venda` (`id`) ON DELETE NO ACTION ON UPDATE NO ACTION; -- -- Limitadores para a tabela `lote_produto` -- ALTER TABLE `lote_produto` ADD CONSTRAINT `id_fornecedor_fk1150` FOREIGN KEY (`id_fornecedor`) REFERENCES `fornecedor` (`id`) ON DELETE NO ACTION ON UPDATE NO ACTION, ADD CONSTRAINT `id_produto_fk1160` FOREIGN KEY (`id_produto`) REFERENCES `produto` (`id`) ON DELETE NO ACTION ON UPDATE NO ACTION; -- -- Limitadores para a tabela `perda` -- ALTER TABLE `perda` ADD CONSTRAINT `id_usuario_fk1170` FOREIGN KEY (`id_usuario`) REFERENCES `usuario` (`id`) ON DELETE NO ACTION ON UPDATE NO ACTION; -- -- Limitadores para a tabela `produto` -- ALTER TABLE `produto` ADD CONSTRAINT `id_grupo_produto_fk1299` FOREIGN KEY (`id_grupo_produto`) REFERENCES `grupo_produto` (`id`) ON DELETE NO ACTION; -- -- Limitadores para a tabela `produto_imagem` -- ALTER TABLE `produto_imagem` ADD CONSTRAINT `id_produto_fk1227` FOREIGN KEY (`id_produto`) REFERENCES `produto` (`id`) ON DELETE NO ACTION ON UPDATE NO ACTION; -- -- Limitadores para a tabela `usuario` -- ALTER TABLE `usuario` ADD CONSTRAINT `id_grupo_permissao_fk1180` FOREIGN KEY (`id_grupo_permissao`) REFERENCES `grupo_permissao` (`id`) ON DELETE NO ACTION ON UPDATE NO ACTION; -- -- Limitadores para a tabela `usuario_imagem` -- ALTER TABLE `usuario_imagem` ADD CONSTRAINT `id_usuario_fk2221` FOREIGN KEY (`id_usuario`) REFERENCES `usuario` (`id`) ON DELETE NO ACTION ON UPDATE NO ACTION; -- -- Limitadores para a tabela `venda` -- ALTER TABLE `venda` ADD CONSTRAINT `id_cliente_fk1190` FOREIGN KEY (`id_cliente`) REFERENCES `cliente` (`id`) ON DELETE NO ACTION ON UPDATE NO ACTION, ADD CONSTRAINT `id_funcionario_fk1972` FOREIGN KEY (`id_funcionario`) REFERENCES `funcionario` (`id`) ON DELETE NO ACTION ON UPDATE NO ACTION, ADD CONSTRAINT `id_usuario_fk1200` FOREIGN KEY ( `id_usuario` ) REFERENCES `usuario` ( `id` ) ON DELETE NO ACTION ON UPDATE NO ACTION; /*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */; /*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */; /*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */;
true
8bfa7c59a537b423f65cc6a2111b19ca296c9fc8
SQL
SamuelXing/MechanicalEngineeringTeachingWeb
/resourceSite/Resource_Site.sql
UTF-8
27,164
3.0625
3
[]
no_license
-- MySQL dump 10.13 Distrib 5.6.24, for osx10.10 (x86_64) -- -- Host: localhost Database: Resource_Site -- ------------------------------------------------------ -- Server version 5.6.24 /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; /*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */; /*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */; /*!40101 SET NAMES utf8 */; /*!40103 SET @OLD_TIME_ZONE=@@TIME_ZONE */; /*!40103 SET TIME_ZONE='+00:00' */; /*!40014 SET @OLD_UNIQUE_CHECKS=@@UNIQUE_CHECKS, UNIQUE_CHECKS=0 */; /*!40014 SET @OLD_FOREIGN_KEY_CHECKS=@@FOREIGN_KEY_CHECKS, FOREIGN_KEY_CHECKS=0 */; /*!40101 SET @OLD_SQL_MODE=@@SQL_MODE, SQL_MODE='NO_AUTO_VALUE_ON_ZERO' */; /*!40111 SET @OLD_SQL_NOTES=@@SQL_NOTES, SQL_NOTES=0 */; -- -- Table structure for table `auth_group` -- DROP TABLE IF EXISTS `auth_group`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `auth_group` ( `id` int(11) NOT NULL AUTO_INCREMENT, `name` varchar(80) COLLATE utf8_unicode_ci NOT NULL, PRIMARY KEY (`id`), UNIQUE KEY `name` (`name`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Dumping data for table `auth_group` -- /*!40000 ALTER TABLE `auth_group` DISABLE KEYS */; /*!40000 ALTER TABLE `auth_group` ENABLE KEYS */; -- -- Table structure for table `auth_group_permissions` -- DROP TABLE IF EXISTS `auth_group_permissions`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `auth_group_permissions` ( `id` int(11) NOT NULL AUTO_INCREMENT, `group_id` int(11) NOT NULL, `permission_id` int(11) NOT NULL, PRIMARY KEY (`id`), UNIQUE KEY `group_id` (`group_id`,`permission_id`), KEY `auth_group__permission_id_5c87d26f1e48e75b_fk_auth_permission_id` (`permission_id`), CONSTRAINT `auth_group__permission_id_5c87d26f1e48e75b_fk_auth_permission_id` FOREIGN KEY (`permission_id`) REFERENCES `auth_permission` (`id`), CONSTRAINT `auth_group_permission_group_id_6c0f7d0439f0cc38_fk_auth_group_id` FOREIGN KEY (`group_id`) REFERENCES `auth_group` (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Dumping data for table `auth_group_permissions` -- /*!40000 ALTER TABLE `auth_group_permissions` DISABLE KEYS */; /*!40000 ALTER TABLE `auth_group_permissions` ENABLE KEYS */; -- -- Table structure for table `auth_permission` -- DROP TABLE IF EXISTS `auth_permission`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `auth_permission` ( `id` int(11) NOT NULL AUTO_INCREMENT, `name` varchar(255) COLLATE utf8_unicode_ci NOT NULL, `content_type_id` int(11) NOT NULL, `codename` varchar(100) COLLATE utf8_unicode_ci NOT NULL, PRIMARY KEY (`id`), UNIQUE KEY `content_type_id` (`content_type_id`,`codename`), CONSTRAINT `auth__content_type_id_11959ddc276da68a_fk_django_content_type_id` FOREIGN KEY (`content_type_id`) REFERENCES `django_content_type` (`id`) ) ENGINE=InnoDB AUTO_INCREMENT=67 DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Dumping data for table `auth_permission` -- -- -- Table structure for table `auth_user` -- DROP TABLE IF EXISTS `auth_user`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `auth_user` ( `id` int(11) NOT NULL AUTO_INCREMENT, `password` varchar(128) COLLATE utf8_unicode_ci NOT NULL, `last_login` datetime(6) DEFAULT NULL, `is_superuser` tinyint(1) NOT NULL, `username` varchar(30) COLLATE utf8_unicode_ci NOT NULL, `first_name` varchar(30) COLLATE utf8_unicode_ci NOT NULL, `last_name` varchar(30) COLLATE utf8_unicode_ci NOT NULL, `email` varchar(254) COLLATE utf8_unicode_ci NOT NULL, `is_staff` tinyint(1) NOT NULL, `is_active` tinyint(1) NOT NULL, `date_joined` datetime(6) NOT NULL, PRIMARY KEY (`id`), UNIQUE KEY `username` (`username`) ) ENGINE=InnoDB AUTO_INCREMENT=27 DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Dumping data for table `auth_user` -- -- -- Table structure for table `auth_user_groups` -- DROP TABLE IF EXISTS `auth_user_groups`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `auth_user_groups` ( `id` int(11) NOT NULL AUTO_INCREMENT, `user_id` int(11) NOT NULL, `group_id` int(11) NOT NULL, PRIMARY KEY (`id`), UNIQUE KEY `user_id` (`user_id`,`group_id`), KEY `auth_user_groups_group_id_72af8b96db2db56_fk_auth_group_id` (`group_id`), CONSTRAINT `auth_user_groups_group_id_72af8b96db2db56_fk_auth_group_id` FOREIGN KEY (`group_id`) REFERENCES `auth_group` (`id`), CONSTRAINT `auth_user_groups_user_id_26b0da67bfe9fe84_fk_auth_user_id` FOREIGN KEY (`user_id`) REFERENCES `auth_user` (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Dumping data for table `auth_user_groups` -- /*!40000 ALTER TABLE `auth_user_groups` DISABLE KEYS */; /*!40000 ALTER TABLE `auth_user_groups` ENABLE KEYS */; -- -- Table structure for table `auth_user_user_permissions` -- DROP TABLE IF EXISTS `auth_user_user_permissions`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `auth_user_user_permissions` ( `id` int(11) NOT NULL AUTO_INCREMENT, `user_id` int(11) NOT NULL, `permission_id` int(11) NOT NULL, PRIMARY KEY (`id`), UNIQUE KEY `user_id` (`user_id`,`permission_id`), KEY `auth_user_u_permission_id_6c36d1634c00ce69_fk_auth_permission_id` (`permission_id`), CONSTRAINT `auth_user_u_permission_id_6c36d1634c00ce69_fk_auth_permission_id` FOREIGN KEY (`permission_id`) REFERENCES `auth_permission` (`id`), CONSTRAINT `auth_user_user_permissio_user_id_4b03aa88715ad4e_fk_auth_user_id` FOREIGN KEY (`user_id`) REFERENCES `auth_user` (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Dumping data for table `auth_user_user_permissions` -- /*!40000 ALTER TABLE `auth_user_user_permissions` DISABLE KEYS */; /*!40000 ALTER TABLE `auth_user_user_permissions` ENABLE KEYS */; -- -- Table structure for table `blogManagement_blog` -- DROP TABLE IF EXISTS `blogManagement_blog`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `blogManagement_blog` ( `id` int(11) NOT NULL AUTO_INCREMENT, `title` varchar(50) COLLATE utf8_unicode_ci NOT NULL, `summary` varchar(200) COLLATE utf8_unicode_ci NOT NULL, `content` longtext COLLATE utf8_unicode_ci NOT NULL, `created_at` datetime(6) NOT NULL, `userName_id` int(11) NOT NULL, `is_top` tinyint(1) NOT NULL, `pub_at` datetime(6) NOT NULL, `status` int(11) NOT NULL, `update_at` datetime(6), `view_times` int(11) NOT NULL, PRIMARY KEY (`id`), KEY `blogManagement_blog_userName_id_4f75c12e33d0602a_fk_auth_user_id` (`userName_id`), CONSTRAINT `blogManagement_blog_userName_id_4f75c12e33d0602a_fk_auth_user_id` FOREIGN KEY (`userName_id`) REFERENCES `auth_user` (`id`) ) ENGINE=InnoDB AUTO_INCREMENT=3 DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Dumping data for table `blogManagement_blog` -- -- -- Table structure for table `blogManagement_comments` -- DROP TABLE IF EXISTS `blogManagement_comments`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `blogManagement_comments` ( `id` int(11) NOT NULL AUTO_INCREMENT, `content` text COLLATE utf8_unicode_ci, `created_at` datetime(6) NOT NULL, `author_id` int(11) DEFAULT NULL, `blog_id` int(11), PRIMARY KEY (`id`), KEY `blogManagement_comments_64458f32` (`blog_id`), KEY `blogManagement_commen_author_id_66033de0b7256192_fk_auth_user_id` (`author_id`), CONSTRAINT `blogManagemen_blog_id_47e840fb56be2a35_fk_blogManagement_blog_id` FOREIGN KEY (`blog_id`) REFERENCES `blogManagement_blog` (`id`), CONSTRAINT `blogManagement_commen_author_id_66033de0b7256192_fk_auth_user_id` FOREIGN KEY (`author_id`) REFERENCES `auth_user` (`id`) ) ENGINE=InnoDB AUTO_INCREMENT=6 DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Dumping data for table `blogManagement_comments` -- -- -- Table structure for table `classManagement_chapters` -- DROP TABLE IF EXISTS `classManagement_chapters`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `classManagement_chapters` ( `id` int(11) NOT NULL AUTO_INCREMENT, `name` varchar(100) COLLATE utf8_unicode_ci NOT NULL, `intro` varchar(200) COLLATE utf8_unicode_ci DEFAULT NULL, `created` datetime(6) NOT NULL, `image` varchar(100) COLLATE utf8_unicode_ci NOT NULL, `course_id` int(11) NOT NULL, PRIMARY KEY (`id`), KEY `classManagement_chapters_ea134da7` (`course_id`), CONSTRAINT `classMa_course_id_7a16f1996ef714a2_fk_classManagement_courses_id` FOREIGN KEY (`course_id`) REFERENCES `classManagement_courses` (`id`) ) ENGINE=InnoDB AUTO_INCREMENT=19 DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Dumping data for table `classManagement_chapters` -- -- -- Table structure for table `classManagement_courses` -- DROP TABLE IF EXISTS `classManagement_courses`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `classManagement_courses` ( `id` int(11) NOT NULL AUTO_INCREMENT, `name` varchar(50) COLLATE utf8_unicode_ci NOT NULL, `intro` varchar(200) COLLATE utf8_unicode_ci DEFAULT NULL, `created` datetime(6) NOT NULL, `updated` datetime(6), `status` int(11) NOT NULL, `is_display` tinyint(1) NOT NULL, PRIMARY KEY (`id`) ) ENGINE=InnoDB AUTO_INCREMENT=5 DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Dumping data for table `classManagement_courses` -- -- -- Table structure for table `classManagement_photolist` -- DROP TABLE IF EXISTS `classManagement_photolist`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `classManagement_photolist` ( `id` int(11) NOT NULL AUTO_INCREMENT, `title` varchar(50) COLLATE utf8_unicode_ci NOT NULL, `file` varchar(100) COLLATE utf8_unicode_ci NOT NULL, `created` datetime(6) NOT NULL, `photo_id` int(11) NOT NULL, PRIMARY KEY (`id`), KEY `classMana_photo_id_33c02ea0f7452287_fk_classManagement_photos_id` (`photo_id`), CONSTRAINT `classMana_photo_id_33c02ea0f7452287_fk_classManagement_photos_id` FOREIGN KEY (`photo_id`) REFERENCES `classManagement_photos` (`id`) ) ENGINE=InnoDB AUTO_INCREMENT=3 DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Dumping data for table `classManagement_photolist` -- -- -- Table structure for table `classManagement_photos` -- DROP TABLE IF EXISTS `classManagement_photos`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `classManagement_photos` ( `id` int(11) NOT NULL AUTO_INCREMENT, `title` varchar(50) COLLATE utf8_unicode_ci NOT NULL, `intro` varchar(200) COLLATE utf8_unicode_ci NOT NULL, `file` varchar(100) COLLATE utf8_unicode_ci NOT NULL, `created` datetime(6) NOT NULL, `chap_id` int(11) NOT NULL, PRIMARY KEY (`id`), KEY `classMana_chap_id_752f254fcac0ce56_fk_classManagement_section_id` (`chap_id`), CONSTRAINT `classMana_chap_id_752f254fcac0ce56_fk_classManagement_section_id` FOREIGN KEY (`chap_id`) REFERENCES `classManagement_section` (`id`) ) ENGINE=InnoDB AUTO_INCREMENT=2 DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Dumping data for table `classManagement_photos` -- -- -- Table structure for table `classManagement_reply` -- DROP TABLE IF EXISTS `classManagement_reply`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `classManagement_reply` ( `id` int(11) NOT NULL AUTO_INCREMENT, `content` text COLLATE utf8_unicode_ci, `created` datetime(6) NOT NULL, `author_id` int(11) NOT NULL, `video_id` int(11) NOT NULL, PRIMARY KEY (`id`), KEY `classManagement_reply_author_id_7e08b248f9eed112_fk_auth_user_id` (`author_id`), KEY `classManagement_reply_b58b747e` (`video_id`), CONSTRAINT `classManag_video_id_2da7755d2fc62820_fk_classManagement_video_id` FOREIGN KEY (`video_id`) REFERENCES `classManagement_video` (`id`), CONSTRAINT `classManagement_reply_author_id_7e08b248f9eed112_fk_auth_user_id` FOREIGN KEY (`author_id`) REFERENCES `auth_user` (`id`) ) ENGINE=InnoDB AUTO_INCREMENT=3 DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Dumping data for table `classManagement_reply` -- -- -- Table structure for table `classManagement_section` -- DROP TABLE IF EXISTS `classManagement_section`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `classManagement_section` ( `id` int(11) NOT NULL AUTO_INCREMENT, `name` varchar(100) COLLATE utf8_unicode_ci NOT NULL, `intro` varchar(200) COLLATE utf8_unicode_ci DEFAULT NULL, `created` datetime(6) NOT NULL, `chap_id` int(11) NOT NULL, PRIMARY KEY (`id`), KEY `classMan_chap_id_2bbc625a0a63e901_fk_classManagement_chapters_id` (`chap_id`), CONSTRAINT `classMan_chap_id_2bbc625a0a63e901_fk_classManagement_chapters_id` FOREIGN KEY (`chap_id`) REFERENCES `classManagement_chapters` (`id`) ) ENGINE=InnoDB AUTO_INCREMENT=10 DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Dumping data for table `classManagement_section` -- -- -- Table structure for table `classManagement_video` -- DROP TABLE IF EXISTS `classManagement_video`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `classManagement_video` ( `id` int(11) NOT NULL AUTO_INCREMENT, `title` varchar(100) COLLATE utf8_unicode_ci NOT NULL, `intro` varchar(200) COLLATE utf8_unicode_ci DEFAULT NULL, `image` varchar(100) COLLATE utf8_unicode_ci NOT NULL, `video` varchar(100) COLLATE utf8_unicode_ci NOT NULL, `created` datetime(6) NOT NULL, `hits` int(11) NOT NULL, `permission` tinyint(1) NOT NULL, `is_demo` tinyint(1) NOT NULL, `chap_id` int(11) NOT NULL, `user_id` int(11) NOT NULL, PRIMARY KEY (`id`), KEY `classMana_chap_id_19a34d4c8e2e588c_fk_classManagement_section_id` (`chap_id`), KEY `classManagement_video_user_id_2f38a7ccd3d322a6_fk_auth_user_id` (`user_id`), CONSTRAINT `classMana_chap_id_19a34d4c8e2e588c_fk_classManagement_section_id` FOREIGN KEY (`chap_id`) REFERENCES `classManagement_section` (`id`), CONSTRAINT `classManagement_video_user_id_2f38a7ccd3d322a6_fk_auth_user_id` FOREIGN KEY (`user_id`) REFERENCES `auth_user` (`id`) ) ENGINE=InnoDB AUTO_INCREMENT=2 DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Dumping data for table `classManagement_video` -- -- -- Table structure for table `django_admin_log` -- DROP TABLE IF EXISTS `django_admin_log`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `django_admin_log` ( `id` int(11) NOT NULL AUTO_INCREMENT, `action_time` datetime(6) NOT NULL, `object_id` longtext COLLATE utf8_unicode_ci, `object_repr` varchar(200) COLLATE utf8_unicode_ci NOT NULL, `action_flag` smallint(5) unsigned NOT NULL, `change_message` longtext COLLATE utf8_unicode_ci NOT NULL, `content_type_id` int(11) DEFAULT NULL, `user_id` int(11) NOT NULL, PRIMARY KEY (`id`), KEY `django_content_type_id_b73a48e797245f1_fk_django_content_type_id` (`content_type_id`), KEY `django_admin_log_user_id_bb7875fe8b09444_fk_auth_user_id` (`user_id`), CONSTRAINT `django_admin_log_user_id_bb7875fe8b09444_fk_auth_user_id` FOREIGN KEY (`user_id`) REFERENCES `auth_user` (`id`), CONSTRAINT `django_content_type_id_b73a48e797245f1_fk_django_content_type_id` FOREIGN KEY (`content_type_id`) REFERENCES `django_content_type` (`id`) ) ENGINE=InnoDB AUTO_INCREMENT=73 DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Dumping data for table `django_admin_log` -- -- -- Table structure for table `django_content_type` -- DROP TABLE IF EXISTS `django_content_type`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `django_content_type` ( `id` int(11) NOT NULL AUTO_INCREMENT, `app_label` varchar(100) COLLATE utf8_unicode_ci NOT NULL, `model` varchar(100) COLLATE utf8_unicode_ci NOT NULL, PRIMARY KEY (`id`), UNIQUE KEY `django_content_type_app_label_7e354ef23fc17cd1_uniq` (`app_label`,`model`) ) ENGINE=InnoDB AUTO_INCREMENT=23 DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Dumping data for table `django_content_type` -- -- -- Table structure for table `django_migrations` -- DROP TABLE IF EXISTS `django_migrations`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `django_migrations` ( `id` int(11) NOT NULL AUTO_INCREMENT, `app` varchar(255) COLLATE utf8_unicode_ci NOT NULL, `name` varchar(255) COLLATE utf8_unicode_ci NOT NULL, `applied` datetime(6) NOT NULL, PRIMARY KEY (`id`) ) ENGINE=InnoDB AUTO_INCREMENT=35 DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Dumping data for table `django_migrations` -- -- -- Table structure for table `django_session` -- DROP TABLE IF EXISTS `django_session`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `django_session` ( `session_key` varchar(40) COLLATE utf8_unicode_ci NOT NULL, `session_data` longtext COLLATE utf8_unicode_ci NOT NULL, `expire_date` datetime(6) NOT NULL, PRIMARY KEY (`session_key`), KEY `django_session_de54fa62` (`expire_date`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Dumping data for table `django_session` -- -- -- Table structure for table `forumManagement_node` -- DROP TABLE IF EXISTS `forumManagement_node`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `forumManagement_node` ( `id` int(11) NOT NULL AUTO_INCREMENT, `name` varchar(200) COLLATE utf8_unicode_ci DEFAULT NULL, `introduction` varchar(500) COLLATE utf8_unicode_ci DEFAULT NULL, `created` datetime(6) NOT NULL, `topic_count` int(11) DEFAULT NULL, `plane_id` int(11), PRIMARY KEY (`id`), KEY `forumManagement_node_9defd8e5` (`plane_id`), CONSTRAINT `forumManag_plane_id_2d504778c4b971e0_fk_forumManagement_plane_id` FOREIGN KEY (`plane_id`) REFERENCES `forumManagement_plane` (`id`) ) ENGINE=InnoDB AUTO_INCREMENT=4 DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Dumping data for table `forumManagement_node` -- -- -- Table structure for table `forumManagement_plane` -- DROP TABLE IF EXISTS `forumManagement_plane`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `forumManagement_plane` ( `id` int(11) NOT NULL AUTO_INCREMENT, `name` varchar(200) COLLATE utf8_unicode_ci DEFAULT NULL, `created` datetime(6) NOT NULL, PRIMARY KEY (`id`) ) ENGINE=InnoDB AUTO_INCREMENT=2 DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Dumping data for table `forumManagement_plane` -- -- -- Table structure for table `forumManagement_reply` -- DROP TABLE IF EXISTS `forumManagement_reply`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `forumManagement_reply` ( `id` int(11) NOT NULL AUTO_INCREMENT, `content` text COLLATE utf8_unicode_ci, `created` datetime(6) DEFAULT NULL, `updated` datetime(6) DEFAULT NULL, `up_vote` int(11) DEFAULT NULL, `down_vote` int(11) DEFAULT NULL, `last_touched` datetime(6) DEFAULT NULL, `author_id` int(11) NOT NULL, `topic_id` int(11), PRIMARY KEY (`id`), KEY `forumManagement_reply_author_id_3bd22e385a2058f9_fk_auth_user_id` (`author_id`), KEY `forumManagement_reply_19b4d727` (`topic_id`), CONSTRAINT `forumManag_topic_id_33c777ed46d3fef6_fk_forumManagement_topic_id` FOREIGN KEY (`topic_id`) REFERENCES `forumManagement_topic` (`id`), CONSTRAINT `forumManagement_reply_author_id_3bd22e385a2058f9_fk_auth_user_id` FOREIGN KEY (`author_id`) REFERENCES `auth_user` (`id`) ) ENGINE=InnoDB AUTO_INCREMENT=12 DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Dumping data for table `forumManagement_reply` -- -- -- Table structure for table `forumManagement_topic` -- DROP TABLE IF EXISTS `forumManagement_topic`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `forumManagement_topic` ( `id` int(11) NOT NULL AUTO_INCREMENT, `title` varchar(160) COLLATE utf8_unicode_ci NOT NULL, `content` longtext COLLATE utf8_unicode_ci, `hits` int(11) NOT NULL, `created` datetime(6) NOT NULL, `updated` datetime(6) DEFAULT NULL, `reply_count` int(11) DEFAULT NULL, `up_vote` int(11) DEFAULT NULL, `down_vote` int(11) DEFAULT NULL, `last_replied_time` datetime(6) DEFAULT NULL, `last_touched` datetime(6) DEFAULT NULL, `author_id` int(11) NOT NULL, `node_id` int(11) DEFAULT NULL, PRIMARY KEY (`id`), KEY `forumManagement_topic_author_id_53a2211be83287f_fk_auth_user_id` (`author_id`), KEY `forumManagem_node_id_57ae96eb6c813f8d_fk_forumManagement_node_id` (`node_id`), CONSTRAINT `forumManagem_node_id_57ae96eb6c813f8d_fk_forumManagement_node_id` FOREIGN KEY (`node_id`) REFERENCES `forumManagement_node` (`id`), CONSTRAINT `forumManagement_topic_author_id_53a2211be83287f_fk_auth_user_id` FOREIGN KEY (`author_id`) REFERENCES `auth_user` (`id`) ) ENGINE=InnoDB AUTO_INCREMENT=24 DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Dumping data for table `forumManagement_topic` -- -- -- Table structure for table `forumManagement_vote` -- DROP TABLE IF EXISTS `forumManagement_vote`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `forumManagement_vote` ( `id` int(11) NOT NULL AUTO_INCREMENT, `status` int(11) DEFAULT NULL, `involved_type` int(11) DEFAULT NULL, `occurrence_time` datetime(6) DEFAULT NULL, `involved_reply_id` int(11) DEFAULT NULL, `involved_topic_id` int(11) DEFAULT NULL, `involved_user_id` int(11) DEFAULT NULL, `trigger_user_id` int(11) DEFAULT NULL, PRIMARY KEY (`id`), KEY `f_involved_reply_id_1a668f308a300194_fk_forumManagement_reply_id` (`involved_reply_id`), KEY `fo_involved_topic_id_7799949a7ab8cdb_fk_forumManagement_topic_id` (`involved_topic_id`), KEY `forumManagemen_involved_user_id_17372f6a94ff9e2f_fk_auth_user_id` (`involved_user_id`), KEY `forumManagement_trigger_user_id_17a9127ec341e3d4_fk_auth_user_id` (`trigger_user_id`), CONSTRAINT `f_involved_reply_id_1a668f308a300194_fk_forumManagement_reply_id` FOREIGN KEY (`involved_reply_id`) REFERENCES `forumManagement_reply` (`id`), CONSTRAINT `fo_involved_topic_id_7799949a7ab8cdb_fk_forumManagement_topic_id` FOREIGN KEY (`involved_topic_id`) REFERENCES `forumManagement_topic` (`id`), CONSTRAINT `forumManagemen_involved_user_id_17372f6a94ff9e2f_fk_auth_user_id` FOREIGN KEY (`involved_user_id`) REFERENCES `auth_user` (`id`), CONSTRAINT `forumManagement_trigger_user_id_17a9127ec341e3d4_fk_auth_user_id` FOREIGN KEY (`trigger_user_id`) REFERENCES `auth_user` (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Dumping data for table `forumManagement_vote` -- -- -- Table structure for table `userManagement_normalusers` -- DROP TABLE IF EXISTS `userManagement_normalusers`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `userManagement_normalusers` ( `id` int(11) NOT NULL AUTO_INCREMENT, `membership` tinyint(1) NOT NULL, `userName` varchar(50) COLLATE utf8_unicode_ci NOT NULL, `signature` varchar(200) COLLATE utf8_unicode_ci NOT NULL, `created_at` datetime(6) NOT NULL, `user_id` int(11), PRIMARY KEY (`id`), UNIQUE KEY `user_id` (`user_id`), CONSTRAINT `userManagement_normalus_user_id_2de7d48ff2688d1a_fk_auth_user_id` FOREIGN KEY (`user_id`) REFERENCES `auth_user` (`id`) ) ENGINE=InnoDB AUTO_INCREMENT=37 DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Dumping data for table `userManagement_normalusers` -- -- -- Table structure for table `userManagement_payment` -- DROP TABLE IF EXISTS `userManagement_payment`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `userManagement_payment` ( `id` int(11) NOT NULL AUTO_INCREMENT, `payment` decimal(10,2) NOT NULL, `payed_at` datetime(6) NOT NULL, `user_id` int(11) NOT NULL, PRIMARY KEY (`id`), KEY `userManagement_payment_e8701ad4` (`user_id`), CONSTRAINT `userManagement_payment_user_id_57c23bc00978f4c5_fk` FOREIGN KEY (`user_id`) REFERENCES `userManagement_normalusers` (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Dumping data for table `userManagement_payment` -- /*!40103 SET TIME_ZONE=@OLD_TIME_ZONE */; /*!40101 SET SQL_MODE=@OLD_SQL_MODE */; /*!40014 SET FOREIGN_KEY_CHECKS=@OLD_FOREIGN_KEY_CHECKS */; /*!40014 SET UNIQUE_CHECKS=@OLD_UNIQUE_CHECKS */; /*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */; /*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */; /*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */; /*!40111 SET SQL_NOTES=@OLD_SQL_NOTES */; -- Dump completed on 2016-06-06 16:47:50
true
28d554ce51688ce2e360271d39088aa8b9533c42
SQL
charuzain/BootcampX
/4_queries/assistance_requests_data.sql
UTF-8
436
3.59375
4
[]
no_license
SELECT teachers.name AS teacher , students.name AS student, assignments.name AS assignments, (assistance_requests.completed_at - assistance_requests.started_at)AS duration FROM assistance_requests JOIN teachers ON assistance_requests.teacher_id = teachers.id JOIN students ON assistance_requests.student_id = students.id JOIN assignments ON assistance_requests.assignment_id = assignments.id ORDER BY duration;
true
1b486faeb85e60b9ec4b16b31ba73266ced63963
SQL
dburr/CXPS
/sql/createTables.sql
UTF-8
14,839
3.390625
3
[]
no_license
-- -------------------------------------------------------- -- Host: 127.0.0.1 -- Server version: 5.7.11 - MySQL Community Server (GPL) -- Server OS: Win64 -- HeidiSQL Version: 9.4.0.5125 -- -------------------------------------------------------- /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; /*!40101 SET NAMES utf8 */; /*!50503 SET NAMES utf8mb4 */; /*!40014 SET @OLD_FOREIGN_KEY_CHECKS=@@FOREIGN_KEY_CHECKS, FOREIGN_KEY_CHECKS=0 */; /*!40101 SET @OLD_SQL_MODE=@@SQL_MODE, SQL_MODE='NO_AUTO_VALUE_ON_ZERO' */; -- Dumping structure for procedure cxps.resetDatabase DELIMITER // CREATE DEFINER=`cxps`@`localhost` PROCEDURE `resetDatabase`() BEGIN DELETE FROM users; ALTER TABLE users AUTO_INCREMENT = 1; ALTER TABLE units AUTO_INCREMENT = 1; END// DELIMITER ; -- Dumping structure for table cxps.server_settings CREATE TABLE IF NOT EXISTS `server_settings` ( `setting_name` varchar(24) COLLATE utf8_unicode_ci NOT NULL, `value` varchar(1024) COLLATE utf8_unicode_ci DEFAULT NULL, PRIMARY KEY (`setting_name`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci; -- Data exporting was unselected. -- Dumping structure for table cxps.units CREATE TABLE IF NOT EXISTS `units` ( `user_id` int(10) unsigned NOT NULL, `unit_owning_user_id` int(10) unsigned NOT NULL AUTO_INCREMENT, `unit_id` smallint(5) unsigned NOT NULL DEFAULT '1', `exp` smallint(5) unsigned NOT NULL DEFAULT '0', `next_exp` smallint(5) unsigned NOT NULL DEFAULT '6', `level` tinyint(3) unsigned NOT NULL DEFAULT '1', `max_level` tinyint(3) unsigned NOT NULL DEFAULT '30', `rank` tinyint(1) unsigned NOT NULL DEFAULT '1', `max_rank` tinyint(1) unsigned NOT NULL DEFAULT '2', `love` smallint(4) unsigned NOT NULL DEFAULT '0', `max_love` smallint(4) unsigned NOT NULL DEFAULT '25', `unit_skill_level` tinyint(1) unsigned NOT NULL DEFAULT '0', `unit_skill_exp` smallint(5) unsigned NOT NULL DEFAULT '0', `max_hp` tinyint(2) unsigned NOT NULL DEFAULT '2', `removable_skill_capacity` tinyint(1) unsigned NOT NULL DEFAULT '0', `max_removable_skill_capacity` tinyint(1) unsigned NOT NULL DEFAULT '0', `favorite_flag` tinyint(1) unsigned NOT NULL DEFAULT '0', `display_rank` tinyint(1) unsigned NOT NULL DEFAULT '1', `deleted` tinyint(1) unsigned NOT NULL DEFAULT '0', `stat_smile` smallint(5) unsigned NOT NULL DEFAULT '0', `stat_pure` smallint(5) unsigned NOT NULL DEFAULT '0', `stat_cool` smallint(5) unsigned NOT NULL DEFAULT '0', `attribute` tinyint(1) unsigned NOT NULL DEFAULT '1', `insert_date` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP, PRIMARY KEY (`unit_owning_user_id`), KEY `fk_unit_owner` (`user_id`), CONSTRAINT `fk_unit_owner` FOREIGN KEY (`user_id`) REFERENCES `users` (`user_id`) ON DELETE CASCADE ON UPDATE CASCADE ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci; -- Data exporting was unselected. -- Dumping structure for table cxps.users CREATE TABLE IF NOT EXISTS `users` ( `user_id` int(10) unsigned NOT NULL AUTO_INCREMENT, `name` varchar(10) COLLATE utf8_unicode_ci NOT NULL DEFAULT 'No Name', `level` smallint(5) unsigned NOT NULL DEFAULT '2', `exp` mediumint(7) unsigned NOT NULL DEFAULT '5', `next_exp` mediumint(7) unsigned NOT NULL DEFAULT '6', `previous_exp` mediumint(7) unsigned NOT NULL DEFAULT '0', `game_coin` int(10) unsigned NOT NULL DEFAULT '500000', `sns_coin` int(10) unsigned NOT NULL DEFAULT '1000', `free_sns_coin` int(10) unsigned NOT NULL DEFAULT '1000', `paid_sns_coin` int(10) unsigned NOT NULL DEFAULT '0', `social_point` int(10) unsigned NOT NULL DEFAULT '500000', `unit_max` smallint(6) unsigned NOT NULL DEFAULT '120', `energy_max` smallint(5) unsigned NOT NULL DEFAULT '26', `energy_full_time` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP, `over_max_energy` smallint(5) unsigned NOT NULL DEFAULT '0', `friend_max` smallint(5) unsigned NOT NULL DEFAULT '10', `unlock_random_live_muse` tinyint(1) unsigned NOT NULL DEFAULT '0', `unlock_random_live_aqours` tinyint(1) unsigned NOT NULL DEFAULT '0', `insert_date` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP, `update_date` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP, `tutorial_state` tinyint(1) NOT NULL DEFAULT '0', `next_free_muse_gacha` bigint(20) unsigned NOT NULL DEFAULT '0', `next_free_aqours_gacha` bigint(20) unsigned NOT NULL DEFAULT '0', `setting_award_id` int(4) unsigned NOT NULL DEFAULT '1', `setting_background_id` int(4) unsigned NOT NULL DEFAULT '1', `main_deck` tinyint(1) unsigned NOT NULL DEFAULT '1', `partner_unit` int(10) unsigned DEFAULT NULL, PRIMARY KEY (`user_id`), KEY `user_partner` (`partner_unit`), CONSTRAINT `user_partner` FOREIGN KEY (`partner_unit`) REFERENCES `units` (`unit_owning_user_id`) ON UPDATE CASCADE ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci; -- Data exporting was unselected. -- Dumping structure for table cxps.user_award_unlock CREATE TABLE IF NOT EXISTS `user_award_unlock` ( `user_id` int(10) unsigned NOT NULL, `award_id` int(5) unsigned NOT NULL, `insert_date` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP, PRIMARY KEY (`user_id`,`award_id`), CONSTRAINT `FK_award_user` FOREIGN KEY (`user_id`) REFERENCES `users` (`user_id`) ON DELETE CASCADE ON UPDATE CASCADE ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci; -- Data exporting was unselected. -- Dumping structure for table cxps.user_background_unlock CREATE TABLE IF NOT EXISTS `user_background_unlock` ( `user_id` int(10) unsigned NOT NULL, `background_id` int(5) unsigned NOT NULL, `insert_date` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP, PRIMARY KEY (`user_id`,`background_id`), CONSTRAINT `FK_background_user` FOREIGN KEY (`user_id`) REFERENCES `users` (`user_id`) ON DELETE CASCADE ON UPDATE CASCADE ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci; -- Data exporting was unselected. -- Dumping structure for table cxps.user_exchange_point CREATE TABLE IF NOT EXISTS `user_exchange_point` ( `user_id` int(10) unsigned NOT NULL, `rarity` tinyint(1) unsigned NOT NULL, `exchange_point` smallint(5) unsigned NOT NULL DEFAULT '0', PRIMARY KEY (`user_id`,`rarity`), CONSTRAINT `fk_exchange_point_user` FOREIGN KEY (`user_id`) REFERENCES `users` (`user_id`) ON DELETE CASCADE ON UPDATE CASCADE ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci; -- Data exporting was unselected. -- Dumping structure for table cxps.user_live_goal_rewards CREATE TABLE IF NOT EXISTS `user_live_goal_rewards` ( `user_id` int(10) unsigned NOT NULL, `live_goal_reward_id` int(10) unsigned NOT NULL, `live_difficulty_id` int(10) unsigned NOT NULL, PRIMARY KEY (`user_id`,`live_goal_reward_id`), CONSTRAINT `FK_user_live_goal_rewards` FOREIGN KEY (`user_id`) REFERENCES `users` (`user_id`) ON DELETE CASCADE ON UPDATE CASCADE ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci; -- Data exporting was unselected. -- Dumping structure for table cxps.user_live_status CREATE TABLE IF NOT EXISTS `user_live_status` ( `user_id` int(10) unsigned NOT NULL, `live_difficulty_id` int(10) unsigned NOT NULL, `status` int(4) unsigned NOT NULL DEFAULT '0', `hi_score` int(10) unsigned NOT NULL DEFAULT '0', `hi_combo` int(10) unsigned NOT NULL DEFAULT '0', `clear_cnt` int(10) unsigned NOT NULL DEFAULT '0', PRIMARY KEY (`user_id`,`live_difficulty_id`), CONSTRAINT `FK_user_live_status` FOREIGN KEY (`user_id`) REFERENCES `users` (`user_id`) ON DELETE CASCADE ON UPDATE CASCADE ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci; -- Data exporting was unselected. -- Dumping structure for table cxps.user_login CREATE TABLE IF NOT EXISTS `user_login` ( `user_id` int(10) unsigned NOT NULL, `login_key` varchar(36) COLLATE utf8_unicode_ci NOT NULL, `login_passwd` varchar(128) COLLATE utf8_unicode_ci NOT NULL, `login_token` varchar(128) COLLATE utf8_unicode_ci DEFAULT NULL, UNIQUE KEY `UNIQUE_login_key` (`login_key`), KEY `FK_user_login` (`user_id`), CONSTRAINT `FK_user_login` FOREIGN KEY (`user_id`) REFERENCES `users` (`user_id`) ON DELETE CASCADE ON UPDATE CASCADE ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci; -- Data exporting was unselected. -- Dumping structure for table cxps.user_support_unit CREATE TABLE IF NOT EXISTS `user_support_unit` ( `user_id` int(10) unsigned NOT NULL, `unit_id` smallint(5) unsigned NOT NULL, `amount` smallint(3) unsigned NOT NULL DEFAULT '0', PRIMARY KEY (`user_id`,`unit_id`), CONSTRAINT `fk_support_unit_user` FOREIGN KEY (`user_id`) REFERENCES `users` (`user_id`) ON DELETE CASCADE ON UPDATE CASCADE ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci; -- Data exporting was unselected. -- Dumping structure for table cxps.user_unit_album CREATE TABLE IF NOT EXISTS `user_unit_album` ( `user_id` int(10) unsigned NOT NULL, `unit_id` int(10) unsigned NOT NULL, `rank_max_flag` tinyint(1) NOT NULL DEFAULT '0', `love_max_flag` tinyint(1) NOT NULL DEFAULT '0', `rank_level_max_flag` tinyint(1) NOT NULL DEFAULT '0', `all_max_flag` tinyint(1) NOT NULL DEFAULT '0', `highest_love_per_unit` smallint(5) unsigned NOT NULL DEFAULT '0', `total_love` int(10) unsigned NOT NULL DEFAULT '0', `favorite_point` int(10) unsigned NOT NULL, PRIMARY KEY (`user_id`,`unit_id`), CONSTRAINT `fk_album_user` FOREIGN KEY (`user_id`) REFERENCES `users` (`user_id`) ON DELETE CASCADE ON UPDATE CASCADE ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci; -- Data exporting was unselected. -- Dumping structure for table cxps.user_unit_deck CREATE TABLE IF NOT EXISTS `user_unit_deck` ( `user_id` int(10) unsigned NOT NULL, `unit_deck_id` tinyint(1) unsigned NOT NULL, `deck_name` varchar(10) COLLATE utf8_unicode_ci NOT NULL DEFAULT 'No Name', PRIMARY KEY (`user_id`,`unit_deck_id`), CONSTRAINT `fk_deck_user` FOREIGN KEY (`user_id`) REFERENCES `users` (`user_id`) ON DELETE CASCADE ON UPDATE CASCADE ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci; -- Data exporting was unselected. -- Dumping structure for table cxps.user_unit_deck_slot CREATE TABLE IF NOT EXISTS `user_unit_deck_slot` ( `user_id` int(10) unsigned NOT NULL, `deck_id` tinyint(1) unsigned NOT NULL, `slot_id` tinyint(1) unsigned NOT NULL, `unit_owning_user_id` int(10) unsigned NOT NULL, PRIMARY KEY (`user_id`,`deck_id`,`slot_id`), UNIQUE KEY `unit_unique_per_deck` (`unit_owning_user_id`,`deck_id`), CONSTRAINT `fk_slot_deck` FOREIGN KEY (`user_id`, `deck_id`) REFERENCES `user_unit_deck` (`user_id`, `unit_deck_id`) ON DELETE CASCADE ON UPDATE CASCADE, CONSTRAINT `fk_slot_unit` FOREIGN KEY (`unit_owning_user_id`) REFERENCES `units` (`unit_owning_user_id`) ON DELETE CASCADE ON UPDATE CASCADE ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci; -- Data exporting was unselected. -- Dumping structure for table cxps.user_unit_removable_skill_equip CREATE TABLE IF NOT EXISTS `user_unit_removable_skill_equip` ( `unit_owning_user_id` int(10) unsigned NOT NULL, `unit_removable_skill_id` tinyint(2) unsigned NOT NULL, PRIMARY KEY (`unit_owning_user_id`,`unit_removable_skill_id`), CONSTRAINT `fk_removable_skill_equip_unit` FOREIGN KEY (`unit_owning_user_id`) REFERENCES `units` (`unit_owning_user_id`) ON DELETE CASCADE ON UPDATE CASCADE ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci; -- Data exporting was unselected. -- Dumping structure for table cxps.user_unit_removable_skill_owning CREATE TABLE IF NOT EXISTS `user_unit_removable_skill_owning` ( `user_id` int(10) unsigned NOT NULL, `unit_removable_skill_id` tinyint(2) unsigned NOT NULL, `total_amount` smallint(4) unsigned DEFAULT '0', `insert_date` datetime DEFAULT CURRENT_TIMESTAMP, PRIMARY KEY (`user_id`,`unit_removable_skill_id`), CONSTRAINT `fk_removable_skill_user` FOREIGN KEY (`user_id`) REFERENCES `users` (`user_id`) ON DELETE CASCADE ON UPDATE CASCADE ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci; -- Data exporting was unselected. -- Dumping structure for view cxps.v_units_not_locked -- Creating temporary table to overcome VIEW dependency errors CREATE TABLE `v_units_not_locked` ( `unit_owning_user_id` INT(10) UNSIGNED NOT NULL, `user_id` INT(10) UNSIGNED NOT NULL, `level` TINYINT(3) UNSIGNED NOT NULL, `unit_id` SMALLINT(5) UNSIGNED NOT NULL, `unit_skill_level` TINYINT(1) UNSIGNED NOT NULL ) ENGINE=MyISAM; -- Dumping structure for view cxps.v_user_unit_removable_skill_owning -- Creating temporary table to overcome VIEW dependency errors CREATE TABLE `v_user_unit_removable_skill_owning` ( `user_id` INT(10) UNSIGNED NOT NULL, `unit_removable_skill_id` TINYINT(2) UNSIGNED NOT NULL, `total_amount` SMALLINT(4) UNSIGNED NULL, `equipped_amount` BIGINT(21) NULL, `insert_date` DATETIME NULL ) ENGINE=MyISAM; -- Dumping structure for view cxps.v_units_not_locked -- Removing temporary table and create final VIEW structure DROP TABLE IF EXISTS `v_units_not_locked`; CREATE ALGORITHM=UNDEFINED DEFINER=`cxps`@`localhost` SQL SECURITY DEFINER VIEW `v_units_not_locked` AS select `units`.`unit_owning_user_id` AS `unit_owning_user_id`,`units`.`user_id` AS `user_id`,`units`.`level` AS `level`,`units`.`unit_id` AS `unit_id`,`units`.`unit_skill_level` AS `unit_skill_level` from `units` where ((not(`units`.`unit_owning_user_id` in (select `s`.`unit_owning_user_id` from (`user_unit_deck_slot` `s` join `users` `u` on(((`u`.`user_id` = `s`.`user_id`) and (`u`.`main_deck` = `s`.`deck_id`)))) where (`u`.`user_id` = `units`.`user_id`)))) and (not(`units`.`unit_owning_user_id` in (select `users`.`partner_unit` from `users` where (`users`.`user_id` = `units`.`user_id`)))) and (`units`.`favorite_flag` = 0) and (`units`.`deleted` = 0)); -- Dumping structure for view cxps.v_user_unit_removable_skill_owning -- Removing temporary table and create final VIEW structure DROP TABLE IF EXISTS `v_user_unit_removable_skill_owning`; CREATE ALGORITHM=UNDEFINED DEFINER=`cxps`@`localhost` SQL SECURITY DEFINER VIEW `v_user_unit_removable_skill_owning` AS select `o`.`user_id` AS `user_id`,`o`.`unit_removable_skill_id` AS `unit_removable_skill_id`,`o`.`total_amount` AS `total_amount`,(select count(0) from (`user_unit_removable_skill_equip` `e` join `units` on((`units`.`unit_owning_user_id` = `e`.`unit_owning_user_id`))) where ((`e`.`unit_removable_skill_id` = `o`.`unit_removable_skill_id`) and (`units`.`user_id` = `o`.`user_id`))) AS `equipped_amount`,`o`.`insert_date` AS `insert_date` from `user_unit_removable_skill_owning` `o`; /*!40101 SET SQL_MODE=IFNULL(@OLD_SQL_MODE, '') */; /*!40014 SET FOREIGN_KEY_CHECKS=IF(@OLD_FOREIGN_KEY_CHECKS IS NULL, 1, @OLD_FOREIGN_KEY_CHECKS) */; /*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */;
true
d30ae9c10879ea529e7b2b3f01b28dee34a44ba5
SQL
submersibletoaster/oolite-spa
/database/schema.sql
UTF-8
3,903
3.609375
4
[]
no_license
PRAGMA foreign_keys=on; create table economy ( economy integer primary key, economy_description string ); insert into economy values(0,'Rich Industrial'); insert into economy values(1,'Average Industrial'); insert into economy values(2,'Poor Industrial'); insert into economy values(3,'Mainly Industrial'); insert into economy values(4,'Mainly Agricultural'); insert into economy values(5,'Rich Agricultural'); insert into economy values(6,'Average Agricultural'); insert into economy values(7,'Poor Agricultural'); create table galaxy ( galaxy integer primary key, galaxy_description string ); insert into galaxy values(0,'Galaxy 1'); insert into galaxy values(1,'Galaxy 2'); insert into galaxy values(2,'Galaxy 3'); insert into galaxy values(3,'Galaxy 4'); insert into galaxy values(4,'Galaxy 5'); insert into galaxy values(5,'Galaxy 6'); insert into galaxy values(6,'Galaxy 7'); insert into galaxy values(7,'Galaxy 8'); create table government ( government integer primary key, government_description string ); insert into government values(0,'Anarchy'); insert into government values(1,'Feudal'); insert into government values(2,'Multi-Government'); insert into government values(3,'Dictatorship'); insert into government values(4,'Communist'); insert into government values(5,'Confederacy'); insert into government values(6,'Democracy'); insert into government values(7,'Corporate State'); create table system ( system integer not null, galaxy integer not null, economy integer not null, government integer not null, techlevel integer not null, name, description, inhabitants, population integer , radius integer , productivity, xcoord number , ycoord number , primary key (galaxy,system) , foreign key(galaxy) references galaxy(galaxy) , foreign key(economy) references economy(economy) , foreign key(government) references government(government) ); /* { "population":49, "stations_require_docking_clearance":"no", "star_count_multiplier":2, "economy":0, "planetnum":254, "inhabitants":"Human Colonials", "name":"Onlema", "galnum":0, "techlevel":11, "corona_flare":0.07500000000000001, "government":4, "coord":"(55.2, 49.6, 0)", "productivity":31360, "radius":6794, "description":"This world is plagued by frequent solar activity.", "inhabitant":"Human Colonial", "nebula_count_multiplier":1} */ create table user ( user integer PRIMARY KEY AUTOINCREMENT, username string UNIQUE, email string NOT NULL, password string NOT NULL ); CREATE TABLE users ( id INTEGER PRIMARY KEY AUTOINCREMENT, name VARCHAR(255) DEFAULT NULL, login VARCHAR(255) NOT NULL, password TEXT NOT NULL, roles TEXT ); create table my_system_description ( my_system_description integer PRIMARY KEY AUTOINCREMENT, owner integer NOT NULL, galaxy integer NOT NULL, system integer NOT NULL, description string, generation number NOT NULL, updated integer NOT NULL DEFAULT (strftime('%s','now')), CONSTRAINT my_system_description_unique UNIQUE(owner,galaxy,system,generation), FOREIGN KEY(owner) REFERENCES user(user), FOREIGN KEY(galaxy) REFERENCES galaxy(galaxy) ); create table my_system_mainplanet ( my_system_mainplanet integer PRIMARY KEY AUTOINCREMENT, owner integer NOT NULL, generation integer NOT NULL, galaxy integer NOT NULL, system integer NOT NULL, updated integer NOT NULL DEFAULT (strftime('%s','now')), CONSTRAINT my_system_mainplanet_unique UNIQUE (owner,generation,galaxy,system), FOREIGN KEY(owner) REFERENCES user(user), FOREIGN KEY(galaxy) REFERENCES galaxy(galaxy) ); create table my_galaxy ( owner integer NOT NULL, galaxy integer NOT NULL, description string, generation number NOT NULL, updated integer NOT NULL DEFAULT (strftime('%s','now')), CONSTRAINT my_galaxy_uniq UNIQUE (owner,galaxy,generation), FOREIGN KEY(owner) REFERENCES user(user), FOREIGN KEY(galaxy) REFERENCES galaxy(galaxy) );
true
f333bb14743d97eab85f9c1b3fd718848812c6f0
SQL
smwright/FTC-PAM
/database/queries/PAM_update_status_date_out.sql
UTF-8
815
3.453125
3
[]
no_license
CREATE DEFINER=`cl45-acg-pam`@`%` PROCEDURE `PAM_update_status_date_out`() NO SQL BEGIN DECLARE memberID_bfr INTEGER; DECLARE statusDate_bfr DATE; DECLARE finished INTEGER DEFAULT 0; DECLARE update_cursor CURSOR FOR SELECT memberID, date FROM memberstatuslog; DECLARE CONTINUE HANDLER FOR NOT FOUND SET finished = 1; OPEN update_cursor; update_status: LOOP FETCH update_cursor INTO memberID_bfr, statusDate_bfr; IF finished = 1 THEN LEAVE update_status; END IF; UPDATE memberstatuslog AS dest, (SELECT memberstatuslog.date FROM memberstatuslog WHERE memberID = memberID_bfr AND date > statusDate_bfr ORDER BY date ASC LIMIT 1) AS src SET dest.dateOut = src.date WHERE dest.memberID = memberID_bfr and dest.date = statusDate_bfr; END LOOP update_status; CLOSE update_cursor; END
true
e1e328e80993c3d9c95eaed9a24d56c8b7abecc2
SQL
GoncharEvgeniy/Alevel-Trucking
/src/main/resources/sql/V1_17_create_table_order_goods.sql
UTF-8
410
3.109375
3
[]
no_license
CREATE TABLE `order_goods` ( `id_order` BIGINT(20) NOT NULL, `id_goods` BIGINT(20) NOT NULL, INDEX `FK_id_goods` (`id_goods`), INDEX `FK_id_order_goods` (`id_order`), CONSTRAINT `FK_id_order_goods` FOREIGN KEY (`id_order`) REFERENCES `orders` (`id`), CONSTRAINT `FK_id_goods` FOREIGN KEY (`id_goods`) REFERENCES `goods` (`id`) ) COLLATE = 'utf8mb4_0900_ai_ci' ENGINE = InnoDB ;
true
561236648d23ed4364c18444ce2abe932502ea99
SQL
laminas-api-tools/api-tools-oauth2
/test/TestAsset/database/db_oauth2.sql
UTF-8
1,767
3.171875
3
[]
permissive
PRAGMA foreign_keys=OFF; BEGIN TRANSACTION; CREATE TABLE oauth_access_tokens ( access_token VARCHAR(40) NOT NULL, client_id VARCHAR(80) NOT NULL, user_id VARCHAR(255), expires TIMESTAMP NOT NULL, scope VARCHAR(2000), CONSTRAINT access_token_pk PRIMARY KEY (access_token) ); CREATE TABLE oauth_authorization_codes ( authorization_code VARCHAR(40) NOT NULL, client_id VARCHAR(80) NOT NULL, user_id VARCHAR(255), code_challenge VARCHAR(255), code_challenge_method VARCHAR(64), redirect_uri VARCHAR(2000), expires TIMESTAMP NOT NULL, scope VARCHAR(2000), id_token VARCHAR(2000), CONSTRAINT auth_code_pk PRIMARY KEY (authorization_code) ); CREATE TABLE oauth_refresh_tokens ( refresh_token VARCHAR(40) NOT NULL, client_id VARCHAR(80) NOT NULL, user_id VARCHAR(255), expires TIMESTAMP NOT NULL, scope VARCHAR(2000), CONSTRAINT refresh_token_pk PRIMARY KEY (refresh_token) ); CREATE TABLE oauth_users ( username VARCHAR(255) NOT NULL, password VARCHAR(2000), first_name VARCHAR(255), last_name VARCHAR(255), CONSTRAINT username_pk PRIMARY KEY (username) ); CREATE TABLE oauth_jwt ( client_id VARCHAR(80) NOT NULL, subject VARCHAR(80), public_key VARCHAR(2000), CONSTRAINT client_id_pk PRIMARY KEY (client_id) ); CREATE TABLE oauth_scopes (is_default TINYINT(1) DEFAULT NULL, type VARCHAR(255), scope VARCHAR(2000), client_id VARCHAR (80)); CREATE TABLE oauth_clients ( client_id VARCHAR(80) NOT NULL, client_secret VARCHAR(80) NOT NULL, redirect_uri VARCHAR(2000) NOT NULL, grant_types VARCHAR(80), CONSTRAINT client_id_pk PRIMARY KEY (client_id) ); INSERT INTO "oauth_clients" VALUES('testclient','$2y$14$f3qml4G2hG6sxM26VMq.geDYbsS089IBtVJ7DlD05BoViS9PFykE2','/oauth/receivecode',NULL); COMMIT;
true
a5a1a4c4838a9edba3809bc2cd7c313f72c882c5
SQL
Ralph85/sql-crowdfunding-lab-online-web-ft-011419
/lib/insert.sql
UTF-8
1,806
2.828125
3
[ "LicenseRef-scancode-unknown-license-reference", "LicenseRef-scancode-public-domain" ]
permissive
INSERT INTO users (id, name, age) VALUES (1, "James", 18), (2, "Willis", 33), (3, "Iris", 29), (4, "Kaitline", 29), (5, "Oliver", 25), (6, "Esther", 58), (7, "Lucy", 37), (8, "Nora", 22), (9, "Ashley", 39), (10, "Rico", 37), (11, "Mariah", 15), (12, "Pablo", 8), (13, "Jenny", 6), (14, "Tia", 17), (15, "Marvin", 11), (16, "Martha", 25), (17, "Joe", 66), (18, "Elly", 30), (19, "Aaron", 41), (20, "Wally", 21); INSERT INTO projects (id, title, category, funding_goal, start_date, end_date) VALUES (1, "Start a band", "music", 15000, "2015-11-05", "2018-12-05"), (2, "Donate my car", "charity", 3500, "2019-01-01", "2019-02-01"), (3, "Playing piano at the pub", "music", 1500, "2019-05-08", "2019-06-08"), (4, "Volunteering at the hospital", "charity", 800, "2019-02-11", "2019-07-08"), (5, "Next in the Gone series", "books", 20, "2010-03-15", "2010-04-15"), (6, "My book on Ruby", "books", 125, "2019-07-05", "2019-08-05"), (7, "Giving away a puppy", "charity", 1000, "2016-09-10", "2016- 10-10"), (8, "Producing my new album", "music", 20000, "2019-07-08", "2020-08-08"), (9, "The new fire and ice", "books", 30, "2017-09-11", "2018-02-11"), (10, "Toys for tots", "charity", 1200, "2018-11-25", "2018-12-25"); INSERT INTO pledges (id, amount, user_id, project_id) VALUES (1, 5000, 2, 4), (2, 300, 1, 2), (3, 30 , 4, 4), (4, 1500, 3, 1), (5, 1100, 10, 12), (6, 1, 5, 13), (7, 35, 13, 10), (8, 160000, 20, 1), (9, 20, 18, 4), (10, 20000, 6, 2), (11, 70000, 19, 9), (12, 74, 8, 8), (13, 8, 15, 7), (14, 10000, 20, 6), (15, 400, 19, 10), (16, 29, 14, 1), (17, 2019, 2, 2), (18, 1003, 5, 11), (19, 3, 6, 20), (20, 17, 20, 3), (21, 3769, 21, 3), (22, 6738, 20, 10), (23, 12345, 1, 1), (24, 15, 2, 9), (25, 35, 19, 4), (26, 17, 13, 8), (27, 10000, 20, 8), (28, 300, 19, 5), (29, 1, 7, 7), (30, 5000, 17, 10);
true
80f517f5bd43288c330e4c63a511b497b982e75f
SQL
ikrelln/ikrelln
/migrations/2018-01-23-220231_span/up.sql
UTF-8
1,463
3.796875
4
[ "Apache-2.0" ]
permissive
CREATE TABLE endpoint ( endpoint_id VARCHAR(36) NOT NULL PRIMARY KEY, service_name VARCHAR(255), ipv4 VARCHAR(30), ipv6 VARCHAR(50), port INT, CONSTRAINT UC_Endpoint UNIQUE (service_name, ipv4, ipv6, port) ); CREATE UNIQUE INDEX UC_Endpoint_name ON endpoint (service_name) WHERE (ipv4 is null AND ipv6 is null and port is null); CREATE UNIQUE INDEX UC_Endpoint_name_ipv4 ON endpoint (service_name, ipv4) WHERE (ipv4 is not null AND ipv6 is null and port is null); CREATE TABLE span ( trace_id VARCHAR(36) NOT NULL, id VARCHAR(36) NOT NULL UNIQUE, parent_id VARCHAR(36), name VARCHAR, kind VARCHAR(10), duration BIGINT, ts TIMESTAMP, debug BOOLEAN NOT NULL, shared BOOLEAN NOT NULL, local_endpoint_id VARCHAR(36), remote_endpoint_id VARCHAR(36), PRIMARY KEY (trace_id, id), FOREIGN KEY (local_endpoint_id) REFERENCES endpoint (endpoint_id), FOREIGN KEY (remote_endpoint_id) REFERENCES endpoint (endpoint_id) ); CREATE TABLE annotation ( annotation_id VARCHAR(36) NOT NULL PRIMARY KEY, trace_id VARCHAR(36) NOT NULL, span_id VARCHAR(36) NOT NULL, ts TIMESTAMP NOT NULL, value VARCHAR(255) NOT NULL, FOREIGN KEY (trace_id, span_id) REFERENCES span (trace_id, id) ); CREATE TABLE tag ( span_id VARCHAR(36) NOT NULL, name VARCHAR(255) NOT NULL, value VARCHAR NOT NULL, PRIMARY KEY (span_id, name), FOREIGN KEY (span_id) REFERENCES span (id) );
true
a68127e596feab0854156c4babbbed97ed0a0e1c
SQL
samarink/cs50
/pset7/movies/9.sql
UTF-8
186
3.234375
3
[]
no_license
SELECT DISTINCT(people.name) FROM people JOIN stars ON people.id = stars.person_id JOIN movies ON stars.movie_id = movies.id WHERE movies.year = 2004 ORDER BY people.birth ;
true
4a5db2d155476cf36886a2746d57986d1cd11834
SQL
Ravanblade/ravanblade.com.pl
/database/database.sql
UTF-8
581
2.796875
3
[]
no_license
CREATE TABLE Projects ( `id` INT NOT NULL AUTO_INCREMENT PRIMARY KEY, CategoryId INT, Title varchar(60) not null, Technologies varchar(100) not null, Text varchar(255) , Url varchar(100), UrlText varchar(100), CodeUrl varchar(100), CodeText varchar(60), ImgUrl varchar(100) ); CREATE TABLE Categories ( `id` INT NOT NULL AUTO_INCREMENT PRIMARY KEY, CategoryName varchar(60) ); CREATE TABLE Users ( `id` INT NOT NULL AUTO_INCREMENT PRIMARY KEY, Name varchar(100), SurnName varchar(100), Login varchar(100), Password varchar(255) );
true
2a0d1e4dfb584ebde5c58565f98dd3c3300d11e2
SQL
silence-do-good/stress-test-Postgres-and-MySQL
/dump/low/day11/select2337.sql
UTF-8
178
2.625
3
[]
no_license
SELECT timeStamp, temperature FROM ThermometerOBSERVATION o WHERE timestamp>'2017-11-10T23:37:00Z' AND timestamp<'2017-11-11T23:37:00Z' AND temperature>=15 AND temperature<=83
true
96ea2f52e361773af8d6c717293ebeea7ee4405f
SQL
breninrice/PA_SistemaWeb
/DB_construmar.sql
UTF-8
8,209
3.109375
3
[]
no_license
CREATE DATABASE `deposito_contrumar` DROP TABLE IF EXISTS `tb_pessoal`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `tb_pessoal` ( `id_pessoal` int(50) NOT NULL AUTO_INCREMENT, `nome` varchar(150) DEFAULT NULL, `cpf` int(20) DEFAULT NULL, `data_nasc` datetime(15) DEFAULT NULL, `tipo` varchar(20) DEFAULT NULL, `sexo` varchar(20) DEFAULT NULL, `cep` int(20) DEFAULT NULL, `endereco` varchar(50) DEFAULT NULL, `complemento` varchar(50) DEFAULT NULL, `bairro` varchar(20) DEFAULT NULL, `cidade` varchar(20) DEFAULT NULL, `estado` varchar(20) DEFAULT NULL, `celular` varchar(30) DEFAULT NULL, `residencial` varchar(30) DEFAULT NULL, `comercial` varchar(30) DEFAULT NULL, `email` varchar(30) DEFAULT NULL, PRIMARY KEY (`tb_pessoal`) ) ENGINE=InnoDB AUTO_INCREMENT=8 DEFAULT CHARSET=latin1; /*!40101 SET character_set_client = @saved_cs_client */; DROP TABLE IF EXISTS `tb_fornecedor`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `tb_fornecedor` ( `id_fornecedor` int(11) NOT NULL AUTO_INCREMENT, `nome` varchar(150) DEFAULT NULL, `cnpj` int(20) DEFAULT NULL, `data` date DEFAULT NULL, `restringir` varchar(20) DEFAULT NULL, `tipo` varchar(10) DEFAULT NULL, `cep` int(20) DEFAULT NULL, `endereco` varchar(50) DEFAULT NULL, `complemento` varchar(50) DEFAULT NULL, `bairro` varchar(20) DEFAULT NULL, `cidade` varchar(20) DEFAULT NULL, `estado` varchar(20) DEFAULT NULL, `celular` varchar(15) DEFAULT NULL, `residencial` varchar(15) DEFAULT NULL, `comercial` varchar(15) DEFAULT NULL, `email` varchar(30) DEFAULT NULL, PRIMARY KEY (`id_fornecedor`) ) ENGINE=InnoDB AUTO_INCREMENT=8 DEFAULT CHARSET=latin1; /*!40101 SET character_set_client = @saved_cs_client */; DROP TABLE IF EXISTS `tb_produtos`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; /*refazer a tabela*/ CREATE TABLE `tb_produtos` ( `id_prod` int(11) NOT NULL AUTO_INCREMENT, `codigo` varchar(100) DEFAULT NULL, `nome_prod` varchar(100) DEFAULT NULL, `qtd_prod` int(20) DEFAULT NULL, `descricao_prod` varchar(100) DEFAULT NULL, `id_fornecedor` int(11) NOT NULL, `localizacao_prod` varchar(100) DEFAULT NULL, `data_lote` date DEFAULT NULL, `lote` varchar(100) DEFAULT NULL, `preco` varchar(100) DEFAULT NULL, `custo` varchar(100) DEFAULT NULL, PRIMARY KEY (`id_prod`), FOREIGN KEY (id_fornecedor) REFERENCES tb_fornecedor(id_fornecedor) /*`visivel` bit(8) DEFAULT NULL,*/ ) ENGINE=InnoDB AUTO_INCREMENT=8 DEFAULT CHARSET=latin1; /*!40101 SET character_set_client = @saved_cs_client */; DROP TABLE IF EXISTS `tb_venda`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `tb_venda` ( `id_venda` int(11) NOT NULL AUTO_INCREMENT, `data` date DEFAULT NULL, `data_entrega` date DEFAULT NULL, `forma_de_pagamento` varchar(20) DEFAULT NULL, PRIMARY KEY (`id_venda`), `id_pessoal` int(11) NOT NULL, FOREIGN KEY (id_pessoal) REFERENCES tb_pessoal (id_pessoal) ) ENGINE=InnoDB AUTO_INCREMENT=8 DEFAULT CHARSET=latin1; /*!40101 SET character_set_client = @saved_cs_client */; DROP TABLE IF EXISTS `tb_item`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `tb_item` ( `id_item` int(20) NOT NULL AUTO_INCREMENT, `qtde` int(20) NOT NULL, `valor` decimal(10,2) NOT NULL, PRIMARY KEY (`id_item`), `id_prod` int(20) NOT NULL, `id_venda` int(20) NOT NULL, FOREIGN KEY (id_prod) REFERENCES tb_produtos (id_prod), FOREIGN KEY (id_venda) REFERENCES tb_venda (id_venda) ) ENGINE=InnoDB AUTO_INCREMENT=8 DEFAULT CHARSET=latin1; /*!40101 SET character_set_client = @saved_cs_client */; DROP TABLE IF EXISTS `tb_lote`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `tb_lote` ( `id_lote` int(11) NOT NULL AUTO_INCREMENT, `numero` int(11) NOT NULL, `data_venc` date DEFAULT NULL, `qtde` int(11) NOT NULL, PRIMARY KEY (`id_lote`) ) ENGINE=InnoDB AUTO_INCREMENT=8 DEFAULT CHARSET=latin1; /*!40101 SET character_set_client = @saved_cs_client */; DROP TABLE IF EXISTS `tb_estoque`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `tb_estoque` ( `id_estoque` int(20) NOT NULL AUTO_INCREMENT, `qtde` int(20) NOT NULL, `tipo` varchar(20) DEFAULT NULL, `data` date DEFAULT NULL, PRIMARY KEY (`id_estoque`), `id_lote` int(20) NOT NULL, FOREIGN KEY (id_lote) REFERENCES tb_lote(id_lote) ) ENGINE=InnoDB AUTO_INCREMENT=8 DEFAULT CHARSET=latin1; /*!40101 SET character_set_client = @saved_cs_client */; DROP TABLE IF EXISTS `tb_login`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `tb_login` ( `id_login` int(20) NOT NULL AUTO_INCREMENT, `login` varchar(20) DEFAULT NULL, `senha` varchar(20) DEFAULT NULL, PRIMARY KEY (`id_login`) ) ENGINE=InnoDB AUTO_INCREMENT=8 DEFAULT CHARSET=latin1; /*!40101 SET character_set_client = @saved_cs_client */; DROP TABLE IF EXISTS `tb_laje`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `tb_laje` ( `id_laje` int(20) NOT NULL AUTO_INCREMENT, `empresa` varchar(150) DEFAULT NULL, `nome` varchar(150) DEFAULT NULL, `email` varchar(30) DEFAULT NULL, `telefone` varchar(15) DEFAULT NULL, `celular` varchar(15) DEFAULT NULL, `cidade` varchar(20) DEFAULT NULL, `Tipo_laje` varchar(30) DEFAULT NULL, `tamanho_vigota` varchar(30) DEFAULT NULL, `qtd_tijolos` varchar(30) DEFAULT NULL, `qtd_tijolos_furados` varchar(30) DEFAULT NULL, `outras_informacoes` varchar(100) DEFAULT NULL, `instalacao` varchar(15) DEFAULT NULL, `entrega` varchar(15) DEFAULT NULL, `cep` varchar(20) DEFAULT NULL, `outras_informacoes_rel` varchar(100) DEFAULT NULL, `como_chegou` varchar(30) DEFAULT NULL PRIMARY KEY (`id_laje`) ) ENGINE=InnoDB AUTO_INCREMENT=8 DEFAULT CHARSET=latin1; /*!40101 SET character_set_client = @saved_cs_client */; DROP TABLE IF EXISTS `tb_orcamento`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `tb_orcamento` ( `id_orcamento` int(20) NOT NULL AUTO_INCREMENT, `empresa` varchar(150) DEFAULT NULL, `nome` varchar(150) DEFAULT NULL, `email` varchar(30) DEFAULT NULL, `telefone` varchar(20) DEFAULT NULL, `celular` varchar(20) DEFAULT NULL, `cidade` varchar(20) DEFAULT NULL, `tipo_produto` varchar(30) DEFAULT NULL, `tamanho` varchar(30) DEFAULT NULL, `marca` varchar(30) DEFAULT NULL, `quantidade` varchar(30) DEFAULT NULL, `outras_informacoes` varchar(100) DEFAULT NULL, `instalacao` varchar(5) DEFAULT NULL, `cep` varchar(20) DEFAULT NULL, `entrega` varchar(15) DEFAULT NULL, `outras_informacoes_rel` varchar(100) DEFAULT NULL, `retirar` varchar(5) DEFAULT NULL, `como_chegou` varchar(30) DEFAULT NULL PRIMARY KEY (`id_orcamento`) ) ENGINE=InnoDB AUTO_INCREMENT = 1 DEFAULT CHARSET=utf8; /*!40101 SET character_set_client = @saved_cs_client */; DROP TABLE IF EXISTS `tb_crediario`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `tb_crediario` ( `id_crediario` int(20) NOT NULL AUTO_INCREMENT, `emitente_devedor` varchar(150) DEFAULT NULL, `cpf_cnpj` varchar(150) DEFAULT NULL, `endereco` varchar(30) DEFAULT NULL, `telefone` varchar(15) DEFAULT NULL, `cidade` varchar(15) DEFAULT NULL, `estado` varchar(30) DEFAULT NULL, `beneficiario` varchar(20) DEFAULT NULL, `cpf_cnpj_benef` varchar(30) DEFAULT NULL, `local_pgto` varchar(30) DEFAULT NULL, `valor_total` varchar(30) DEFAULT NULL, `parcelas` varchar(30) DEFAULT NULL, `data_venc` varchar(100) DEFAULT NULL PRIMARY KEY (`id_crediario`) ) ENGINE=InnoDB AUTO_INCREMENT = 1 DEFAULT CHARSET=utf8; /*!40101 SET character_set_client = @saved_cs_client */;
true
29bc9f25c4ef637508eeb63cfd960dc62406a9bc
SQL
grgabrielrosa/cae
/Banco de Dados/iftobanco.sql
UTF-8
3,827
3.328125
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 4.5.1 -- http://www.phpmyadmin.net -- -- Host: 127.0.0.1 -- Generation Time: 21-Maio-2019 às 21:08 -- Versão do servidor: 10.1.13-MariaDB -- PHP Version: 7.0.6 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: `iftobanco` -- -- -------------------------------------------------------- -- -- Estrutura da tabela `aluno` -- CREATE TABLE `aluno` ( `idaluno` int(11) NOT NULL, `nome` varchar(45) NOT NULL, `sobrenome` varchar(45) NOT NULL, `sexo` varchar(45) NOT NULL, `email` varchar(45) NOT NULL, `senha` varchar(45) NOT NULL, `n_matricula` int(11) NOT NULL, `aprova` int(1) NOT NULL ) ENGINE=InnoDB DEFAULT CHARSET=latin1; -- -- Extraindo dados da tabela `aluno` -- INSERT INTO `aluno` (`idaluno`, `nome`, `sobrenome`, `sexo`, `email`, `senha`, `n_matricula`, `aprova`) VALUES (10, 'Alana', ' Giovana Maya Alves', 'FEMININO', 'alanagiovanamayaalves@gsw.com.br', '$2y$10$YXUK9S88p5ouIQXcjUcfxudECicG07eZlfnpjT', 146456655, 2), (11, ' Sabrina', ' Clara Alves', 'FEMININO', 'sabrinaclaraalves-89@padrejuliano.com', '$2y$10$JuV28y94DSyNe0l0YTlAt.EBlwYxNCZ5kyr1/N', 2147483647, 0), (12, 'Leandro', ' Julio Fernandes', 'MASCULINO', 'fernandes@campanati.com.br', '$2y$10$408XNBftyPaEzaygxgm1ae8EuJN.MR/EI61l5p', 214748365, 0), (13, 'Murilo', ' Márcio Cavalcanti', 'MASCULINO', 'cavalcanti@jcffactoring.com.br', '$2y$10$dRfDb10c6Yzl9hocmLnXqeuZmichx/CdHufotW', 265465465, 0), (14, 'Lucas ', 'Samuel Freitas', 'MASCULINO', 'lucassamuelfreitas@vipsaude.com.br', '$2y$10$FuEycnmlSEgrOBgdk5hgvuwazzOY/97x9qryoY', 12215444, 0); -- -------------------------------------------------------- -- -- Estrutura da tabela `curso` -- CREATE TABLE `curso` ( `cursoid` int(11) NOT NULL, `idaluno` int(11) NOT NULL, `curso` varchar(45) NOT NULL ) ENGINE=InnoDB DEFAULT CHARSET=latin1; -- -- Extraindo dados da tabela `curso` -- INSERT INTO `curso` (`cursoid`, `idaluno`, `curso`) VALUES (10, 10, 'Técnico Agronomo'), (11, 11, 'Técnico em Informatica'), (12, 12, 'Licenciatura em Computação'), (13, 13, 'Licenciatura em Computação'), (14, 14, 'Técnico Agronomo'); -- -------------------------------------------------------- -- -- Estrutura da tabela `profissional` -- CREATE TABLE profissional ( id INT UNSIGNED NOT NULL AUTO_INCREMENT, -- id name VARCHAR(60) NOT NULL, -- nome email VARCHAR(80) NOT NULL, -- email gender ENUM('m', 'f') NOT NULL, -- gênero (masculino, feminino) birthdate DATE NOT NULL, -- data de nascimento PRIMARY KEY(id) ) COLLATE=utf8_unicode_ci; -- -- Indexes for dumped tables -- -- -- Indexes for table `aluno` -- ALTER TABLE `aluno` ADD PRIMARY KEY (`idaluno`); -- -- Indexes for table `curso` -- ALTER TABLE `curso` ADD PRIMARY KEY (`cursoid`), ADD KEY `idaluno` (`idaluno`); -- -- Indexes for table `profissional` -- ALTER TABLE `profissional` ADD PRIMARY KEY (`idprofissional`); -- -- AUTO_INCREMENT for dumped tables -- -- -- AUTO_INCREMENT for table `aluno` -- ALTER TABLE `aluno` MODIFY `idaluno` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=15; -- -- AUTO_INCREMENT for table `curso` -- ALTER TABLE `curso` MODIFY `cursoid` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=15; -- -- AUTO_INCREMENT for table `profissional` -- ALTER TABLE `profissional` MODIFY `idprofissional` int(11) NOT NULL AUTO_INCREMENT; -- -- Constraints for dumped tables -- -- -- Limitadores para a tabela `curso` -- ALTER TABLE `curso` ADD CONSTRAINT `curso_ibfk_1` FOREIGN KEY (`idaluno`) REFERENCES `aluno` (`idaluno`); /*!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
f0614119afb1bbc2e4930e2673801e691bc613a4
SQL
GitHupThiennam/ASSM2
/database.sql
UTF-8
1,209
3.4375
3
[]
no_license
CREATE DATABASE QLTB ON PRIMARY (NAME = QLTB, FILENAME= "D:\Detai\Database\QLTB.mdf", SIZE=50MB, MAXSIZE = 200MB, FILEGROWTH = 10%) LOG ON (NAME = QLTB_Log, FILENAME= "D:\Detai\Database\QLTB_Log.ldf", SIZE=10MB, MAXSIZE = UNLIMITED, FILEGROWTH = 5MB) use QLTB create table tblNguoiDung (tendangnhap varchar(50) constraint TDN_Pk primary key, matkhau varchar(50)not null, tendaydu nvarchar(2500), toanquyen bit,duockichhoat bit); create table Quyen ( maquyen varchar(50) constraint MQ_PK primary key, tenquyen nvarchar(2500) ); create table tblPhanQuyen (tendangnhap varchar(50)constraint TD_N_FK foreign key (tendangnhap)references NguoiDung(tendangnhap), maquyen varchar(50) constraint M_Q_PK foreign key (maquyen) references Quyen(maquyen)); create table tblThietBi (MaThietBi varchar(50) constraint MTB_PK primary key, TenThietBi nvarchar(2500) not null, TinhTrang nvarchar(2500), NgayNhap varchar(50), TinhNang nvarchar(2500)); use QLTB create table tblPhieuMuonTra (ngaymuon datetime , ngaytra datetime, tendangnhap varchar(50) constraint DNT_FK foreign key (tendangnhap) references NguoiDung(tendangnhap), MaThietBi varchar(50) constraint MTB_FK foreign key (MaThietBi)references ThietBi(MaThietBi) );
true
d97051ae5203b773f136c162ee9d70d350096edd
SQL
LINCHENMUM/Commonly-used-SQL
/数据库清理.sql
UTF-8
14,413
2.8125
3
[]
no_license
--Dealer SELECT * FROM CRM_DEALERS where DEALERID IN (100000,140000,150000,160000,240000,280000,290000) SELECT * FROM CRM_MVNO_PROPERTIES DELETE FROM CRM_DEALERS WHERE STATE=2 SELECT * FROM CRM_DEALERS WHERE PARENTID=-1 Update CRM_DEALERS set DEALERNODE='CPS Test',DEALERID=570000 where DEALERID=140000 --DELETE FROM CRM_DEALERS where FISCALUNITID NOT IN (SELECT FISCALUNITID FROM CRM_DEALERS WHERE FISCALUNITID IN (SELECT DEALERID FROM CRM_DEALERS WHERE PARENTID=-1)) SELECT * FROM SYS_MULTILINGUAL WHERE DealerID=140000 SELECT DISTINCT DealerID FROM SYS_MULTILINGUAL WHERE DealerID=570000 --DELETE FROM CRM_DEALERS_ATTACHEMENTS WHERE DEALERID NOT IN (SELECT DEALERID FROM CRM_DEALERS) ----update CRM_DEALERS_ATTACHEMENTS set DEALERID=280000 where DEALERID=440000 ----update CRM_DEALERS_ATTACHEMENTS set DEALERID=290000 where DEALERID=450000 --DELETE FROM CRM_DEALERS_OBOPRS WHERE DEALERID NOT IN (SELECT DEALERID FROM CRM_DEALERS) ----update CRM_DEALERS_OBOPRS set DEALERID=280000 where DEALERID=440000 ----update CRM_DEALERS_OBOPRS set DEALERID=290000 where DEALERID=450000 --DELETE FROM CRM_MVNO_TOPUP_CONFIG WHERE DEALERID NOT IN (SELECT DEALERID FROM CRM_DEALERS) ----update CRM_MVNO_TOPUP_CONFIG set DEALERID=280000 where DEALERID=440000 ----update CRM_MVNO_TOPUP_CONFIG set DEALERID=290000 where DEALERID=450000 --DELETE FROM CRM_DEALERS_PROPERTIES WHERE DEALERID NOT IN (SELECT DEALERID FROM CRM_DEALERS) ----update CRM_DEALERS_PROPERTIES set DEALERID=280000 where DEALERID=440000 ----update CRM_DEALERS_PROPERTIES set DEALERID=290000 where DEALERID=450000 --DELETE FROM CRM_DEALERS_LOYALTY_POINT WHERE DEALERID NOT IN (SELECT DEALERID FROM CRM_DEALERS) ----update CRM_DEALERS_LOYALTY_POINT set DEALERID=280000 where DEALERID=440000 ----update CRM_DEALERS_LOYALTY_POINT set DEALERID=290000 where DEALERID=450000 --DELETE FROM CRM_DEALERS_BANK WHERE DEALERID NOT IN (SELECT DEALERID FROM CRM_DEALERS) ----update CRM_DEALERS_BANK set DEALERID=280000 where DEALERID=440000 ----update CRM_DEALERS_BANK set DEALERID=290000 where DEALERID=450000 --DELETE FROM CRM_MVNO_PROPERTIES WHERE DEALERID NOT IN (SELECT DEALERID FROM CRM_DEALERS) --update CRM_MVNO_PROPERTIES set DEALERID=280000 where DEALERID=440000 --update CRM_MVNO_PROPERTIES set DEALERID=290000 where DEALERID=450000 --update CRM_DEALERS set DEALERID=280000 where DEALERID=440000 --update CRM_DEALERS set DEALERID=290000 where DEALERID=450000 --update CRM_DEALERS set DEALERNODE='2NR' WHERE DEALERID=240000 --update CRM_DEALERS set DEALERNODE='CPS' WHERE DEALERID=140000 --update CRM_DEALERS set DEALERNODE='PRS' WHERE DEALERID=290000 --Customers --DELETE FROM CRM_CUSTOMERS_BANK --DELETE FROM CRM_MVNO_CUSTOMERS_PROPERTY --DELETE FROM CRM_CUSTOMERS_REMARKS --DELETE FROM CRM_CUSTOMERS_PROPERTY --DELETE FROM CRM_CUSTOMERS_PRODUCTS --DELETE FROM CRM_CUSTOMERS_PRODUCTS_BAK --DELETE FROM CRM_CUSTOMERS_PROMOTION --DELETE FROM CRM_CUSTOMERS_PROMOTION_BAK --DELETE FROM CRM_CUSTOMERS_SERVICES --DELETE FROM CRM_DEFAULT_SERVICES --DELETE FROM CRM_CUSTOMERS_RESOURCEMB --DELETE FROM CRM_CUSTOMERS_RESOURCECS --DELETE FROM CRM_CUSTOMERS_RESOURCETC --DELETE FROM CRM_CUSTOMERS_MAPPING --DELETE FROM CRM_CUSTOMERS --DELETE FROM CRM_CUSTOMERS_FF --DELETE FROM CRM_CUSTOMERS_FF_HISTORY --DELETE FROM CRM_CUSTOMERS_FLEX2ND_NUMBER --DELETE FROM CRM_CUSTOMERS_FLEX_RESTRICTION --NPM --DELETE FROM SYS_NPM_PROPERTY --DELETE FROM SYS_NPM_DEALER --DELETE FROM SYS_NPM_BATCH_INFO --DELETE FROM SYS_NPM --SIM --DELETE FROM CRM_MOBILE_SIMCARDS_IMPORT_MASTER --DELETE FROM CRM_MOBILE_SIMCARDS_IMPORT_LOG --DELETE FROM CRM_MOBILE_SIMCARDS_IMPORT_DETAILS --DELETE FROM CRM_MOBILE_SIMCARDS --DELETE FROM CRM_MOBILE_SIMCARDS_ORDER --DELETE FROM CRM_DEALERS_IMSI --DELETE FROM CRM_DEALERS_ICCID --DELETE FROM CRM_MOBILE_SIMCARD_PREACTIVATE_LOG --Voucher card --DELETE FROM CRM_DEALERS_VOUCHER --DELETE FROM CRM_DEALERS_VOUCHER_BATCH_INFO --TOP UP --DELETE FROM CRM_MVNO_TOPUP_HISTORY_TPV --DELETE FROM CRM_MVNO_TOPUP_HISTORY --Trouble ticket --DELETE FROM CRM_TT_HISTORY --DELETE FROM CRM_TROUBLE_TICKET --Lifecycle --delete from CRM_LIFECYCLE_SMS_LOG --delete from CRM_LIFECYCLE_EMAILS_ATTACHMENTS --delete from CRM_LIFECYCLE_EMAILS --delete from MVNO_FC_LIFECYCLE_LOG --delete from CRM_LIFECYCLE_REPORTS --delete from CRM_LIFECYCLE_RESOURCE_STATUSCHANGED_LOG --Operation LOG --delete from SYS25_LOG_OPERATION ----HLR --select * from CRM_MOBILE_PROVISIONINGQUEUE --DELETE FROM CRM_DEFAULT_PROVISION WHERE DEALERID NOT IN (SELECT DEALERID FROM CRM_DEALERS) --DELETE FROM dbo.CRM_DEFAULT_PROVISION_BAK WHERE PROVISIONID NOT IN (SELECT PROVISIONID FROM CRM_DEFAULT_PROVISION) --DELETE FROM dbo.CRM_DEFAULT_PROVISION_CALLBARRING WHERE PROVISIONID NOT IN (SELECT PROVISIONID FROM CRM_DEFAULT_PROVISION) --DELETE FROM dbo.CRM_DEFAULT_PROVISION_CALLFORWARD WHERE PROVISIONID NOT IN (SELECT PROVISIONID FROM CRM_DEFAULT_PROVISION) --DELETE FROM dbo.CRM_DEFAULT_PROVISION_NETWORK WHERE PROVISIONID NOT IN (SELECT PROVISIONID FROM CRM_DEFAULT_PROVISION) --DELETE FROM CRM_MOBILE_CALLBARRING --DELETE FROM CRM_MOBILE_CALLBARRING_HISTORY --DELETE FROM CRM_MOBILE_CALLFORWARD --DELETE FROM CRM_MOBILE_CALLFORWARD_HISTORY --DELETE FROM CRM_MOBILE_CALLWAITING --DELETE FROM CRM_MOBILE_CALLWAITING_HISTORY --DELETE FROM CRM_MOBILE_CAMELUCSI --DELETE FROM CRM_MOBILE_CAMELUCSI_HISTORY --DELETE FROM CRM_MOBILE_CUGFEATURE --DELETE FROM CRM_MOBILE_CUGFEATURE_HISTORY --DELETE FROM CRM_MOBILE_CUGSUBS --DELETE FROM CRM_MOBILE_CUGSUBS_HISTORY --DELETE FROM CRM_MOBILE_MULTIPLEIMSI --DELETE FROM CRM_MOBILE_MULTIPLEIMSI_HISTORY --DELETE FROM CRM_MOBILE_NETWORK --DELETE FROM CRM_MOBILE_NETWORK_HISTORY --DELETE FROM CRM_MOBILE_PROVISIONINGQUEUE --DELETE FROM CRM_MOBILE_SS --DELETE FROM CRM_MOBILE_SS_HISTORY --DELETE FROM dbo.HLR_CallBarringOG_BSG --DELETE FROM dbo.HLR_CallBarringSS --DELETE FROM dbo.HLR_CallBarringSubsOption --DELETE FROM dbo.HLR_CallForward --DELETE FROM dbo.HLR_CallForwardBsg --DELETE FROM dbo.HLR_CamelSubsInfo --DELETE FROM dbo.HLR_CamelTdp --DELETE FROM dbo.HLR_CugFeature --DELETE FROM dbo.HLR_CugSubscription --DELETE FROM dbo.HLR_GprsContext --DELETE FROM dbo.HLR_MultiImsi --DELETE FROM dbo.HLR_RECORD --DELETE FROM dbo.HLR_RequestErrors --DELETE FROM dbo.HLR_Sim --DELETE FROM dbo.HLR_SSCallWaitActivStatus --DELETE FROM dbo.HLR_SSProvisionStatus --DELETE FROM dbo.HLR_SubscriberProfile --DELETE FROM dbo.HlrCamelUCsi --DELETE FROM dbo.HlrCamelUGCsi --Billing --SMS and EMAIL --DELETE FROM CRM_MVNO_SMS_LOG --Copy MVNO --DELETE FROM CRM_Copy_MVNO_Detail --DELETE FROM CRM_Copy_MVNO_IDMapping --DELETE FROM CRM_Copy_MVNO_Info --Rate plan --select * from RM_DATECATEGORY --DELETE FROM RM_DATECATEGORY --select * from RM_TIMECATEGORY --select * from RM_CALLDIRECTION --DELETE FROM RM_CALLDIRECTION WHERE CALLDIRECTIONID>4000 --SELECT * FROM RM_CARRIER --SELECT * FROM RM_COIN_REGULAR --select * from RM_UNITCATEGORY --DELETE FROM RM_UNITCATEGORY WHERE UNITCATEGORYID>4000 --select * from RM_ROAMING_OPERATORS_E164 --select * from RM_CALLTYPE --select * from RM_INTERNATIONAL_ZONE -- DELETE FROM RM_INTERNATIONAL_ZONE --select * from RM_INTERNATIONAL_ZONE_DETAILS --delete from RM_INTERNATIONAL_ZONE_DETAILS --select * from RM_ROAMING_ZONE --select * from RM_ROAMING_ZONE_DETAILS --select * from RM_RATEPLAN_DETAILS --select * from RM_TRANSLATION --select * from RM_BUNDLE_PACKAGE --select * From RM_RATEPLAN --select * from RM_BUNDLE --select * from RM_PACKAGE --System --select * FROM SYS_DICTIONARY --SELECT * FROM SYS_MVNO_LANGUAGE --SELECT * FROM SYS_MULTILINGUAL WHERE DEALERID=120000 --DELETE FROM SYS_MULTILINGUAL WHERE DEALERID NOT IN (SELECT DEALERID FROM CRM_DEALERS) AND DEALERID<>-1 AND DEALERID<>100000 --DELETE FROM SYS_MESSAGE_USER --SELECT * FROM SYS_MESSAGE_USER --DELETE FROM SYS_MESSAGE --DELETE FROM SYS25_LOG_SECURITY --DELETE FROM AuditLog --DELETE FROM CRM_CONFIG_MVNOFORMNAME WHERE MVNOID NOT IN (SELECT DEALERID FROM CRM_DEALERS) AND MVNOID<>-1 AND MVNOID<>100000 --update SYS_MULTILINGUAL set DEALERID=280000 where DEALERID=440000 --update SYS_MULTILINGUAL set DEALERID=290000 where DEALERID=450000 --SELECT * FROM CRM_DEALERS --SELECT * FROM SYS25_USER_ORG --SELECT * FROM SYS25_MODULE --SELECT * FROM SYS25_USER ----DELETE FROM SYS25_USER WHERE DEPARTMENTID NOT IN (SELECT DISTINCT OrgID FROM SYS25_ORGANIZATION ) --SELECT * FROM SYS25_ROLE --SELECT * FROM SYS25_USER_DEALER --SELECT * FROM SYS25_USER_ROLE --DELETE FROM SYS25_USER_ROLE --DELETE FROM SYS25_USER_DEALER --DELETE FROM SYS25_ROLE --DELETE FROM SYS25_USER_ORG --SELECT * FROM SYS25_ORGANIZATION WHERE ORGID=25 --DELETE FROM SYS25_ORGANIZATION WHERE MVNOID IS NULL --DELETE FROM SYS25_ORGANIZATION WHERE MVNOID NOT IN (SELECT DEALERID FROM CRM_DEALERS) --update SYS25_ORGANIZATION set MVNOID=280000 where MVNOID=440000 --update SYS25_ORGANIZATION set MVNOID=290000 where MVNOID=450000 --SELECT * FROM SYS30_PERMISSION --Drop table: --DROP TABLE CRM_DEALERS_SETTINGS --DROP TABLE CRM_DEALERS_1 --DROP TABLE CRM_DEALERS_20090902 --DROP TABLE CRM_DEALERS_UI --DROP TABLE dbo.ABC --DROP TABLE dbo.ccr_bak --DROP TABLE dbo.classTab --DROP TABLE dbo.crm_customers_products_200902252103 --DROP TABLE dbo.network_bak --DROP TABLE dbo.CRM_DEALERS_SETTINGS_1 --DROP TABLE dbo.CRM_DEALERS_SETTINGS_25022008 --DROP TABLE dbo.CRM_DEALERS_SETTINGS_BAK --DROP TABLE dbo.Query --DROP TABLE dbo.rd5555 --DROP TABLE dbo.rd9999 --DROP TABLE dbo.peter_coin --DROP TABLE dbo.rm_calltype_20090104 --DROP TABLE dbo.rm_rateplan_details_1000001057 --DROP TABLE dbo.rm_rateplan_details_200903131107 --DROP TABLE dbo.rm_rateplan_details_200903141709 --DROP TABLE dbo.rm_rateplan_details_200903141728 --DROP TABLE dbo.rm_rateplan_details_20090327roamingbakup --DROP TABLE dbo.rm_rateplan_details_200904032033_allbakup --DROP TABLE dbo.rm_rateplan_details_orbitel_roaming_voice_200903162133 --DROP TABLE dbo.rm_roaming_zone_details_bak0528 --DROP TABLE dbo.rm_roaming_zone_details_tmp0528 --DROP TABLE dbo.rm_roaming_zone_details_tmp0528_ex2 --DROP TABLE dbo.rm_translation_200904032033_allbakup --DROP TABLE dbo.rzdxxxxxx --DROP TABLE dbo.Sheet1$ --DROP TABLE dbo.SPAIN --DROP TABLE dbo.SQL_TEST --DROP TABLE dbo.student --DROP TABLE dbo.SYS_ID --DROP TABLE dbo.SYS_LANGUAGE --DROP TABLE dbo.sys_language_bak_20090216 --DROP TABLE dbo.sys_npm_20090423 --DROP TABLE dbo.SYS_NPM_20090713_TEM --DROP TABLE dbo.sys_npm_bright --DROP TABLE dbo.SYS_NPM_DEALER_1 --DROP TABLE dbo.sys_npm_dealer_20090423 --DROP TABLE dbo.SYS_NPM_DEALER_20090713_TEM --DROP TABLE dbo.sys_npm_dealer_bright --DROP TABLE dbo.SYS_TRANSLATION_20090304 --DROP TABLE dbo.sys_translation_new --DROP TABLE dbo.SYS_TRANSLATION1 --DROP TABLE dbo.tblBatches --DROP TABLE dbo.tblBatchPartialAggs --DROP TABLE dbo.tblConnections --DROP TABLE dbo.tblInterestingEvents --DROP TABLE dbo.tblMiscInfo --DROP TABLE dbo.tblPlanRows --DROP TABLE dbo.tblPlans --DROP TABLE dbo.tblProcedureNames --DROP TABLE dbo.tblStatements --DROP TABLE dbo.tblStmtPartialAggs --DROP TABLE dbo.tblTimeIntervals ----DROP TABLE dbo.tblTimeIntervals --DROP TABLE dbo.tblTracedEvents --DROP TABLE dbo.tblTraceFiles --DROP TABLE dbo.tblUniqueBatches --DROP TABLE dbo.tblUniquePlanRows --DROP TABLE dbo.tblUniquePlans --DROP TABLE dbo.tblUniqueStatements --DROP TABLE dbo.tblWarnings --DROP TABLE dbo.temp_npm --DROP TABLE dbo.temp_trc --DROP TABLE dbo.temp_trc1 --DROP TABLE dbo.temp_trc2 --DROP TABLE dbo.test --DROP TABLE dbo.TEST_PAGE_TABLE --DROP TABLE dbo.testtable --DROP TABLE dbo.tmp_CRM_MOBILE_SIMCARDS --DROP TABLE dbo.TMP_CUSTOMERS_SERVICES_CHECK_20090312 --DROP TABLE dbo.TMP_RATEPLANDETAILS_IMPORT --DROP TABLE dbo.TMP001_RELATIONS --DROP TABLE dbo.TraceTable --DROP TABLE dbo.TraceTable_Chris --DROP TABLE dbo.translog --DROP TABLE SYS25_ROLE_PERMISSION --DROP TABLE SYS_MVNO_LANGUAGE --DROP TABLE CRM_CUSTOMERS_MAPPING_1 --DROP TABLE CRM_CUSTOMERS_PRODUCTS_1 --DROP TABLE CRM_CUSTOMERS_SERVICES_1 --DROP TABLE crm_customers_services_20090228 --DROP TABLE crm_customers_services_20090228duplicatebundle --DROP TABLE crm_customers_services_200903121635 --DROP TABLE crm_customers_services_ryan_20090213 ----DROP TABLE CRM_DEALERS_110000_ALTER_DEALERID_BAK ----DROP TABLE CRM_DEALERS_210000_ALTER_DEALERID_BAK ----DROP TABLE CRM_DEALERS_250000_ALTER_DEALERID_BAK --DROP TABLE crm_dealers_cleanup_bob_11_24 --DROP TABLE CRM_DEALERS_SETTINGS_nouse --DROP TABLE CRM_DEALERS_SETTINGS_nouse_BOB --DROP TABLE CRM_DEALERS_VOUCHER_20090901 --DROP TABLE CRM_WHOLESALEBILL_OUTPUTFIELD11 --DROP TABLE crm_lifecycle_settings_bak_20090813 --DROP TABLE crm_lifecycle_settings_bak_20090814 --DROP TABLE dbo.ID_TABLE --DROP TABLE dbo.CRM_MVNO_SEQUENCE --DROP TABLE dbo.CRM_CUSTOMERS_RESOURCEMB_clean_0904 --DROP TABLE dbo.CRM_CUSTOMERS_RESOURCEMB_TEST_090906 --DROP TABLE dbo.CRM_LIFECYCLE_DISALLOWED_TRAFFICS_200902241025 --DROP TABLE dbo.CRM_LIFECYCLE_DISALLOWED_TRAFFICS_200903011152 --DROP TABLE dbo.CRM_LIFECYCLE_FREEPHONES_200902241025 --DROP TABLE dbo.CRM_LIFECYCLE_SETTINGS_DETAILS_bak_20090813 --DROP TABLE dbo.CRM_LIFECYCLE_SETTINGS_DETAILS_bak_20090814 --DROP TABLE dbo.CRM_LIFECYCLE_SMS_TEMPLET_bak_20090813 --DROP TABLE dbo.crm_mnp_npdb_esvf_200902021436 --DROP TABLE dbo.crm_mnp_npdb_esvf_20090202x --DROP TABLE dbo.crm_mnp_npdb_esvf_20090604 --DROP TABLE dbo.crm_mnp_npdb_esvf_bak20090531 --DROP TABLE dbo.CRM_TT_USER_200903052239 --DROP TABLE dbo.FGNTP_32FILT_BAK20090531 --DROP TABLE dbo.RM_ROAMING_OPERATORS_E164_BACKUP_090819 --DROP TABLE dbo.SYS_MULTILINGUAL_1209_bob --DROP TABLE dbo.SYS_MULTILINGUAL_1210_bob --DROP TABLE dbo.SYS_MULTILINGUAL_1215_bob --DROP TABLE dbo.SYS_MULTILINGUAL_1216_bob --DROP TABLE dbo.SYS_MULTILINGUAL_1221_bob --DROP TABLE dbo.SYS_MULTILINGUAL_CHRIS20091222 --DROP TABLE dbo.SYS_MULTILINGUAL_darren --DROP TABLE dbo.SYS_MULTILINGUAL_darren_1223 --DROP TABLE dbo.SYS_MULTILINGUAL_Gary_20091222 --DROP TABLE dbo.SYS_MULTILINGUAL_Rabi --DROP TABLE dbo.SYS_MULTILINGUAL_rabi_20091222 --DROP TABLE dbo.SYS_MULTILINGUAL_rabi2 --DROP TABLE dbo.SYS_MULTILINGUAL_rabi3_091225 --DROP TABLE dbo.SYS_MULTILINGUAL_Rabi4_091225 --DROP TABLE dbo.SYS25_MODULE_Rabi --DROP TABLE dbo.SYS25_STYLE_Rabi_091225 --DROP TABLE dbo.SYS30_PERMISSION_Rabi --DROP TABLE dbo.Test_Lincoln --DROP TABLE dbo.Test_Lincoln_Detail --DROP TABLE CRM_LIFECYCLE_REPORTS --SYS-PREFIX TABLE -- PROCEDURE --FUNCTIOIN --TRIGGER select COUNT(1) from SYS30_PERMISSION select * from SYS_MULTILINGUAL where DealerID=0
true
a293a84583d0beb1dee0657e484ae1c2daf78a3f
SQL
anricoj1/cyber-coders-project
/meetsql.sql
UTF-8
11,068
3.34375
3
[]
no_license
-- MySQL dump 10.13 Distrib 5.7.26, for Linux (x86_64) -- -- Host: localhost Database: MEET -- ------------------------------------------------------ -- Server version 5.7.26-0ubuntu0.18.04.1 /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; /*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */; /*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */; /*!40101 SET NAMES utf8 */; /*!40103 SET @OLD_TIME_ZONE=@@TIME_ZONE */; /*!40103 SET TIME_ZONE='+00:00' */; /*!40014 SET @OLD_UNIQUE_CHECKS=@@UNIQUE_CHECKS, UNIQUE_CHECKS=0 */; /*!40014 SET @OLD_FOREIGN_KEY_CHECKS=@@FOREIGN_KEY_CHECKS, FOREIGN_KEY_CHECKS=0 */; /*!40101 SET @OLD_SQL_MODE=@@SQL_MODE, SQL_MODE='NO_AUTO_VALUE_ON_ZERO' */; /*!40111 SET @OLD_SQL_NOTES=@@SQL_NOTES, SQL_NOTES=0 */; -- -- Table structure for table `Attendee` -- DROP TABLE IF EXISTS `Attendee`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `Attendee` ( `attendee_id` int(11) NOT NULL AUTO_INCREMENT, `event_id` int(11) DEFAULT NULL, `user_name` varchar(100) DEFAULT NULL, `attending` tinyint(1) DEFAULT NULL, `group_id` int(11) DEFAULT NULL, PRIMARY KEY (`attendee_id`) ) ENGINE=InnoDB AUTO_INCREMENT=17 DEFAULT CHARSET=latin1; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Dumping data for table `Attendee` -- LOCK TABLES `Attendee` WRITE; /*!40000 ALTER TABLE `Attendee` DISABLE KEYS */; INSERT INTO `Attendee` VALUES (2,NULL,'jason@email.com',1,11),(4,3,'jason@email.com',0,NULL),(7,NULL,'admin@email.com',1,2),(9,NULL,'jason@email.com',1,12),(10,1,'jason@email.com',0,NULL),(11,NULL,'jason@email.com',0,2),(15,11,'anricojason@gmail.com',1,NULL),(16,NULL,'anricojason@gmail.com',1,12); /*!40000 ALTER TABLE `Attendee` ENABLE KEYS */; UNLOCK TABLES; -- -- Table structure for table `Events` -- DROP TABLE IF EXISTS `Events`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `Events` ( `event_id` int(11) NOT NULL AUTO_INCREMENT, `group_id` int(11) NOT NULL, `name` varchar(100) DEFAULT NULL, `description` varchar(100) DEFAULT NULL, `date_time` varchar(100) DEFAULT NULL, `starttime` time DEFAULT NULL, `endtime` time DEFAULT NULL, `attendees` int(11) DEFAULT NULL, `location` varchar(100) DEFAULT NULL, `creator` varchar(100) DEFAULT NULL, PRIMARY KEY (`event_id`,`group_id`) ) ENGINE=InnoDB AUTO_INCREMENT=12 DEFAULT CHARSET=latin1; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Dumping data for table `Events` -- LOCK TABLES `Events` WRITE; /*!40000 ALTER TABLE `Events` DISABLE KEYS */; INSERT INTO `Events` VALUES (1,12,'event','this is a new event to test if this is committed into the db','2019-04-28',NULL,NULL,NULL,NULL,NULL),(3,2,'DATA','hello this is a new event to see if joining events and attendees works in dash','2019-05-26','22:00:00','02:00:00',NULL,'Morill 221',NULL),(4,10,'TIME','description','2019-04-28','14:00:00','15:00:00',NULL,'Morill 221',NULL),(9,10,'EVENTP2','hello!','2019-05-31','13:00:00','17:00:00',NULL,'The Classroom',NULL),(11,33,'Event time','this is a description','2019-05-26','22:00:00','12:00:00',NULL,'LOCATION','jason@email.com'); /*!40000 ALTER TABLE `Events` ENABLE KEYS */; UNLOCK TABLES; -- -- Table structure for table `Follower` -- DROP TABLE IF EXISTS `Follower`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `Follower` ( `follower_id` int(11) NOT NULL AUTO_INCREMENT, `user_id` int(11) DEFAULT NULL, `user_name` varchar(100) DEFAULT NULL, `following` tinyint(1) DEFAULT NULL, PRIMARY KEY (`follower_id`) ) ENGINE=InnoDB AUTO_INCREMENT=4 DEFAULT CHARSET=latin1; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Dumping data for table `Follower` -- LOCK TABLES `Follower` WRITE; /*!40000 ALTER TABLE `Follower` DISABLE KEYS */; INSERT INTO `Follower` VALUES (1,1,'jason@email.com',1),(3,1,'anricojason@gmail.com',1); /*!40000 ALTER TABLE `Follower` ENABLE KEYS */; UNLOCK TABLES; -- -- Table structure for table `GroupComments` -- DROP TABLE IF EXISTS `GroupComments`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `GroupComments` ( `comment_id` int(11) NOT NULL AUTO_INCREMENT, `event_id` int(11) DEFAULT NULL, `group_id` int(11) DEFAULT NULL, `creator_id` int(11) DEFAULT NULL, `approp_flag` tinyint(1) DEFAULT NULL, `content` varchar(100) DEFAULT NULL, PRIMARY KEY (`comment_id`) ) ENGINE=InnoDB DEFAULT CHARSET=latin1; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Dumping data for table `GroupComments` -- LOCK TABLES `GroupComments` WRITE; /*!40000 ALTER TABLE `GroupComments` DISABLE KEYS */; /*!40000 ALTER TABLE `GroupComments` ENABLE KEYS */; UNLOCK TABLES; -- -- Table structure for table `Groups_table` -- DROP TABLE IF EXISTS `Groups_table`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `Groups_table` ( `group_id` int(11) NOT NULL AUTO_INCREMENT, `name` varchar(100) DEFAULT NULL, `tag` varchar(45) DEFAULT NULL, `num_members` int(11) DEFAULT NULL, `group_img_path` blob, `creator` varchar(100) DEFAULT NULL, `createdate` timestamp NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP, `group_description` varchar(100) DEFAULT NULL, PRIMARY KEY (`group_id`) ) ENGINE=InnoDB AUTO_INCREMENT=34 DEFAULT CHARSET=latin1; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Dumping data for table `Groups_table` -- LOCK TABLES `Groups_table` WRITE; /*!40000 ALTER TABLE `Groups_table` DISABLE KEYS */; INSERT INTO `Groups_table` VALUES (2,'Blog Test','group',NULL,'','jason@email.com','2019-05-01 02:35:58','edit group'),(11,'Group name ','tags',NULL,_binary 'test.png','jason@email.com','2019-04-04 20:23:41',NULL),(12,'Notification Test','groupmeet',NULL,'','jason@email.com','2019-05-15 14:47:46','Notifcation'),(32,'Hello','t',NULL,_binary 'test.png','jason@email.com','2019-05-15 00:32:42','vbcvbvbb'); /*!40000 ALTER TABLE `Groups_table` ENABLE KEYS */; UNLOCK TABLES; -- -- Table structure for table `Messages` -- DROP TABLE IF EXISTS `Messages`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `Messages` ( `message_id` int(11) NOT NULL AUTO_INCREMENT, `body` varchar(400) DEFAULT NULL, `author` varchar(100) DEFAULT NULL, PRIMARY KEY (`message_id`) ) ENGINE=InnoDB DEFAULT CHARSET=latin1; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Dumping data for table `Messages` -- LOCK TABLES `Messages` WRITE; /*!40000 ALTER TABLE `Messages` DISABLE KEYS */; /*!40000 ALTER TABLE `Messages` ENABLE KEYS */; UNLOCK TABLES; -- -- Table structure for table `Notification` -- DROP TABLE IF EXISTS `Notification`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `Notification` ( `notify_id` int(11) NOT NULL AUTO_INCREMENT, `event_id` int(11) DEFAULT NULL, `group_id` int(11) DEFAULT NULL, `change_summary` varchar(100) DEFAULT NULL, `user_id` int(11) DEFAULT NULL, PRIMARY KEY (`notify_id`) ) ENGINE=InnoDB DEFAULT CHARSET=latin1; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Dumping data for table `Notification` -- LOCK TABLES `Notification` WRITE; /*!40000 ALTER TABLE `Notification` DISABLE KEYS */; /*!40000 ALTER TABLE `Notification` ENABLE KEYS */; UNLOCK TABLES; -- -- Table structure for table `Posts` -- DROP TABLE IF EXISTS `Posts`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `Posts` ( `post_id` int(11) NOT NULL AUTO_INCREMENT, `body` varchar(250) DEFAULT NULL, `author` varchar(100) DEFAULT NULL, `date_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP, `user_id` int(11) DEFAULT NULL, PRIMARY KEY (`post_id`) ) ENGINE=InnoDB AUTO_INCREMENT=4 DEFAULT CHARSET=latin1; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Dumping data for table `Posts` -- LOCK TABLES `Posts` WRITE; /*!40000 ALTER TABLE `Posts` DISABLE KEYS */; INSERT INTO `Posts` VALUES (1,'This is a blog post','jason@email.com','2019-05-13 04:09:44',NULL),(2,'This is another test','jason@email.com','2019-05-13 04:24:41',1),(3,'New Post','jason@email.com','2019-05-14 20:18:53',1); /*!40000 ALTER TABLE `Posts` ENABLE KEYS */; UNLOCK TABLES; -- -- Table structure for table `Security` -- DROP TABLE IF EXISTS `Security`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `Security` ( `sec_event_id` int(11) NOT NULL AUTO_INCREMENT, `date_time` datetime DEFAULT NULL, `user_id` int(11) DEFAULT NULL, `method_used` varchar(45) DEFAULT NULL, PRIMARY KEY (`sec_event_id`) ) ENGINE=InnoDB DEFAULT CHARSET=latin1; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Dumping data for table `Security` -- LOCK TABLES `Security` WRITE; /*!40000 ALTER TABLE `Security` DISABLE KEYS */; /*!40000 ALTER TABLE `Security` ENABLE KEYS */; UNLOCK TABLES; -- -- Table structure for table `User` -- DROP TABLE IF EXISTS `User`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `User` ( `user_id` int(11) NOT NULL AUTO_INCREMENT, `first_name` varchar(100) DEFAULT NULL, `last_name` varchar(100) DEFAULT NULL, `email` varchar(100) DEFAULT NULL, `password` varchar(100) DEFAULT NULL, `community_violations` smallint(6) DEFAULT NULL, `profile_pic_path` varchar(100) DEFAULT NULL, `followers` int(11) DEFAULT NULL, `role` varchar(20) DEFAULT NULL, PRIMARY KEY (`user_id`) ) ENGINE=InnoDB AUTO_INCREMENT=14 DEFAULT CHARSET=latin1; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Dumping data for table `User` -- LOCK TABLES `User` WRITE; /*!40000 ALTER TABLE `User` DISABLE KEYS */; INSERT INTO `User` VALUES (1,'Jason','Anrico','jason@email.com','$5$rounds=535000$h8GZA26eHpQfVjfp$BdceZCWsgkC7tMg0GSrjx8/Qg8Ts.cYxCGXBpiGcD9C',NULL,NULL,NULL,'user'),(2,'Jay','Hey','anricojason@gmail.com','$5$rounds=535000$1ZxG3fBKG9BAcppS$TAEHsFlsylF8Ul2jtWORVfv0UmFB6xdeJSpnSvKtfc0',NULL,NULL,NULL,'user'),(5,'Admin','Admin','admin@email.com','$5$rounds=535000$OKb8FePccqvmCqG8$G3puVg59AhdZDBly781oyqJktRvwg6I5q7ngurSAcW/',NULL,NULL,NULL,'admin'),(6,'New','Admin','admin2@email.com','$5$rounds=535000$PzL9FYMnaSMP8ZbT$evWlY4Zis6vMfYZqjVtzUj6BSUe5LXdl4WyE4xSSdW8',NULL,NULL,NULL,'admin'); /*!40000 ALTER TABLE `User` ENABLE KEYS */; UNLOCK TABLES; /*!40103 SET TIME_ZONE=@OLD_TIME_ZONE */; /*!40101 SET SQL_MODE=@OLD_SQL_MODE */; /*!40014 SET FOREIGN_KEY_CHECKS=@OLD_FOREIGN_KEY_CHECKS */; /*!40014 SET UNIQUE_CHECKS=@OLD_UNIQUE_CHECKS */; /*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */; /*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */; /*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */; /*!40111 SET SQL_NOTES=@OLD_SQL_NOTES */; -- Dump completed on 2019-05-15 14:36:12
true
f46559bdd51b75a39f99d73d912ec9420d100be6
SQL
aedoler/IS362_Assignment1
/sql_Week1.sql
UTF-8
2,868
4.21875
4
[]
no_license
#*********PART 1*********** #-----Question 1----- SELECT COUNT(DISTINCT tailnum) AS 'No. listed speeds', MAX(speed) AS 'Max. speed', MIN(speed) AS 'Min. speed' FROM planes WHERE speed IS NOT null; #Output: 23, 432, 90 #-----Question 2----- SELECT SUM(distance) FROM flights WHERE year = 2013 AND month = 1; #Output: 27188805 SELECT SUM(distance) FROM flights WHERE year = 2013 AND month = 1 AND tailnum is null; #OUtput: 81763 #-----Question 3----- #Total distance flown INNER JOIN SELECT p.manufacturer, SUM(f.distance) FROM planes p INNER JOIN flights f ON p.tailnum = f.tailnum WHERE f.year = 2013 AND f.month = 7 AND f.day = 5 GROUP BY p.manufacturer; #Total distance flown LEFT OUTER JOIN /*In this case, there was no difference between the outputs. However, the login of the LEFT OUTER JOIN would also return all records of the first field, regardless of whether or not there are non-null records for the second specified field. */ SELECT p.manufacturer, SUM(f.distance) FROM planes p LEFT OUTER JOIN flights f ON p.tailnum = f.tailnum WHERE f.year = 2013 AND f.month = 7 AND f.day = 5 GROUP BY p.manufacturer; #-----Question 4----- /*This query lists the average arrival delay for American Airlines flights at all destinations from New York airports in the month of July, 2013 listed from greatest to least delay.*/ SELECT f.month AS Month, AVG(f.arr_delay) AS 'Average arrival delay', ap.name AS 'Airport' FROM flights as f INNER JOIN airlines AS a ON a.carrier = f.carrier INNER JOIN airports AS ap ON f.dest = ap.faa WHERE f.month = 7 AND a.carrier = 'AA' GROUP BY f.month, ap.name ORDER BY AVG(f.arr_delay) DESC; #**********PART 2********** #URL TO PUBLIC TABLEAU WORKBOOK: # https://public.tableau.com/profile/alexander.doler#!/vizhome/Comparisionofaverageflightdelays/Dashboard1 /*I am unable to export data into a .csv by query due to an Error 1290, which I am unable to resolve However, the below is a query that I would use to export data into a .csv file For this assignment, I impported the full .csv files in Tableau */ SELECT f.month AS Month, AVG(f.dep_delay) AS 'Average delay' INTO OUTFILE '/Users/alexanderdoler/Desktop/CUNY\ Spring\ 2017/IS\ 362/Assignments/Week\ 1/avgDelayJFK.csv' FIELDS TERMINATED BY ',' OPTIONALLY ENCLOSED BY '"' ESCAPED BY '\\' LINES TERMINATED BY '\n' FROM flights as f INNER JOIN airlines AS a ON a.carrier = f.carrier WHERE f.origin = 'JFK' AND a.carrier = 'AA' GROUP BY f.month ORDER BY month; SELECT f.month AS Month, AVG(f.dep_delay) AS 'Average delay' INTO OUTFILE '/Users/alexanderdoler/Desktop/CUNY\ Spring\ 2017/IS\ 362/Assignments/Week\ 1/avgDelayMIA.csv' FIELDS TERMINATED BY ',' OPTIONALLY ENCLOSED BY '"' ESCAPED BY '\\' LINES TERMINATED BY '\n' FROM flights as f INNER JOIN airlines AS a ON a.carrier = f.carrier WHERE f.origin = 'LGA' AND a.carrier = 'DL' GROUP BY f.month ORDER BY month DESC;
true
81493423afc54795e0e1e8e526bd6ba2965cb9f7
SQL
Cristian-Moller/Web2TPE
/database/db_concesionaria.sql
UTF-8
7,598
2.984375
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 4.8.3 -- https://www.phpmyadmin.net/ -- -- Servidor: 127.0.0.1 -- Tiempo de generación: 29-11-2019 a las 03:53:07 -- Versión del servidor: 10.1.37-MariaDB -- Versión de PHP: 7.2.12 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; /*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */; /*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */; /*!40101 SET NAMES utf8mb4 */; -- -- Base de datos: `db_concesionaria` -- -- -------------------------------------------------------- -- -- Estructura de tabla para la tabla `comentario` -- CREATE TABLE `comentario` ( `id` int(50) NOT NULL, `comentario` varchar(255) NOT NULL, `puntuacion` int(50) NOT NULL, `id_usuario_fk` int(50) NOT NULL, `id_vehiculo_fk` int(50) NOT NULL ) ENGINE=InnoDB DEFAULT CHARSET=latin1; -- -- Volcado de datos para la tabla `comentario` -- INSERT INTO `comentario` (`id`, `comentario`, `puntuacion`, `id_usuario_fk`, `id_vehiculo_fk`) VALUES (1, 'El vehiculo se encuentra en excelentes condiciones', 4, 2, 1), (4, 'Le falta dibujo al rodado', 3, 2, 14), (5, 'Esta chocao el guadabarro', 2, 1, 22), (6, 'El tapizado es genial', 4, 2, 43), (7, 'No puedo creer que tengan esta joya aca', 5, 1, 23), (12, 'HOLA', 1, 2, 22), (15, 'Se ve que lo han cuidado', 5, 1, 8), (16, 'excelente vehiculo', 3, 1, 8), (18, 'Buen auto', 3, 1, 8), (19, 'Mi caballo Paco corre mas rapido', 2, 2, 1), (20, 'Que pinturita!', 3, 4, 1), (22, 'Que lindo para ir a la playa @Marta!!', 5, 2, 29), (23, 'Ya junte los bartulos.. cuando salimos??', 4, 5, 29), (24, 'Planchalo al piso pa!', 2, 5, 14); -- -------------------------------------------------------- -- -- Estructura de tabla para la tabla `imagen` -- CREATE TABLE `imagen` ( `Id` int(55) NOT NULL, `id_vehiculo_fk` int(55) NOT NULL, `imagen_url` varchar(100) NOT NULL ) ENGINE=InnoDB DEFAULT CHARSET=latin1; -- -- Volcado de datos para la tabla `imagen` -- INSERT INTO `imagen` (`Id`, `id_vehiculo_fk`, `imagen_url`) VALUES (85, 48, 'img/vehiculo/5dd94af938988.png'), (86, 48, 'img/vehiculo/5dd94af93a819.png'), (0, 1, 'img/vehiculo/5de081c5e7d0b.png'), (0, 2, 'img/vehiculo/5de081f683a9e.png'), (0, 8, 'img/vehiculo/5de08235b7d0d.png'), (0, 11, 'img/vehiculo/5de0825f5d552.png'), (0, 12, 'img/vehiculo/5de08294665fc.png'), (0, 13, 'img/vehiculo/5de082c7f0ca1.png'), (0, 14, 'img/vehiculo/5de082ff47655.png'), (0, 15, 'img/vehiculo/5de08327050e5.png'), (0, 22, 'img/vehiculo/5de08405e982c.png'), (0, 22, 'img/vehiculo/5de0840602cc7.png'), (0, 22, 'img/vehiculo/5de084060d8aa.png'), (0, 23, 'img/vehiculo/5de0851bab78a.png'), (0, 23, 'img/vehiculo/5de0851bb8e66.png'), (0, 23, 'img/vehiculo/5de0851bc3a48.png'), (0, 29, 'img/vehiculo/5de0862ec587a.png'), (0, 29, 'img/vehiculo/5de0862ed5a4d.png'), (0, 29, 'img/vehiculo/5de0862f0cf68.png'), (0, 29, 'img/vehiculo/5de0862f2e2af.png'); -- -------------------------------------------------------- -- -- Estructura de tabla para la tabla `marca` -- CREATE TABLE `marca` ( `id` int(11) NOT NULL, `nombre` varchar(50) NOT NULL ) ENGINE=InnoDB DEFAULT CHARSET=latin1; -- -- Volcado de datos para la tabla `marca` -- INSERT INTO `marca` (`id`, `nombre`) VALUES (1, 'Chery'), (2, 'Chevrolet'), (3, 'Volkswagen'), (4, 'Toyota'), (5, 'Ford'), (6, 'Honda'), (7, 'Fiat'), (8, 'Renault'), (9, 'JEEP'), (10, 'Citroen'), (17, 'video'), (18, 'salado'); -- -------------------------------------------------------- -- -- Estructura de tabla para la tabla `usuario` -- CREATE TABLE `usuario` ( `id` int(11) NOT NULL, `email` varchar(50) NOT NULL, `password` varchar(255) NOT NULL, `admin` tinyint(1) NOT NULL ) ENGINE=InnoDB DEFAULT CHARSET=latin1; -- -- Volcado de datos para la tabla `usuario` -- INSERT INTO `usuario` (`id`, `email`, `password`, `admin`) VALUES (1, 'test1@test.com', '$2y$12$yhMVNmdzYTSeF7SWpEL0yux96UAXS67u2.wrR9Qs45//Pr90/alQ.', 0), (2, 'test@test.com', '$2b$10$aT9mJkXfRz/hQjUh1DtCf.qdH/dfiieX1yYC5shJHhpSJdF2phl7e', 1), (3, 'df@fdsa.com', '$2y$10$hi6LQWw8QcbOimPg6DBN7uyursUFEnlskSnFdP2TwXeXFi4O/j8U.', 0), (4, 'carlos@carlos.com', '$2y$10$9jUyXlNibjZ9g/JNkvxzzuXCzBeeqCjwHlTbRh0aOVSFl8Sh5.Ikq', 0), (5, 'marta@marta.com', '$2y$10$cfZI9pZkQd/41poYkLk3VOzEsJVSADIN22HffLivZonMQ9bJeFZsi', 0), (6, 'mateo@mateo.com', '$2y$10$SisZ1Tb.lNXri0Bz9sxHyuuwOT8ePL3BjiUM862UVNk.MerPUTqlG', 0), (7, 'tere@tere.com', '$2y$10$aiARtyNeypn6bRHpfGrPTe1UMDHqSiWSQxo3hoY7I5fJ7VSUUbFve', 0), (14, 'walter@walter.com', '$2y$10$nPGIfid6jGwx7aqJbu7Q6uunDIlZ.5qYsX.6OrQj9xWqOH7TmKsA6', 0); -- -------------------------------------------------------- -- -- Estructura de tabla para la tabla `vehiculo` -- CREATE TABLE `vehiculo` ( `id` int(11) NOT NULL, `nombre` varchar(50) NOT NULL, `combustible` varchar(50) NOT NULL, `color` varchar(50) NOT NULL, `precio` int(11) NOT NULL, `id_marca_fk` int(11) NOT NULL, `vendido` tinyint(1) NOT NULL, `imagen_url` varchar(255) DEFAULT NULL ) ENGINE=InnoDB DEFAULT CHARSET=latin1; -- -- Volcado de datos para la tabla `vehiculo` -- INSERT INTO `vehiculo` (`id`, `nombre`, `combustible`, `color`, `precio`, `id_marca_fk`, `vendido`, `imagen_url`) VALUES (1, 'QQ', 'Nafta', 'Blanco', 140000, 1, 0, 'img/vehiculo/5dd4999c0e6a1.jpg'), (2, 'Corsa', 'Nafta', 'Azul', 180000, 2, 1, NULL), (8, 'C3', 'Nafta', 'Negro', 240000, 10, 0, NULL), (11, 'Siena', 'Nafta', 'Negro', 175000, 7, 0, NULL), (12, 'Focus', 'Nafta', 'Blanco', 350000, 5, 0, NULL), (13, 'Clio', 'Nafta', 'Champagne', 190000, 8, 0, NULL), (14, 'Etios', 'Nafta', 'Gris', 250000, 4, 1, NULL), (15, 'Golf R-32', 'Nafta', 'Azul', 210000, 3, 0, NULL), (22, 'Siena', 'Gasoil', 'Rojo', 145000, 7, 0, NULL), (23, 'UP', 'Nafta', 'Blanco', 500000, 3, 0, NULL), (29, 'Renegade', 'Nafta', 'Naranja', 1200000, 9, 0, NULL), (32, 'safdg', 'Nafta', 'Azul', 7575, 3, 0, NULL), (42, 'safdg', '', 'Gris', 0, 18, 0, NULL), (43, 'safdg', 'Nafta', 'Azul', 0, 18, 0, NULL); -- -- Índices para tablas volcadas -- -- -- Indices de la tabla `comentario` -- ALTER TABLE `comentario` ADD PRIMARY KEY (`id`), ADD KEY `id_usuario_fk` (`id_usuario_fk`), ADD KEY `id_vehiculo_fk` (`id_vehiculo_fk`); -- -- Indices de la tabla `marca` -- ALTER TABLE `marca` ADD PRIMARY KEY (`id`); -- -- Indices de la tabla `usuario` -- ALTER TABLE `usuario` ADD PRIMARY KEY (`id`), ADD UNIQUE KEY `email` (`email`); -- -- Indices de la tabla `vehiculo` -- ALTER TABLE `vehiculo` ADD PRIMARY KEY (`id`), ADD KEY `Marca` (`id_marca_fk`,`nombre`); -- -- AUTO_INCREMENT de las tablas volcadas -- -- -- AUTO_INCREMENT de la tabla `comentario` -- ALTER TABLE `comentario` MODIFY `id` int(50) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=25; -- -- AUTO_INCREMENT de la tabla `marca` -- ALTER TABLE `marca` MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=19; -- -- AUTO_INCREMENT de la tabla `usuario` -- ALTER TABLE `usuario` MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=15; -- -- AUTO_INCREMENT de la tabla `vehiculo` -- ALTER TABLE `vehiculo` MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=44; -- -- Restricciones para tablas volcadas -- -- -- Filtros para la tabla `comentario` -- ALTER TABLE `comentario` ADD CONSTRAINT `comentario_ibfk_1` FOREIGN KEY (`id_usuario_fk`) REFERENCES `usuario` (`id`), ADD CONSTRAINT `comentario_ibfk_2` FOREIGN KEY (`id_vehiculo_fk`) REFERENCES `vehiculo` (`id`); -- -- Filtros para la tabla `vehiculo` -- ALTER TABLE `vehiculo` ADD CONSTRAINT `vehiculo_ibfk_1` FOREIGN KEY (`id_marca_fk`) REFERENCES `marca` (`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
0e566f33625a5195956b525d9dae08399d039849
SQL
Ptyga/afpa
/sql/Northwind.sql
UTF-8
2,678
4.21875
4
[]
no_license
/* EXERCICE 1 */ SELECT CompanyName AS `Société`, ContactName AS `Contact`, ContactTitle AS `Fonction`, Phone AS `Téléphone` FROM customers WHERE Country = "France" /* EXERCICE 2 */ SELECT ProductName AS `Produit`, UnitPrice AS `Prix` FROM products JOIN suppliers ON suppliers.SupplierID = products.SupplierID WHERE CompanyName = "Exotic Liquids" /* EXERCICE 3 */ SELECT suppliers.CompanyName AS `Fournisseur`, COUNT(ProductName) AS `Nombre de produits` FROM products JOIN suppliers ON suppliers.SupplierID = products.SupplierID WHERE Country = "France" GROUP BY suppliers.CompanyName ORDER BY COUNT(ProductName) DESC /* EXERCICE 4 */ SELECT orders.ShipName AS `Client`, COUNT(orders.OrderID) AS `Nombre de commandes` FROM orders WHERE orders.ShipCountry = "France" GROUP BY orders.ShipName HAVING COUNT(orders.OrderID) > 10 /* EXERCICE 5 */ SELECT orders.ShipName AS `Client`, SUM(`order details`.UnitPrice * `order details`.Quantity) AS `Chiffre d'Affaire`, orders.ShipCountry AS `Pays` FROM orders INNER JOIN `order details` ON orders.OrderID = `order details`.OrderID GROUP BY orders.ShipName, orders.ShipCountry HAVING SUM(`order details`.UnitPrice * `order details`.Quantity) > 30000 ORDER BY SUM(`order details`.UnitPrice * `order details`.Quantity) DESC /* EXERCICE 6 */ SELECT DISTINCT orders.ShipCountry AS `Pays` FROM orders JOIN `order details` ON orders.OrderID = `order details`.OrderID JOIN products ON `order details`.ProductID = products.ProductID JOIN suppliers ON products.SupplierID = suppliers.SupplierID WHERE suppliers.CompanyName = "Exotic Liquids" ORDER BY orders.ShipCountry /* EXERCICE 7 */ SELECT SUM(`order details`.UnitPrice * `order details`.Quantity) AS `Montant Ventes 97` FROM `order details` JOIN orders ON `order details`.OrderID = orders.OrderID WHERE YEAR(orders.orderDate) = 1997 /* EXERCICE 8 */ SELECT MONTH(orders.OrderDate) AS `Mois 97`, SUM(`order details`.UnitPrice * `order details`.Quantity) AS `Montant Ventes 97` FROM `order details` JOIN orders ON `order details`.OrderID = orders.OrderID WHERE YEAR(orders.orderDate) = 1997 GROUP BY MONTH(orders.OrderDate) /* EXERCICE 9 */ SELECT orders.OrderDate AS `Date de la dernière commande` FROM orders WHERE orders.ShipName = "Du monde entier" GROUP BY orders.OrderDate DESC LIMIT 0,1 /* EXERCICE 10 */ SELECT ROUND(AVG(DATEDIFF(orders.ShippedDate, orders.OrderDate))) AS `Délai moyen de livraison en jours` FROM orders
true
f914c07a2406db41e14c8655a2f4e8522fd9c887
SQL
JSON033/CSE-111
/Jason-Feng-lab4/10.sql
UTF-8
122
3.203125
3
[]
no_license
select p_type, max(l_discount) from lineitem, part where p_type like 'ECONOMY%' and p_partkey = l_partkey group by p_type;
true
81f790b60d09cd321683e3219209769d2e871692
SQL
elopez92/SocialMediaWebAndroid
/DBScript.sql
UTF-8
1,053
4.1875
4
[]
no_license
DROP TABLE user; DROP TABLE tweets; DROP TABLE following; DROP VIEW user_tweets; DROP DATABASE twitter; create DATABASE twitter; USE twitter; CREATE TABLE user( id INT AUTO_INCREMENT PRIMARY KEY, first_name VARCHAR(50), email VARCHAR(50), password VARCHAR(50), picture_path VARCHAR(350) ); describe user; CREATE TABLE tweets( user_id INT, tweet_id INT AUTO_INCREMENT PRIMARY KEY, tweet_text VARCHAR(100), tweet_picture VARCHAR(350), tweet_date TIMESTAMP DEFAULT CURRENT_TIMESTAMP, FOREIGN KEY (user_id) REFERENCES user(id) ); describe tweets; CREATE TABLE following( user_id INT, following_user_id INT, FOREIGN KEY (user_id) REFERENCES user(id), FOREIGN KEY (following_user_id) REFERENCES user(id) ); describe following; CREATE VIEW user_tweets AS SELECT tweets.tweet_id, tweets.tweet_text, tweets.tweet_picture, tweets.tweet_date, user.first_name, user.last_name, user.picture_path FROM tweets INNER JOIN user on tweets.user_id = user.id ; describe user_tweets;
true
b9b92add96ed73ac3b1abba76c68de654d3ea76b
SQL
cobblau/leetcode
/Database/181-employees_earning_more_than_their_managers.sql
UTF-8
234
3.25
3
[]
no_license
# https://leetcode.com/problems/employees-earning-more-than-their-managers/ # # Author: Cobblau # Email: cobblau@gmail.com # select e1.Name as Employee from Employee e1 left join Employee e2 on e1.ManagerId = e2.Id where e1.Salary > e2.Salary;
true
5fb6174e98bbe9d02d250f41389fe1ef317ff247
SQL
nguyenxuanhai1701/ADO
/ADO/Stored procedures/ADO-sp.sql
UTF-8
951
3.71875
4
[]
no_license
--create table CREATE TABLE tblEmployees (EmployeeId int identity primary key, Name nvarchar(50), Gender nvarchar(10), Salary int) INSERT INTO tblEmployees values('Mason','Male',5000) INSERT INTO tblEmployees values('Priyanka','Female',3500) INSERT INTO tblEmployees values('John','Male',2350) INSERT INTO tblEmployees values('Louna','Female',5700) INSERT INTO tblEmployees values('Jackson','Male',4890) INSERT INTO tblEmployees values('Aulia','Female',4500) --Insert sp create or alter procedure spEMPLOYEE_i (@NAME nvarchar(50), @GENDER nvarchar(10), @SALARY int) as begin insert into tblEmployees values(@NAME,@GENDER,@SALARY); end; --Get sp create or alter procedure spEMPLOYEE_get (@NAME nvarchar(50), @GENDER nvarchar(10), @SALARY int) as begin select EmployeeId, Name, Gender, Salary from tblEmployees where (@NAME ='' or LOWER(Name) like '%'+LOWER(@NAME)+'%') and (@GENDER='' or Gender=@GENDER) and (@SALARY ='' or Salary=@SALARY); end;
true
4a3fc6f405dd2698706f5690b8b8b9036a429d8c
SQL
MarinPaunovic/PHPAcademyHomework4
/gym.sql
UTF-8
6,128
3.84375
4
[]
no_license
# ------------------------------------STANDARD----------------------------------------------- CREATE DATABASE GYM CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci; use GYM; # ----------------------------------STATUS--------------------------------------------------------- create table status( id tinyint not null primary key auto_increment, status_člana varchar(255) ); insert into status(status_člana) values('Student'), ('Zaposlena osoba'), ('Ne zaposlena osoba'), ('Umirovljenik'); # ------------------------------------VRSTA TRENINGA------------------------------------------------------- create table vrsta_treninga( id tinyint not null primary key auto_increment, vrsta_treninga varchar(255) ); insert into vrsta_treninga(vrsta_treninga) values ('Individualni trening'), ('3 Individualna treninga + 3 treninga uz trenera'), ('Treninzi uz trenera'), ('grupni treninzi'); # ----------------------------------------Cijena------------------------------------ create table cijena( id tinyint not null primary key auto_increment, cijena double ); insert into cijena(cijena) values(149.00), (179.00), (199.00), (209.00), (229.00), (239.00), (269.00); # ----------------------------------------TRAJANJE UGOVORA------------------------------------ create table ugovor( id tinyint not null auto_increment primary key, trajanje int ); insert into ugovor(trajanje) values(12),(6); # ----------------------------------------ČLANOVI--------------------------------------------------- create table ČLANOVI( id int not null primary key auto_increment, ime varchar(255), prezime varchar(255), godine tinyint, status tinyint, foreign key(status) REFERENCES status(id) ON DELETE CASCADE ); insert into članovi(ime,prezime,godine, status) values('Marin','Paunović',24, 1), ('Filip','Paunović',25, 2), ('Petar','Kalinić',68, 3), ('Stjepan','Stipić',59,3), ('Borna','Dijanović',17,2), ('Luka','Šarac',29,1), ('Dražen','Štrudlić',32,2), ('Kruno','Milić',52,2); # --------------------------------------CIJENOVNIK----------------------------------------------------- create table cjenovnik( id tinyint not null primary key auto_increment, vrsta_treninga tinyint, trajanje_ugovora tinyint, cijena tinyint, status tinyint, foreign key(status) REFERENCES status(id) ON DELETE CASCADE, foreign key(vrsta_treninga) REFERENCES vrsta_treninga(id) ON DELETE CASCADE, foreign key(cijena) REFERENCES cijena(id) ON DELETE CASCADE, foreign key(trajanje_ugovora) REFERENCES ugovor(id) ON DELETE CASCADE ); insert into cjenovnik (vrsta_treninga, trajanje_ugovora, cijena, status) values (1,1,3,1), (1,2,5,1), (4,1,1,1), (4,2,2,1), (1,1,6,2), (1,2,7,2), (4,1,3,2), (4,2,6,2), (1,1,4,3), (1,2,6,3), (4,1,3,3), (4,2,5,3); # ----------------------------------AKTIVNI ČLANOVI------------------------------------------------------------------ Create table aktivni_članovi( id int not null auto_increment primary key, user_id int not null, cjenovnik_id tinyint not null, foreign key(user_id) REFERENCES članovi(id) ON DELETE CASCADE, foreign key(cjenovnik_id) REFERENCES cjenovnik(id) ON DELETE CASCADE ); ALTER TABLE aktivni_članovi ADD istek_ugovora DATE NOT NULL AFTER cjenovnik_id; insert into aktivni_članovi(user_id , cjenovnik_id, istek_ugovora) values (1,5,'2021-03-09'), (1,7,'2021-06-17'), (2,5,'2021-01-06'), (6,3,'2020-12-25'); # --------------------------------------------------------------------------------------------------
true
c5a86c1aa2f33869cfe3b9a749e34d2de2a55d25
SQL
AmandaNguyenn/employee_management_system
/seeds.sql
UTF-8
808
3.203125
3
[]
no_license
use employees; INSERT INTO department (name) VALUES ('Human Resources'), ('Marketing'), ('Accounting'), ('Sales'); INSERT INTO role (title, salary, department_id) VALUES ('Sales Lead', 90000, 1), ('Salesperson', 80000, 1), ('Billing Specialist', 100000, 2), ('Graphic Designer', 110000, 2), ('Account Manager', 120000, 3), ('Accountant', 115000, 3), ('Vice President of HR', 250000, 4), ('HR Manager', 150000, 4); INSERT INTO employee (first_name, last_name, role_id, manager_id) VALUES ('Amanda', 'Nguyen', 1, NULL), ('Chris', 'Bright', 2, 1), ('Bodhi', 'Nguyen', 3, NULL), ('Jane', 'Doe', 4, 3), ('John', 'Doe', 5, NULL), ('Jon', 'Smith', 6, 5), ('Joe', 'Rehfus', 7, NULL), ('Denis', 'Malloy', 8, 7);
true
2bc4f4971536744c9fb61041cb39e0c6c4c06795
SQL
chaodhib/reservation_admin
/src/main/sql/h2/generated/01-create.sql
UTF-8
5,379
3.546875
4
[]
no_license
-- -- Source code generated by Celerio, a Jaxio product. -- Documentation: http://www.jaxio.com/documentation/celerio/ -- Follow us on twitter: @jaxiosoft -- Need commercial support ? Contact us: info@jaxio.com -- Template pack-backend-jpa:src/main/sql/h2/01-create.p.vm.sql -- Template is part of Open Source Project: https://github.com/jaxio/pack-backend-jpa -- DROP ALL objects; -- ================================= -- TABLE artists -- ================================= CREATE TABLE artists ( id INTEGER(10) not null, firstname VARCHAR(60) not null, lastname VARCHAR(60) not null); CREATE UNIQUE INDEX IF NOT EXISTS PRIMARY ON artists (id); ALTER TABLE artists ALTER COLUMN id IDENTITY; -- ================================= -- TABLE cast_member -- ================================= CREATE TABLE cast_member ( id INTEGER(10) not null, artist_id INTEGER(10) not null, type_id INTEGER(10) not null, show_id INTEGER(10) not null); CREATE UNIQUE INDEX IF NOT EXISTS PRIMARY ON cast_member (id); ALTER TABLE cast_member ALTER COLUMN id IDENTITY; -- ================================= -- TABLE locality -- ================================= CREATE TABLE locality ( id INTEGER(10) not null, postal_code VARCHAR(6) not null, locality VARCHAR(60) not null); CREATE UNIQUE INDEX IF NOT EXISTS locality ON locality (locality); CREATE UNIQUE INDEX IF NOT EXISTS postal_code ON locality (postal_code); CREATE UNIQUE INDEX IF NOT EXISTS PRIMARY ON locality (id); ALTER TABLE locality ALTER COLUMN id IDENTITY; -- ================================= -- TABLE locations -- ================================= CREATE TABLE locations ( id INTEGER(10) not null, slug VARCHAR(60) not null, designation VARCHAR(60) not null, address VARCHAR(255) not null, locality_id INTEGER(10) not null, website VARCHAR(255) not null, phone VARCHAR(30) not null); CREATE UNIQUE INDEX IF NOT EXISTS PRIMARY ON locations (id); CREATE UNIQUE INDEX IF NOT EXISTS slug ON locations (slug); ALTER TABLE locations ALTER COLUMN id IDENTITY; -- ================================= -- TABLE representation_user -- ================================= CREATE TABLE representation_user ( id INTEGER(10) not null, representation_id INTEGER(10) not null, user_id INTEGER(10) not null, places INTEGER(10) not null); CREATE UNIQUE INDEX IF NOT EXISTS PRIMARY ON representation_user (id); ALTER TABLE representation_user ALTER COLUMN id IDENTITY; -- ================================= -- TABLE representations -- ================================= CREATE TABLE representations ( id INTEGER(10) not null, show_id INTEGER(10) not null, when TIMESTAMP not null, location_id INTEGER(10)); CREATE UNIQUE INDEX IF NOT EXISTS PRIMARY ON representations (id); ALTER TABLE representations ALTER COLUMN id IDENTITY; -- ================================= -- TABLE roles -- ================================= CREATE TABLE roles ( id INTEGER(10) not null, role VARCHAR(30) not null); CREATE UNIQUE INDEX IF NOT EXISTS PRIMARY ON roles (id); ALTER TABLE roles ALTER COLUMN id IDENTITY; -- ================================= -- TABLE shows -- ================================= CREATE TABLE shows ( id INTEGER(10) not null, slug VARCHAR(60) not null, title VARCHAR(255) not null, poster_url VARCHAR(255) not null, location_id INTEGER(10) not null, bookable BIT(1) not null, price DECIMAL(10,2) not null); CREATE UNIQUE INDEX IF NOT EXISTS PRIMARY ON shows (id); CREATE UNIQUE INDEX IF NOT EXISTS slug ON shows (slug); ALTER TABLE shows ALTER COLUMN id IDENTITY; -- ================================= -- TABLE types -- ================================= CREATE TABLE types ( id INTEGER(10) not null, type VARCHAR(60) not null); CREATE UNIQUE INDEX IF NOT EXISTS PRIMARY ON types (id); ALTER TABLE types ALTER COLUMN id IDENTITY; -- ================================= -- TABLE users -- ================================= CREATE TABLE users ( id INTEGER(10) not null, login VARCHAR(30) not null, password VARCHAR(255) not null, role_id INTEGER(10) not null, firstname VARCHAR(60) not null, lastname VARCHAR(60) not null, email VARCHAR(100) not null, langue VARCHAR(2) not null); CREATE UNIQUE INDEX IF NOT EXISTS PRIMARY ON users (id); ALTER TABLE users ALTER COLUMN id IDENTITY; ALTER TABLE cast_member ADD CONSTRAINT ARTISTE_TYPE_IBFK_1 FOREIGN KEY (artist_id) REFERENCES artists (id); ALTER TABLE cast_member ADD CONSTRAINT ARTISTE_TYPE_IBFK_2 FOREIGN KEY (type_id) REFERENCES types (id); ALTER TABLE cast_member ADD CONSTRAINT ARTISTE_TYPE_IBFK_3 FOREIGN KEY (show_id) REFERENCES shows (id); ALTER TABLE locations ADD CONSTRAINT LOCATIONS_IBFK_1 FOREIGN KEY (locality_id) REFERENCES locality (id); ALTER TABLE representation_user ADD CONSTRAINT REPRESENTATION_USER_IBFK_2 FOREIGN KEY (user_id) REFERENCES users (id); ALTER TABLE representation_user ADD CONSTRAINT REPRESENTATION_USER_IBFK_1 FOREIGN KEY (representation_id) REFERENCES representations (id); ALTER TABLE representations ADD CONSTRAINT REPRESENTATIONS_IBFK_1 FOREIGN KEY (show_id) REFERENCES shows (id); ALTER TABLE representations ADD CONSTRAINT REPRESENTATIONS_IBFK_2 FOREIGN KEY (location_id) REFERENCES locations (id); ALTER TABLE shows ADD CONSTRAINT SHOWS_IBFK_1 FOREIGN KEY (location_id) REFERENCES locations (id); ALTER TABLE users ADD CONSTRAINT USERS_IBFK_1 FOREIGN KEY (role_id) REFERENCES roles (id);
true
fa8dc16a9b3df186604c99e1c6fddf7a4ac09ea5
SQL
zshCuanNi/reminder-calendar
/spring-boot-backend/src/main/resources/sql/init.sql
UTF-8
837
3.78125
4
[ "MIT" ]
permissive
drop database if exists memo; create database memo; use memo; -- drop index deadlineIK on Memos; drop table if exists Memos; -- drop index usernameIK on User; drop table if exists User; create table User ( UID int not null auto_increment, username varchar(50), password varchar(50), primary key (UID) ); create index usernameIK on User ( username ); create table Memos ( ID int not null auto_increment, UID int not null, deadline datetime, headline varchar(100), detail varchar(100), primary key (ID) ); create index deadlineIK on Memos ( deadline ); alter table Memos add constraint FK_Memos foreign key (UID) references User (UID) on delete restrict on update restrict;
true
8b9337d5545105c7e39512cdd348dce49f4c0dd1
SQL
AmiyaDas/BloodDonor
/db/city.sql
UTF-8
10,589
2.859375
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 4.6.5.2 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Generation Time: Mar 20, 2017 at 05:12 AM -- Server version: 10.1.19-MariaDB -- PHP Version: 5.5.38 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: `blood` -- -- -------------------------------------------------------- -- -- Table structure for table `city` -- CREATE TABLE `city` ( `city_id` int(5) NOT NULL, `city_name` varchar(50) NOT NULL, `state_id` int(2) NOT NULL, `state` varchar(50) NOT NULL ) ENGINE=MyISAM DEFAULT CHARSET=latin1 ROW_FORMAT=DYNAMIC; -- -- Dumping data for table `city` -- INSERT INTO `city` (`city_id`, `city_name`, `state_id`, `state`) VALUES (1, 'Port Blair', 1, 'Andaman and Nicobar Islands'), (2, 'Anantapur', 2, 'Andhra Pradesh'), (3, 'Eluru', 2, 'Andhra Pradesh'), (4, 'Guntur', 2, 'Andhra Pradesh'), (5, 'Hyderabad', 2, 'Andhra Pradesh'), (6, 'Kakinada', 2, 'Andhra Pradesh'), (8, 'Karnul', 2, 'Andhra Pradesh'), (9, 'Khammam', 2, 'Andhra Pradesh'), (10, 'Machilipatnam', 2, 'Andhra Pradesh'), (13, 'Nellur', 2, 'Andhra Pradesh'), (14, 'Nizamabad', 2, 'Andhra Pradesh'), (16, 'Proddatur', 2, 'Andhra Pradesh'), (17, 'Rajamahendri', 2, 'Andhra Pradesh'), (18, 'Sikandarabad', 2, 'Andhra Pradesh'), (19, 'Tirupati', 2, 'Andhra Pradesh'), (20, 'Vijayawada', 2, 'Andhra Pradesh'), (21, 'Visakhapatnam', 2, 'Andhra Pradesh'), (22, 'Vizianagaram', 2, 'Andhra Pradesh'), (23, 'Warangal', 2, 'Andhra Pradesh'), (24, 'Itanagar', 3, 'Arunachal Pradesh'), (25, 'Bongaigaon', 4, 'Assam'), (26, 'Dibrugarh', 4, 'Assam'), (27, 'Guwahati', 4, 'Assam'), (28, 'Jorhat', 4, 'Assam'), (29, 'Nagaon', 4, 'Assam'), (30, 'Silchar', 4, 'Assam'), (31, 'Asansol', 5, 'West Bengal'), (32, 'Baharampur', 5, 'West Bengal'), (33, 'Barddhaman', 5, 'West Bengal'), (35, 'Durgapur', 5, 'West Bengal'), (36, 'Ghatal', 5, 'West Bengal'), (37, 'Gopalpur', 5, 'West Bengal'), (39, 'Kharagpur', 5, 'West Bengal'), (40, 'Puruliya', 5, 'West Bengal'), (41, 'Raiganj', 5, 'West Bengal'), (42, 'Ranaghat', 5, 'West Bengal'), (43, 'Shiliguri', 5, 'West Bengal'), (44, 'UttarparaKotrung', 5, 'West Bengal'), (45, 'Arrah', 6, 'Bihar'), (46, 'Aurangabad', 6, 'Bihar'), (47, 'Begusarai', 6, 'Bihar'), (48, 'Bettiah', 6, 'Bihar'), (49, 'Bhabua', 6, 'Bihar'), (50, 'Bhagalpur', 6, 'Bihar'), (51, 'Buxar', 6, 'Bihar'), (52, 'Chhapra', 6, 'Bihar'), (53, 'Darbhanga', 6, 'Bihar'), (54, 'Dehri', 6, 'Bihar'), (55, 'Gaya', 6, 'Bihar'), (56, 'Hajipur', 6, 'Bihar'), (57, 'Jamalpur', 6, 'Bihar'), (58, 'Katihar', 6, 'Bihar'), (59, 'Kishanganj', 6, 'Bihar'), (60, 'Madhubani', 6, 'Bihar'), (61, 'Motihari', 6, 'Bihar'), (62, 'Munger', 6, 'Bihar'), (63, 'Muzaffarpur', 6, 'Bihar'), (64, 'Nawada', 6, 'Bihar'), (65, 'Patna', 6, 'Bihar'), (66, 'Phulwari', 6, 'Bihar'), (67, 'Purnia', 6, 'Bihar'), (68, 'Saharsa', 6, 'Bihar'), (69, 'Samastipur', 6, 'Bihar'), (70, 'Sasaram', 6, 'Bihar'), (71, 'Sitamarhi', 6, 'Bihar'), (72, 'Siwan', 6, 'Bihar'), (73, 'Chandigarh', 7, 'Chandigarh'), (74, 'Ambikapur', 8, 'Chhattisgarh'), (75, 'Bhilai', 8, 'Chhattisgarh'), (76, 'Bilaspur', 8, 'Chhattisgarh'), (77, 'Chirmiri', 8, 'Chhattisgarh'), (78, 'Dhamtari', 8, 'Chhattisgarh'), (79, 'Durg', 8, 'Chhattisgarh'), (80, 'Jagdalpur', 8, 'Chhattisgarh'), (81, 'Korba', 8, 'Chhattisgarh'), (82, 'Raigarh', 8, 'Chhattisgarh'), (83, 'Raipur', 8, 'Chhattisgarh'), (84, 'Rajnandgaon', 8, 'Chhattisgarh'), (85, 'Delhi', 9, 'Delhi'), (86, 'Ni Dilli', 9, 'Delhi'), (87, 'Madgaon', 10, 'Goa'), (88, 'Mormugao', 10, 'Goa'), (89, 'Panaji', 10, 'Goa'), (90, 'Ahmadabad', 11, 'Gujarat'), (91, 'Anand', 11, 'Gujarat'), (92, 'Bhavnagar', 11, 'Gujarat'), (93, 'Jamnagar', 11, 'Gujarat'), (94, 'Junagadh', 11, 'Gujarat'), (95, 'Morvi', 11, 'Gujarat'), (96, 'Navsari', 11, 'Gujarat'), (97, 'Porbandar', 11, 'Gujarat'), (98, 'Rajkot', 11, 'Gujarat'), (99, 'Surat', 11, 'Gujarat'), (100, 'Vadodara', 11, 'Gujarat'), (101, 'Ambala', 12, 'Haryana'), (102, 'Ambala Sadar', 12, 'Haryana'), (103, 'Bhiwani', 12, 'Haryana'), (104, 'Faridabad', 12, 'Haryana'), (105, 'Hisar', 12, 'Haryana'), (106, 'Karnal', 12, 'Haryana'), (107, 'Panchkula', 12, 'Haryana'), (108, 'Panipat', 12, 'Haryana'), (109, 'Rohtak', 12, 'Haryana'), (110, 'Sirsa', 12, 'Haryana'), (111, 'Sonipat', 12, 'Haryana'), (112, 'Yamunanagar', 12, 'Haryana'), (113, 'Shimla', 13, 'Himachal Pradesh'), (114, 'Jammu', 14, 'Jammu and Kashmir'), (115, 'Srinagar', 14, 'Jammu and Kashmir'), (116, 'Udhampur', 14, 'Jammu and Kashmir'), (117, 'Bokaro', 15, 'Jharkhand'), (118, 'Chaibasa', 15, 'Jharkhand'), (119, 'Daltenganj', 15, 'Jharkhand'), (120, 'Devghar', 15, 'Jharkhand'), (121, 'Dhanbad', 15, 'Jharkhand'), (122, 'Hazaribag', 15, 'Jharkhand'), (123, 'Jamshedpur', 15, 'Jharkhand'), (124, 'Jhumri Tilaiya', 15, 'Jharkhand'), (125, 'Lohardaga', 15, 'Jharkhand'), (126, 'Phusro', 15, 'Jharkhand'), (127, 'Ramgarh', 15, 'Jharkhand'), (128, 'Ranchi', 15, 'Jharkhand'), (129, 'Sahibganj', 15, 'Jharkhand'), (130, 'Saunda', 15, 'Jharkhand'), (131, 'Sindari', 15, 'Jharkhand'), (132, 'Bangalore', 16, 'Karnataka'), (133, 'Belgaum', 16, 'Karnataka'), (134, 'Bellary', 16, 'Karnataka'), (135, 'Bijapur', 16, 'Karnataka'), (136, 'Davanagere', 16, 'Karnataka'), (137, 'Gulbarga', 16, 'Karnataka'), (138, 'Hubli', 16, 'Karnataka'), (139, 'Mangaluru', 16, 'Karnataka'), (140, 'Raichur', 16, 'Karnataka'), (141, 'Ramanagaram', 16, 'Karnataka'), (142, 'Shimoga', 16, 'Karnataka'), (143, 'Alappuzha', 17, 'Kerala'), (144, 'Kochi', 17, 'Kerala'), (145, 'Kollam', 17, 'Kerala'), (146, 'Kozhikkod', 17, 'Kerala'), (147, 'Malappuram', 17, 'Kerala'), (148, 'Manjeri', 17, 'Kerala'), (149, 'Palakkad', 17, 'Kerala'), (150, 'Ponnani', 17, 'Kerala'), (151, 'Thalassery', 17, 'Kerala'), (152, 'Thiruvananthapuram', 17, 'Kerala'), (153, 'Thrissur', 17, 'Kerala'), (154, 'Bhopal', 18, 'Madhya Pradesh'), (155, 'Dewas', 18, 'Madhya Pradesh'), (156, 'Gwalior', 18, 'Madhya Pradesh'), (157, 'Indore', 18, 'Madhya Pradesh'), (158, 'Jabalpur', 18, 'Madhya Pradesh'), (159, 'Murwara', 18, 'Madhya Pradesh'), (160, 'Ratlam', 18, 'Madhya Pradesh'), (161, 'Rewa', 18, 'Madhya Pradesh'), (162, 'Sagar', 18, 'Madhya Pradesh'), (163, 'Satna', 18, 'Madhya Pradesh'), (164, 'Ujjain', 18, 'Madhya Pradesh'), (165, 'Amravati', 19, 'Maharashtra'), (166, 'Aurangabad', 19, 'Maharashtra'), (167, 'Badlapur', 19, 'Maharashtra'), (168, 'Bhiwandi', 19, 'Maharashtra'), (169, 'Mumbai', 19, 'Maharashtra'), (170, 'Jalgaon', 19, 'Maharashtra'), (171, 'Kolhapur', 19, 'Maharashtra'), (172, 'Malegaon', 19, 'Maharashtra'), (173, 'Nagpur', 19, 'Maharashtra'), (174, 'Nashik', 19, 'Maharashtra'), (175, 'Navi Mumbai', 19, 'Maharashtra'), (176, 'Pune', 19, 'Maharashtra'), (177, 'SangliMiraj', 19, 'Maharashtra'), (178, 'Sholapur', 19, 'Maharashtra'), (179, 'Thana', 19, 'Maharashtra'), (180, 'Vasai', 19, 'Maharashtra'), (181, 'Virar', 19, 'Maharashtra'), (182, 'Imphal', 20, 'Manipur'), (183, 'Shillong', 21, 'Meghalaya'), (184, 'Tura', 21, 'Meghalaya'), (185, 'Aizawl', 22, 'Mizoram'), (186, 'Lunglei', 22, 'Mizoram'), (187, 'Dimapur', 23, 'Nagaland'), (188, 'Kohima', 23, 'Nagaland'), (189, 'Wokha', 23, 'Nagaland'), (190, 'Balangir', 24, 'Orissa'), (191, 'Baleshwar', 24, 'Orissa'), (192, 'Baripada', 24, 'Orissa'), (193, 'Bhadrak', 24, 'Orissa'), (194, 'Bhubaneswar', 24, 'Orissa'), (195, 'Brahmapur', 24, 'Orissa'), (196, 'Jaypur', 24, 'Orissa'), (197, 'Jharsuguda', 24, 'Orissa'), (198, 'Cuttak', 24, 'Orissa'), (199, 'Puri', 24, 'Orissa'), (200, 'Raurkela', 24, 'Orissa'), (201, 'Rayagada', 24, 'Orissa'), (202, 'Sambalpur', 24, 'Orissa'), (203, 'Pondicherry', 25, 'Pondicherry'), (204, 'Amritsar', 26, 'Punjab'), (205, 'Batala', 26, 'Punjab'), (206, 'Bathinda', 26, 'Punjab'), (207, 'Dhuri', 26, 'Punjab'), (208, 'Hoshiarpur', 26, 'Punjab'), (209, 'Jalandhar', 26, 'Punjab'), (210, 'Ludhiana', 26, 'Punjab'), (211, 'Moga', 26, 'Punjab'), (212, 'Pathankot', 26, 'Punjab'), (213, 'Patiala', 26, 'Punjab'), (214, 'Ajmer', 27, 'Rajasthan'), (215, 'Alwar', 27, 'Rajasthan'), (216, 'Bharatpur', 27, 'Rajasthan'), (217, 'Bhilwara', 27, 'Rajasthan'), (218, 'Bikaner', 27, 'Rajasthan'), (219, 'Fatehpur', 27, 'Rajasthan'), (220, 'Ganganagar', 27, 'Rajasthan'), (221, 'Jaipur', 27, 'Rajasthan'), (222, 'Jaisalmer', 27, 'Rajasthan'), (223, 'Jodhpur', 27, 'Rajasthan'), (224, 'Kota', 27, 'Rajasthan'), (225, 'Pali', 27, 'Rajasthan'), (226, 'Sikar', 27, 'Rajasthan'), (227, 'Udaipur', 27, 'Rajasthan'), (228, 'Dindigul', 28, 'Tamil Nadu'), (229, 'Erode', 28, 'Tamil Nadu'), (230, 'Kanchipuram', 28, 'Tamil Nadu'), (231, 'Karur', 28, 'Tamil Nadu'), (232, 'Koyampattur', 28, 'Tamil Nadu'), (233, 'Chennai', 28, 'Tamil Nadu'), (234, 'Namakkal', 28, 'Tamil Nadu'), (235, 'Neyveli', 28, 'Tamil Nadu'), (236, 'Salem', 28, 'Tamil Nadu'), (237, 'Thanjavur', 28, 'Tamil Nadu'), (238, 'Tirunelveli', 28, 'Tamil Nadu'), (239, 'Tiruppur', 28, 'Tamil Nadu'), (240, 'Velluru', 28, 'Tamil Nadu'), (241, 'Agartala', 29, 'Tripura'), (242, 'Agartala MCl', 29, 'Tripura'), (243, 'Badharghat', 29, 'Tripura'), (244, 'Agra', 30, 'Uttar Pradesh'), (245, 'Aligarh', 30, 'Uttar Pradesh'), (246, 'Allahabad', 30, 'Uttar Pradesh'), (247, 'Ayodhya', 30, 'Uttar Pradesh'), (248, 'Bareli', 30, 'Uttar Pradesh'), (249, 'Fatehpur', 30, 'Uttar Pradesh'), (250, 'Firozabad', 30, 'Uttar Pradesh'), (251, 'Ghaziabad', 30, 'Uttar Pradesh'), (252, 'Gorakhpur', 30, 'Uttar Pradesh'), (253, 'Jhansi', 30, 'Uttar Pradesh'), (254, 'Kanpur', 30, 'Uttar Pradesh'), (255, 'Lucknow', 30, 'Uttar Pradesh'), (256, 'Mathura', 30, 'Uttar Pradesh'), (257, 'Mirat', 30, 'Uttar Pradesh'), (258, 'Moradabad', 30, 'Uttar Pradesh'), (259, 'Muzaffarnagar', 30, 'Uttar Pradesh'), (260, 'Noida', 30, 'Uttar Pradesh'), (261, 'Saharanpur', 30, 'Uttar Pradesh'), (262, 'Varanasi', 30, 'Uttar Pradesh'), (263, 'Dehra Dun', 31, 'Uttarakhand'), (264, 'Haldwani', 31, 'Uttarakhand'), (265, 'Haridwar', 31, 'Uttarakhand'), (266, 'Kashipur', 31, 'Uttarakhand'), (267, 'Pithoragarh', 31, 'Uttarakhand'), (268, 'Rishikesh', 31, 'Uttarakhand'), (269, 'Rudrapur', 31, 'Uttarakhand'), (270, 'Rurki', 31, 'Uttarakhand'), (38, 'Jalpaiguri', 5, 'West Bengal'), (34, 'Kolkata', 5, 'West Bengal'); -- -- Indexes for dumped tables -- -- -- Indexes for table `city` -- ALTER TABLE `city` ADD PRIMARY KEY (`city_id`); /*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */; /*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */; /*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */;
true
6afecb52361e84407f0411904313fc7a4a7685d1
SQL
jammynguyen/CBML2
/na/project/ini/DatabaseCreationScript/cr_users.sql
UTF-8
32,787
3.3125
3
[]
no_license
ALTER PROFILE "DEFAULT" LIMIT PASSWORD_LIFE_TIME UNLIMITED -- important to set to UNLIMITED PASSWORD_GRACE_TIME UNLIMITED; -- important to set to UNLIMITED DROP USER CONFIG CASCADE; CREATE USER CONFIG IDENTIFIED BY CONFIG DEFAULT TABLESPACE &ts TEMPORARY TABLESPACE TEMP PROFILE DEFAULT ACCOUNT UNLOCK; -- 2 Roles for CONFIG GRANT RESOURCE TO CONFIG; GRANT CONNECT TO CONFIG; ALTER USER CONFIG DEFAULT ROLE ALL; -- 4 System Privileges for CONFIG GRANT CREATE PROCEDURE TO CONFIG; GRANT UNLIMITED TABLESPACE TO CONFIG; GRANT EXECUTE ANY PROCEDURE TO CONFIG; GRANT CREATE ANY SYNONYM TO CONFIG; -- 5 Object Privileges for CONFIG GRANT EXECUTE ON SYS.DBMS_ALERT TO CONFIG; GRANT SELECT ON SYS.V_$SESSION TO CONFIG; DROP USER CIS_HMI_PA CASCADE; CREATE USER CIS_HMI_PA IDENTIFIED BY VALUES 'A34597ADC60EA58D' DEFAULT TABLESPACE &TABLESPACE TEMPORARY TABLESPACE TEMP PROFILE DEFAULT ACCOUNT UNLOCK; -- 2 Roles for CIS_HMI_PA GRANT CONNECT TO CIS_HMI_PA; GRANT RESOURCE TO CIS_HMI_PA; ALTER USER CIS_HMI_PA DEFAULT ROLE ALL; -- System Privileges for CIS_HMI_PA GRANT ADMINISTER DATABASE TRIGGER TO CIS_HMI_PA; GRANT ALTER SYSTEM TO CIS_HMI_PA; GRANT CREATE ANY SYNONYM TO CIS_HMI_PA; GRANT CREATE PROCEDURE TO CIS_HMI_PA; GRANT EXECUTE ANY PROCEDURE TO CIS_HMI_PA; GRANT UNLIMITED TABLESPACE TO CIS_HMI_PA; -- Object Privileges for COMM GRANT SELECT ON SYS.DBA_JOBS TO CIS_HMI_PA; GRANT SELECT ON SYS.DBA_JOBS_RUNNING TO CIS_HMI_PA; GRANT SELECT ON SYS.DBA_OBJECTS TO CIS_HMI_PA; GRANT SELECT ON SYS.DBA_VIEWS TO CIS_HMI_PA; GRANT SELECT ON SYS.DBA_WAITERS TO CIS_HMI_PA; GRANT SELECT ON SYS.DBMS_ALERT_INFO TO CIS_HMI_PA; GRANT EXECUTE ON SYS.DBMS_SYSTEM TO CIS_HMI_PA; GRANT SELECT ON SYS.GV_$INSTANCE TO CIS_HMI_PA; GRANT SELECT ON SYS.GV_$LOCK TO CIS_HMI_PA; GRANT SELECT ON SYS.GV_$LOCKED_OBJECT TO CIS_HMI_PA; GRANT SELECT ON SYS.GV_$SESSION TO CIS_HMI_PA; GRANT SELECT ON SYS.JOB$ TO CIS_HMI_PA; GRANT SELECT ON SYS.V_$DATABASE TO CIS_HMI_PA; GRANT SELECT ON SYS.V_$MYSTAT TO CIS_HMI_PA; GRANT SELECT ON SYS.V_$PROCESS TO CIS_HMI_PA; GRANT SELECT ON SYS.V_$SESSION TO CIS_HMI_PA; DROP USER COMM CASCADE; CREATE USER COMM IDENTIFIED BY VALUES '184268C92F79F3ED' DEFAULT TABLESPACE &TABLESPACE TEMPORARY TABLESPACE TEMP PROFILE DEFAULT ACCOUNT UNLOCK; -- 2 Roles for COMM GRANT CONNECT TO COMM; GRANT RESOURCE TO COMM; ALTER USER COMM DEFAULT ROLE ALL; -- 4 System Privileges for COMM GRANT CREATE ANY SYNONYM TO COMM; GRANT DROP ANY SYNONYM TO COMM; GRANT EXECUTE ANY PROCEDURE TO COMM; GRANT UNLIMITED TABLESPACE TO COMM; -- Object Privileges for COMM GRANT EXECUTE ON SYS.DBMS_SYSTEM TO COMM; GRANT SELECT ON SYS.V_$MYSTAT TO COMM; GRANT SELECT ON SYS.V_$SESSION TO COMM; GRANT EXECUTE ON SYS.DBMS_ALERT TO COMM; DROP USER MAIN CASCADE; CREATE USER MAIN IDENTIFIED BY VALUES '5ACF76541EE8B18F' DEFAULT TABLESPACE &TABLESPACE TEMPORARY TABLESPACE TEMP PROFILE DEFAULT ACCOUNT UNLOCK; -- 2 Roles for MAIN GRANT CONNECT TO MAIN; GRANT RESOURCE TO MAIN; ALTER USER MAIN DEFAULT ROLE ALL; -- 8 System Privileges for MAIN GRANT ADMINISTER DATABASE TRIGGER TO MAIN; GRANT ALTER SYSTEM TO MAIN; GRANT CREATE ANY DIRECTORY TO MAIN; GRANT CREATE ANY SYNONYM TO MAIN; GRANT CREATE DATABASE LINK TO MAIN; GRANT CREATE PROCEDURE TO MAIN; GRANT DROP ANY DIRECTORY TO MAIN; GRANT UNLIMITED TABLESPACE TO MAIN; GRANT ALTER ANY MATERIALIZED VIEW TO MAIN; GRANT CREATE ANY MATERIALIZED VIEW TO MAIN; GRANT CREATE ANY TABLE TO MAIN; GRANT ALTER ANY TABLE TO MAIN; -- Object Privileges for MAIN GRANT SELECT ON SYS.DBA_JOBS TO MAIN; GRANT SELECT ON SYS.DBA_JOBS_RUNNING TO MAIN; GRANT SELECT ON SYS.DBA_OBJECTS TO MAIN; GRANT SELECT ON SYS.DBA_VIEWS TO MAIN; GRANT SELECT ON SYS.DBA_WAITERS TO MAIN; GRANT SELECT ON SYS.DBMS_ALERT_INFO TO MAIN; GRANT EXECUTE ON SYS.DBMS_SYSTEM TO MAIN; GRANT SELECT ON SYS.GV_$INSTANCE TO MAIN; GRANT SELECT ON SYS.GV_$LOCK TO MAIN; GRANT SELECT ON SYS.GV_$LOCKED_OBJECT TO MAIN; GRANT SELECT ON SYS.GV_$SESSION TO MAIN; GRANT SELECT ON SYS.JOB$ TO MAIN; GRANT SELECT ON SYS.V_$DATABASE TO MAIN; GRANT SELECT ON SYS.V_$MYSTAT TO MAIN; GRANT SELECT ON SYS.V_$PROCESS TO MAIN; GRANT SELECT ON SYS.V_$SESSION TO MAIN; GRANT EXECUTE ON SYS.DBMS_ALERT TO MAIN; GRANT EXECUTE ON SYS.DBMS_LOCK TO MAIN; grant execute on dbms_pipe to MAIN; grant execute on dbms_job to MAIN; GRANT EXECUTE, DEBUG ON SYS.dbms_flashback TO MAIN; DROP USER STOPPAGE CASCADE; CREATE USER STOPPAGE IDENTIFIED BY VALUES '77019D0FE6E69024' DEFAULT TABLESPACE &TABLESPACE TEMPORARY TABLESPACE TEMP PROFILE DEFAULT ACCOUNT UNLOCK; -- 2 Roles for STOPPAGE GRANT CONNECT TO STOPPAGE; GRANT RESOURCE TO STOPPAGE; ALTER USER STOPPAGE DEFAULT ROLE ALL; -- 6 System Privileges for STOPPAGE GRANT ADMINISTER DATABASE TRIGGER TO STOPPAGE; GRANT ALTER SYSTEM TO STOPPAGE; GRANT CREATE ANY SYNONYM TO STOPPAGE; GRANT CREATE PROCEDURE TO STOPPAGE; GRANT EXECUTE ANY PROCEDURE TO STOPPAGE; GRANT UNLIMITED TABLESPACE TO STOPPAGE; GRANT CREATE ANY MATERIALIZED VIEW TO STOPPAGE; GRANT CREATE ANY TABLE TO STOPPAGE; GRANT ALTER ANY TABLE TO STOPPAGE; -- Object Privileges for STOPPAGE GRANT SELECT ON SYS.DBA_JOBS TO STOPPAGE; GRANT SELECT ON SYS.DBA_JOBS_RUNNING TO STOPPAGE; GRANT SELECT ON SYS.DBA_OBJECTS TO STOPPAGE; GRANT SELECT ON SYS.DBA_VIEWS TO STOPPAGE; GRANT SELECT ON SYS.DBA_WAITERS TO STOPPAGE; GRANT SELECT ON SYS.DBMS_ALERT_INFO TO STOPPAGE; GRANT EXECUTE ON SYS.DBMS_SYSTEM TO STOPPAGE; GRANT SELECT ON SYS.GV_$INSTANCE TO STOPPAGE; GRANT SELECT ON SYS.GV_$LOCK TO STOPPAGE; GRANT SELECT ON SYS.GV_$LOCKED_OBJECT TO STOPPAGE; GRANT SELECT ON SYS.GV_$SESSION TO STOPPAGE; GRANT SELECT ON SYS.JOB$ TO STOPPAGE; GRANT SELECT ON SYS.V_$DATABASE TO STOPPAGE; GRANT SELECT ON SYS.V_$MYSTAT TO STOPPAGE; GRANT SELECT ON SYS.V_$PROCESS TO STOPPAGE; GRANT SELECT ON SYS.V_$SESSION TO STOPPAGE; DROP USER STRACK CASCADE; CREATE USER STRACK IDENTIFIED BY VALUES '05C0AD3F13340C1A' DEFAULT TABLESPACE &TABLESPACE TEMPORARY TABLESPACE TEMP PROFILE DEFAULT ACCOUNT UNLOCK; -- 2 Roles for STRACK GRANT CONNECT TO STRACK; GRANT RESOURCE TO STRACK; ALTER USER STRACK DEFAULT ROLE ALL; -- 6 System Privileges for STRACK GRANT ADMINISTER DATABASE TRIGGER TO STRACK; GRANT ALTER SYSTEM TO STRACK; GRANT CREATE ANY SYNONYM TO STRACK; GRANT CREATE PROCEDURE TO STRACK; GRANT EXECUTE ANY PROCEDURE TO STRACK; GRANT UNLIMITED TABLESPACE TO STRACK; -- Object Privileges for STRACK GRANT SELECT ON SYS.DBA_JOBS TO STRACK; GRANT SELECT ON SYS.DBA_JOBS_RUNNING TO STRACK; GRANT SELECT ON SYS.DBA_OBJECTS TO STRACK; GRANT SELECT ON SYS.DBA_VIEWS TO STRACK; GRANT SELECT ON SYS.DBA_WAITERS TO STRACK; GRANT SELECT ON SYS.DBMS_ALERT_INFO TO STRACK; GRANT EXECUTE ON SYS.DBMS_SYSTEM TO STRACK; GRANT SELECT ON SYS.GV_$INSTANCE TO STRACK; GRANT SELECT ON SYS.GV_$LOCK TO STRACK; GRANT SELECT ON SYS.GV_$LOCKED_OBJECT TO STRACK; GRANT SELECT ON SYS.GV_$SESSION TO STRACK; GRANT SELECT ON SYS.JOB$ TO STRACK; GRANT SELECT ON SYS.V_$DATABASE TO STRACK; GRANT SELECT ON SYS.V_$MYSTAT TO STRACK; GRANT SELECT ON SYS.V_$PROCESS TO STRACK; GRANT SELECT ON SYS.V_$SESSION TO STRACK; ---------------------------------------------------------- -------------------L2admin-------------------------------- ---------------------------------------------------------- DROP USER L2ADMIN CASCADE; CREATE USER L2ADMIN IDENTIFIED BY L2ADMIN DEFAULT TABLESPACE &TABLESPACE TEMPORARY TABLESPACE TEMP PROFILE DEFAULT ACCOUNT UNLOCK; -- 24 Roles for L2ADMIN GRANT DBA TO L2ADMIN WITH ADMIN OPTION; GRANT RECOVERY_CATALOG_OWNER TO L2ADMIN WITH ADMIN OPTION; GRANT EXECUTE_CATALOG_ROLE TO L2ADMIN WITH ADMIN OPTION; GRANT DELETE_CATALOG_ROLE TO L2ADMIN WITH ADMIN OPTION; GRANT LOGSTDBY_ADMINISTRATOR TO L2ADMIN WITH ADMIN OPTION; GRANT HS_ADMIN_SELECT_ROLE TO L2ADMIN WITH ADMIN OPTION; GRANT HS_ADMIN_ROLE TO L2ADMIN WITH ADMIN OPTION; GRANT EXP_FULL_DATABASE TO L2ADMIN WITH ADMIN OPTION; GRANT IMP_FULL_DATABASE TO L2ADMIN WITH ADMIN OPTION; GRANT DBFS_ROLE TO L2ADMIN WITH ADMIN OPTION; GRANT DATAPUMP_EXP_FULL_DATABASE TO L2ADMIN WITH ADMIN OPTION; GRANT OEM_MONITOR TO L2ADMIN WITH ADMIN OPTION; GRANT DATAPUMP_IMP_FULL_DATABASE TO L2ADMIN WITH ADMIN OPTION; GRANT SELECT_CATALOG_ROLE TO L2ADMIN WITH ADMIN OPTION; GRANT AQ_ADMINISTRATOR_ROLE TO L2ADMIN WITH ADMIN OPTION; GRANT OEM_ADVISOR TO L2ADMIN WITH ADMIN OPTION; GRANT CONNECT TO L2ADMIN WITH ADMIN OPTION; GRANT AQ_USER_ROLE TO L2ADMIN WITH ADMIN OPTION; GRANT SCHEDULER_ADMIN TO L2ADMIN WITH ADMIN OPTION; GRANT GATHER_SYSTEM_STATISTICS TO L2ADMIN WITH ADMIN OPTION; GRANT HS_ADMIN_EXECUTE_ROLE TO L2ADMIN WITH ADMIN OPTION; GRANT WM_ADMIN_ROLE TO L2ADMIN WITH ADMIN OPTION; GRANT RESOURCE TO L2ADMIN WITH ADMIN OPTION; GRANT ADM_PARALLEL_EXECUTE_TASK TO L2ADMIN WITH ADMIN OPTION; ALTER USER L2ADMIN DEFAULT ROLE ALL; -- 206 System Privileges for L2ADMIN GRANT FLASHBACK ARCHIVE ADMINISTER TO L2ADMIN WITH ADMIN OPTION; GRANT DROP ANY CUBE BUILD PROCESS TO L2ADMIN WITH ADMIN OPTION; GRANT INSERT ANY CUBE DIMENSION TO L2ADMIN WITH ADMIN OPTION; GRANT CREATE ASSEMBLY TO L2ADMIN WITH ADMIN OPTION; GRANT EXECUTE ANY CLASS TO L2ADMIN WITH ADMIN OPTION; BEGIN SYS.DBMS_RULE_ADM.GRANT_SYSTEM_PRIVILEGE( PRIVILEGE => SYS.DBMS_RULE_ADM.ALTER_ANY_RULE, GRANTEE => 'L2ADMIN', GRANT_OPTION => TRUE); END; / BEGIN SYS.DBMS_RULE_ADM.GRANT_SYSTEM_PRIVILEGE( PRIVILEGE => SYS.DBMS_RULE_ADM.CREATE_RULE_SET_OBJ, GRANTEE => 'L2ADMIN', GRANT_OPTION => TRUE); END; / GRANT FLASHBACK ANY TABLE TO L2ADMIN WITH ADMIN OPTION; BEGIN SYS.DBMS_AQADM.GRANT_SYSTEM_PRIVILEGE ( PRIVILEGE => 'DEQUEUE_ANY', GRANTEE => 'L2ADMIN', ADMIN_OPTION => TRUE); END; / GRANT EXECUTE ANY OPERATOR TO L2ADMIN WITH ADMIN OPTION; GRANT EXECUTE ANY LIBRARY TO L2ADMIN WITH ADMIN OPTION; GRANT CREATE ANY LIBRARY TO L2ADMIN WITH ADMIN OPTION; GRANT ALTER PROFILE TO L2ADMIN WITH ADMIN OPTION; GRANT DROP PUBLIC SYNONYM TO L2ADMIN WITH ADMIN OPTION; GRANT INSERT ANY TABLE TO L2ADMIN WITH ADMIN OPTION; GRANT COMMENT ANY TABLE TO L2ADMIN WITH ADMIN OPTION; GRANT CREATE TABLE TO L2ADMIN WITH ADMIN OPTION; GRANT UNLIMITED TABLESPACE TO L2ADMIN WITH ADMIN OPTION; GRANT ALTER DATABASE LINK TO L2ADMIN WITH ADMIN OPTION; GRANT CREATE ANY CUBE TO L2ADMIN WITH ADMIN OPTION; GRANT COMMENT ANY MINING MODEL TO L2ADMIN WITH ADMIN OPTION; GRANT CREATE MINING MODEL TO L2ADMIN WITH ADMIN OPTION; GRANT ADMINISTER SQL TUNING SET TO L2ADMIN WITH ADMIN OPTION; BEGIN SYS.DBMS_RULE_ADM.GRANT_SYSTEM_PRIVILEGE( PRIVILEGE => SYS.DBMS_RULE_ADM.CREATE_ANY_RULE, GRANTEE => 'L2ADMIN', GRANT_OPTION => TRUE); END; / GRANT IMPORT FULL DATABASE TO L2ADMIN WITH ADMIN OPTION; BEGIN SYS.DBMS_RULE_ADM.GRANT_SYSTEM_PRIVILEGE( PRIVILEGE => SYS.DBMS_RULE_ADM.ALTER_ANY_RULE_SET, GRANTEE => 'L2ADMIN', GRANT_OPTION => TRUE); END; / BEGIN SYS.DBMS_RULE_ADM.GRANT_SYSTEM_PRIVILEGE( PRIVILEGE => SYS.DBMS_RULE_ADM.DROP_ANY_EVALUATION_CONTEXT, GRANTEE => 'L2ADMIN', GRANT_OPTION => TRUE); END; / BEGIN SYS.DBMS_RULE_ADM.GRANT_SYSTEM_PRIVILEGE( PRIVILEGE => SYS.DBMS_RULE_ADM.ALTER_ANY_EVALUATION_CONTEXT, GRANTEE => 'L2ADMIN', GRANT_OPTION => TRUE); END; / BEGIN SYS.DBMS_AQADM.GRANT_SYSTEM_PRIVILEGE ( PRIVILEGE => 'ENQUEUE_ANY', GRANTEE => 'L2ADMIN', ADMIN_OPTION => TRUE); END; / GRANT DROP ANY DIMENSION TO L2ADMIN WITH ADMIN OPTION; GRANT QUERY REWRITE TO L2ADMIN WITH ADMIN OPTION; GRANT UNDER ANY VIEW TO L2ADMIN WITH ADMIN OPTION; GRANT UNDER ANY TYPE TO L2ADMIN WITH ADMIN OPTION; GRANT DROP ANY TYPE TO L2ADMIN WITH ADMIN OPTION; GRANT CREATE ANY TYPE TO L2ADMIN WITH ADMIN OPTION; GRANT CREATE TYPE TO L2ADMIN WITH ADMIN OPTION; GRANT CREATE ANY MATERIALIZED VIEW TO L2ADMIN WITH ADMIN OPTION; GRANT FORCE ANY TRANSACTION TO L2ADMIN WITH ADMIN OPTION; GRANT CREATE SEQUENCE TO L2ADMIN WITH ADMIN OPTION; GRANT CREATE VIEW TO L2ADMIN WITH ADMIN OPTION; GRANT DELETE ANY TABLE TO L2ADMIN WITH ADMIN OPTION; GRANT ALTER ROLLBACK SEGMENT TO L2ADMIN WITH ADMIN OPTION; GRANT ALTER USER TO L2ADMIN WITH ADMIN OPTION; GRANT ALTER SYSTEM TO L2ADMIN WITH ADMIN OPTION; GRANT CREATE CUBE BUILD PROCESS TO L2ADMIN WITH ADMIN OPTION; GRANT DROP ANY MEASURE FOLDER TO L2ADMIN WITH ADMIN OPTION; GRANT CREATE MEASURE FOLDER TO L2ADMIN WITH ADMIN OPTION; GRANT ALTER ANY CUBE TO L2ADMIN WITH ADMIN OPTION; GRANT CREATE ANY CUBE DIMENSION TO L2ADMIN WITH ADMIN OPTION; GRANT DROP ANY ASSEMBLY TO L2ADMIN WITH ADMIN OPTION; GRANT CREATE ANY EDITION TO L2ADMIN WITH ADMIN OPTION; GRANT CREATE EXTERNAL JOB TO L2ADMIN WITH ADMIN OPTION; BEGIN SYS.DBMS_RULE_ADM.GRANT_SYSTEM_PRIVILEGE( PRIVILEGE => SYS.DBMS_RULE_ADM.CREATE_RULE_OBJ, GRANTEE => 'L2ADMIN', GRANT_OPTION => TRUE); END; / GRANT GRANT ANY OBJECT PRIVILEGE TO L2ADMIN WITH ADMIN OPTION; BEGIN SYS.DBMS_RESOURCE_MANAGER_PRIVS.GRANT_SYSTEM_PRIVILEGE (GRANTEE_NAME => 'L2ADMIN', PRIVILEGE_NAME => 'ADMINISTER_RESOURCE_MANAGER', ADMIN_OPTION => TRUE); END; / GRANT DROP ANY INDEXTYPE TO L2ADMIN WITH ADMIN OPTION; GRANT DROP ANY OPERATOR TO L2ADMIN WITH ADMIN OPTION; GRANT CREATE OPERATOR TO L2ADMIN WITH ADMIN OPTION; GRANT ALTER ANY MATERIALIZED VIEW TO L2ADMIN WITH ADMIN OPTION; GRANT GRANT ANY PRIVILEGE TO L2ADMIN WITH ADMIN OPTION; GRANT ANALYZE ANY TO L2ADMIN WITH ADMIN OPTION; GRANT CREATE ANY PROCEDURE TO L2ADMIN WITH ADMIN OPTION; GRANT AUDIT ANY TO L2ADMIN WITH ADMIN OPTION; GRANT CREATE PUBLIC DATABASE LINK TO L2ADMIN WITH ADMIN OPTION; GRANT DROP ANY SYNONYM TO L2ADMIN WITH ADMIN OPTION; GRANT CREATE SYNONYM TO L2ADMIN WITH ADMIN OPTION; GRANT DROP ANY INDEX TO L2ADMIN WITH ADMIN OPTION; GRANT UPDATE ANY TABLE TO L2ADMIN WITH ADMIN OPTION; GRANT SELECT ANY TABLE TO L2ADMIN WITH ADMIN OPTION; GRANT LOCK ANY TABLE TO L2ADMIN WITH ADMIN OPTION; GRANT ALTER ANY TABLE TO L2ADMIN WITH ADMIN OPTION; GRANT CREATE TABLESPACE TO L2ADMIN WITH ADMIN OPTION; GRANT RESTRICTED SESSION TO L2ADMIN WITH ADMIN OPTION; GRANT DROP ANY CUBE TO L2ADMIN WITH ADMIN OPTION; GRANT SELECT ANY CUBE DIMENSION TO L2ADMIN WITH ADMIN OPTION; GRANT CREATE CUBE DIMENSION TO L2ADMIN WITH ADMIN OPTION; GRANT DROP ANY MINING MODEL TO L2ADMIN WITH ADMIN OPTION; GRANT ADMINISTER ANY SQL TUNING SET TO L2ADMIN WITH ADMIN OPTION; GRANT SELECT ANY TRANSACTION TO L2ADMIN WITH ADMIN OPTION; BEGIN SYS.DBMS_RULE_ADM.GRANT_SYSTEM_PRIVILEGE( PRIVILEGE => SYS.DBMS_RULE_ADM.CREATE_ANY_EVALUATION_CONTEXT, GRANTEE => 'L2ADMIN', GRANT_OPTION => TRUE); END; / GRANT DEBUG CONNECT SESSION TO L2ADMIN WITH ADMIN OPTION; GRANT UNDER ANY TABLE TO L2ADMIN WITH ADMIN OPTION; GRANT EXECUTE ANY INDEXTYPE TO L2ADMIN WITH ADMIN OPTION; GRANT ALTER ANY INDEXTYPE TO L2ADMIN WITH ADMIN OPTION; GRANT CREATE ANY INDEXTYPE TO L2ADMIN WITH ADMIN OPTION; GRANT CREATE LIBRARY TO L2ADMIN WITH ADMIN OPTION; GRANT ALTER ANY TYPE TO L2ADMIN WITH ADMIN OPTION; GRANT ALTER ANY TRIGGER TO L2ADMIN WITH ADMIN OPTION; GRANT CREATE ANY TRIGGER TO L2ADMIN WITH ADMIN OPTION; GRANT DROP ANY PROCEDURE TO L2ADMIN WITH ADMIN OPTION; GRANT CREATE PROCEDURE TO L2ADMIN WITH ADMIN OPTION; GRANT FORCE TRANSACTION TO L2ADMIN WITH ADMIN OPTION; GRANT DROP PUBLIC DATABASE LINK TO L2ADMIN WITH ADMIN OPTION; GRANT CREATE ANY CLUSTER TO L2ADMIN WITH ADMIN OPTION; GRANT CREATE CLUSTER TO L2ADMIN WITH ADMIN OPTION; GRANT CREATE ANY TABLE TO L2ADMIN WITH ADMIN OPTION; GRANT CREATE ROLLBACK SEGMENT TO L2ADMIN WITH ADMIN OPTION; GRANT CREATE USER TO L2ADMIN WITH ADMIN OPTION; GRANT UPDATE ANY CUBE DIMENSION TO L2ADMIN WITH ADMIN OPTION; GRANT UPDATE ANY CUBE BUILD PROCESS TO L2ADMIN WITH ADMIN OPTION; GRANT CREATE ANY CUBE BUILD PROCESS TO L2ADMIN WITH ADMIN OPTION; GRANT ALTER ANY MINING MODEL TO L2ADMIN WITH ADMIN OPTION; GRANT EXECUTE ASSEMBLY TO L2ADMIN WITH ADMIN OPTION; GRANT CREATE ANY JOB TO L2ADMIN WITH ADMIN OPTION; BEGIN SYS.DBMS_RULE_ADM.GRANT_SYSTEM_PRIVILEGE( PRIVILEGE => SYS.DBMS_RULE_ADM.EXECUTE_ANY_RULE, GRANTEE => 'L2ADMIN', GRANT_OPTION => TRUE); END; / GRANT EXPORT FULL DATABASE TO L2ADMIN WITH ADMIN OPTION; BEGIN SYS.DBMS_RULE_ADM.GRANT_SYSTEM_PRIVILEGE( PRIVILEGE => SYS.DBMS_RULE_ADM.CREATE_ANY_RULE_SET, GRANTEE => 'L2ADMIN', GRANT_OPTION => TRUE); END; / GRANT MERGE ANY VIEW TO L2ADMIN WITH ADMIN OPTION; GRANT CREATE ANY OUTLINE TO L2ADMIN WITH ADMIN OPTION; GRANT DROP ANY CONTEXT TO L2ADMIN WITH ADMIN OPTION; GRANT CREATE ANY CONTEXT TO L2ADMIN WITH ADMIN OPTION; GRANT CREATE ANY DIMENSION TO L2ADMIN WITH ADMIN OPTION; GRANT CREATE ANY OPERATOR TO L2ADMIN WITH ADMIN OPTION; GRANT DROP ANY LIBRARY TO L2ADMIN WITH ADMIN OPTION; GRANT EXECUTE ANY TYPE TO L2ADMIN WITH ADMIN OPTION; GRANT DROP ANY DIRECTORY TO L2ADMIN WITH ADMIN OPTION; GRANT DROP PROFILE TO L2ADMIN WITH ADMIN OPTION; GRANT ALTER ANY PROCEDURE TO L2ADMIN WITH ADMIN OPTION; GRANT CREATE ROLE TO L2ADMIN WITH ADMIN OPTION; GRANT DROP ANY SEQUENCE TO L2ADMIN WITH ADMIN OPTION; GRANT ALTER ANY SEQUENCE TO L2ADMIN WITH ADMIN OPTION; GRANT CREATE ANY SEQUENCE TO L2ADMIN WITH ADMIN OPTION; GRANT ALTER ANY CLUSTER TO L2ADMIN WITH ADMIN OPTION; GRANT DROP ANY TABLE TO L2ADMIN WITH ADMIN OPTION; GRANT DROP USER TO L2ADMIN WITH ADMIN OPTION; GRANT DROP TABLESPACE TO L2ADMIN WITH ADMIN OPTION; GRANT MANAGE TABLESPACE TO L2ADMIN WITH ADMIN OPTION; GRANT ALTER TABLESPACE TO L2ADMIN WITH ADMIN OPTION; GRANT CREATE CUBE TO L2ADMIN WITH ADMIN OPTION; GRANT DROP ANY CUBE DIMENSION TO L2ADMIN WITH ADMIN OPTION; GRANT CREATE ANY ASSEMBLY TO L2ADMIN WITH ADMIN OPTION; GRANT ALTER ANY EDITION TO L2ADMIN WITH ADMIN OPTION; GRANT DROP ANY EDITION TO L2ADMIN WITH ADMIN OPTION; GRANT MANAGE ANY FILE GROUP TO L2ADMIN WITH ADMIN OPTION; GRANT MANAGE FILE GROUP TO L2ADMIN WITH ADMIN OPTION; GRANT MANAGE SCHEDULER TO L2ADMIN WITH ADMIN OPTION; GRANT ADVISOR TO L2ADMIN WITH ADMIN OPTION; BEGIN SYS.DBMS_RULE_ADM.GRANT_SYSTEM_PRIVILEGE( PRIVILEGE => SYS.DBMS_RULE_ADM.DROP_ANY_RULE, GRANTEE => 'L2ADMIN', GRANT_OPTION => TRUE); END; / BEGIN SYS.DBMS_RULE_ADM.GRANT_SYSTEM_PRIVILEGE( PRIVILEGE => SYS.DBMS_RULE_ADM.EXECUTE_ANY_RULE_SET, GRANTEE => 'L2ADMIN', GRANT_OPTION => TRUE); END; / GRANT CREATE DIMENSION TO L2ADMIN WITH ADMIN OPTION; GRANT GLOBAL QUERY REWRITE TO L2ADMIN WITH ADMIN OPTION; GRANT CREATE INDEXTYPE TO L2ADMIN WITH ADMIN OPTION; GRANT ALTER DATABASE TO L2ADMIN WITH ADMIN OPTION; GRANT ALTER ANY ROLE TO L2ADMIN WITH ADMIN OPTION; GRANT GRANT ANY ROLE TO L2ADMIN WITH ADMIN OPTION; GRANT DROP ANY ROLE TO L2ADMIN WITH ADMIN OPTION; GRANT SELECT ANY SEQUENCE TO L2ADMIN WITH ADMIN OPTION; GRANT ALTER ANY INDEX TO L2ADMIN WITH ADMIN OPTION; GRANT ADMINISTER SQL MANAGEMENT OBJECT TO L2ADMIN WITH ADMIN OPTION; GRANT INSERT ANY MEASURE FOLDER TO L2ADMIN WITH ADMIN OPTION; GRANT DELETE ANY CUBE DIMENSION TO L2ADMIN WITH ADMIN OPTION; GRANT EXEMPT IDENTITY POLICY TO L2ADMIN WITH ADMIN OPTION; GRANT ALTER ANY SQL PROFILE TO L2ADMIN WITH ADMIN OPTION; GRANT CREATE JOB TO L2ADMIN WITH ADMIN OPTION; GRANT ANALYZE ANY DICTIONARY TO L2ADMIN WITH ADMIN OPTION; BEGIN SYS.DBMS_RULE_ADM.GRANT_SYSTEM_PRIVILEGE( PRIVILEGE => SYS.DBMS_RULE_ADM.EXECUTE_ANY_EVALUATION_CONTEXT, GRANTEE => 'L2ADMIN', GRANT_OPTION => TRUE); END; / GRANT SELECT ANY DICTIONARY TO L2ADMIN WITH ADMIN OPTION; GRANT RESUMABLE TO L2ADMIN WITH ADMIN OPTION; GRANT EXEMPT ACCESS POLICY TO L2ADMIN WITH ADMIN OPTION; GRANT ON COMMIT REFRESH TO L2ADMIN WITH ADMIN OPTION; GRANT ALTER ANY DIMENSION TO L2ADMIN WITH ADMIN OPTION; GRANT CREATE ANY DIRECTORY TO L2ADMIN WITH ADMIN OPTION; GRANT DROP ANY MATERIALIZED VIEW TO L2ADMIN WITH ADMIN OPTION; GRANT ALTER RESOURCE COST TO L2ADMIN WITH ADMIN OPTION; GRANT CREATE PROFILE TO L2ADMIN WITH ADMIN OPTION; GRANT CREATE TRIGGER TO L2ADMIN WITH ADMIN OPTION; GRANT CREATE PUBLIC SYNONYM TO L2ADMIN WITH ADMIN OPTION; GRANT CREATE ANY SYNONYM TO L2ADMIN WITH ADMIN OPTION; GRANT CREATE ANY INDEX TO L2ADMIN WITH ADMIN OPTION; GRANT DROP ROLLBACK SEGMENT TO L2ADMIN WITH ADMIN OPTION; GRANT CREATE SESSION TO L2ADMIN WITH ADMIN OPTION; GRANT AUDIT SYSTEM TO L2ADMIN WITH ADMIN OPTION; GRANT ALTER PUBLIC DATABASE LINK TO L2ADMIN WITH ADMIN OPTION; GRANT DELETE ANY MEASURE FOLDER TO L2ADMIN WITH ADMIN OPTION; GRANT CREATE ANY MEASURE FOLDER TO L2ADMIN WITH ADMIN OPTION; GRANT UPDATE ANY CUBE TO L2ADMIN WITH ADMIN OPTION; GRANT SELECT ANY CUBE TO L2ADMIN WITH ADMIN OPTION; GRANT ALTER ANY CUBE DIMENSION TO L2ADMIN WITH ADMIN OPTION; GRANT SELECT ANY MINING MODEL TO L2ADMIN WITH ADMIN OPTION; GRANT CREATE ANY MINING MODEL TO L2ADMIN WITH ADMIN OPTION; GRANT EXECUTE ANY ASSEMBLY TO L2ADMIN WITH ADMIN OPTION; GRANT ALTER ANY ASSEMBLY TO L2ADMIN WITH ADMIN OPTION; GRANT CHANGE NOTIFICATION TO L2ADMIN WITH ADMIN OPTION; GRANT READ ANY FILE GROUP TO L2ADMIN WITH ADMIN OPTION; GRANT CREATE ANY SQL PROFILE TO L2ADMIN WITH ADMIN OPTION; GRANT DROP ANY SQL PROFILE TO L2ADMIN WITH ADMIN OPTION; GRANT EXECUTE ANY PROGRAM TO L2ADMIN WITH ADMIN OPTION; BEGIN SYS.DBMS_RULE_ADM.GRANT_SYSTEM_PRIVILEGE( PRIVILEGE => SYS.DBMS_RULE_ADM.DROP_ANY_RULE_SET, GRANTEE => 'L2ADMIN', GRANT_OPTION => TRUE); END; / BEGIN SYS.DBMS_RULE_ADM.GRANT_SYSTEM_PRIVILEGE( PRIVILEGE => SYS.DBMS_RULE_ADM.CREATE_EVALUATION_CONTEXT_OBJ, GRANTEE => 'L2ADMIN', GRANT_OPTION => TRUE); END; / GRANT DEBUG ANY PROCEDURE TO L2ADMIN WITH ADMIN OPTION; GRANT ADMINISTER DATABASE TRIGGER TO L2ADMIN WITH ADMIN OPTION; GRANT DROP ANY OUTLINE TO L2ADMIN WITH ADMIN OPTION; GRANT ALTER ANY OUTLINE TO L2ADMIN WITH ADMIN OPTION; BEGIN SYS.DBMS_AQADM.GRANT_SYSTEM_PRIVILEGE ( PRIVILEGE => 'MANAGE_ANY', GRANTEE => 'L2ADMIN', ADMIN_OPTION => TRUE); END; / GRANT ALTER ANY OPERATOR TO L2ADMIN WITH ADMIN OPTION; GRANT ALTER ANY LIBRARY TO L2ADMIN WITH ADMIN OPTION; GRANT CREATE MATERIALIZED VIEW TO L2ADMIN WITH ADMIN OPTION; GRANT DROP ANY TRIGGER TO L2ADMIN WITH ADMIN OPTION; GRANT EXECUTE ANY PROCEDURE TO L2ADMIN WITH ADMIN OPTION; GRANT CREATE DATABASE LINK TO L2ADMIN WITH ADMIN OPTION; GRANT DROP ANY VIEW TO L2ADMIN WITH ADMIN OPTION; GRANT CREATE ANY VIEW TO L2ADMIN WITH ADMIN OPTION; GRANT DROP ANY CLUSTER TO L2ADMIN WITH ADMIN OPTION; GRANT BACKUP ANY TABLE TO L2ADMIN WITH ADMIN OPTION; GRANT BECOME USER TO L2ADMIN WITH ADMIN OPTION; GRANT ALTER SESSION TO L2ADMIN WITH ADMIN OPTION; -- 1 Tablespace Quota for L2ADMIN ALTER USER L2ADMIN QUOTA UNLIMITED ON USERS; DROP USER L2_MANAGER CASCADE; CREATE USER L2_MANAGER IDENTIFIED BY L2_MANAGER DEFAULT TABLESPACE &TABLESPACE TEMPORARY TABLESPACE TEMP PROFILE DEFAULT ACCOUNT UNLOCK; -- 1 Role for L2_MANAGER GRANT CONNECT TO L2_MANAGER; ALTER USER L2_MANAGER DEFAULT ROLE NONE; -- 2 System Privileges for L2_MANAGER GRANT CREATE SESSION TO L2_MANAGER; GRANT SELECT ANY TABLE TO L2_MANAGER; -- 1 Tablespace Quota for L2_MANAGER ALTER USER L2_MANAGER QUOTA UNLIMITED ON USERS; -- 17 Object Privileges for L2_MANAGER --GRANT SELECT ON MAIN.MON_PROCESS TO L2_MANAGER; GRANT SELECT ON SYS.DBA_JOBS TO L2_MANAGER; GRANT SELECT ON SYS.DBA_JOBS_RUNNING TO L2_MANAGER; GRANT SELECT ON SYS.DBA_OBJECTS TO L2_MANAGER; GRANT SELECT ON SYS.DBA_VIEWS TO L2_MANAGER; GRANT SELECT ON SYS.DBA_WAITERS TO L2_MANAGER; GRANT SELECT ON SYS.DBMS_ALERT_INFO TO L2_MANAGER; GRANT EXECUTE ON SYS.DBMS_SYSTEM TO L2_MANAGER; GRANT SELECT ON SYS.GV_$INSTANCE TO L2_MANAGER; GRANT SELECT ON SYS.GV_$LOCK TO L2_MANAGER; GRANT SELECT ON SYS.GV_$LOCKED_OBJECT TO L2_MANAGER; GRANT SELECT ON SYS.GV_$SESSION TO L2_MANAGER; GRANT SELECT ON SYS.JOB$ TO L2_MANAGER; GRANT SELECT ON SYS.V_$DATABASE TO L2_MANAGER; GRANT SELECT ON SYS.V_$MYSTAT TO L2_MANAGER; GRANT SELECT ON SYS.V_$PROCESS TO L2_MANAGER; GRANT SELECT ON SYS.V_$SESSION TO L2_MANAGER; DROP USER SIM_TRACK CASCADE; CREATE USER SIM_TRACK IDENTIFIED BY SIM_TRACK DEFAULT TABLESPACE &TABLESPACE TEMPORARY TABLESPACE TEMP PROFILE DEFAULT ACCOUNT UNLOCK; -- Roles for SIM_TRACK GRANT RESOURCE TO SIM_TRACK; GRANT CONNECT TO SIM_TRACK; ALTER USER SIM_TRACK DEFAULT ROLE ALL; GRANT UNLIMITED TABLESPACE TO SIM_TRACK; grant execute on sys.dbms_lock to SIM_TRACK; DROP USER HMIUSER CASCADE; CREATE USER HMIUSER IDENTIFIED BY HMIUSER DEFAULT TABLESPACE &TABLESPACE TEMPORARY TABLESPACE TEMP PROFILE DEFAULT ACCOUNT UNLOCK; -- 2 Roles for HMIUSER GRANT RESOURCE TO HMIUSER; GRANT CONNECT TO HMIUSER; ALTER USER HMIUSER DEFAULT ROLE ALL; -- 9 System Privileges for HMIUSER GRANT DELETE ANY TABLE TO HMIUSER WITH ADMIN OPTION; GRANT INSERT ANY TABLE TO HMIUSER WITH ADMIN OPTION; GRANT SELECT ANY TABLE TO HMIUSER WITH ADMIN OPTION; GRANT CREATE ANY SYNONYM TO HMIUSER; GRANT UPDATE ANY TABLE TO HMIUSER WITH ADMIN OPTION; GRANT EXECUTE ANY INDEXTYPE TO HMIUSER WITH ADMIN OPTION; GRANT UNLIMITED TABLESPACE TO HMIUSER; GRANT CREATE ANY JOB TO HMIUSER WITH ADMIN OPTION; GRANT EXECUTE ANY PROCEDURE TO HMIUSER WITH ADMIN OPTION; -- 517 Object Privileges for HMIUSER GRANT SELECT ON SYS.DBA_JOBS TO HMIUSER; GRANT SELECT ON SYS.DBA_JOBS_RUNNING TO HMIUSER; GRANT SELECT ON SYS.DBA_OBJECTS TO HMIUSER; GRANT SELECT ON SYS.DBA_VIEWS TO HMIUSER; GRANT SELECT ON SYS.DBA_WAITERS TO HMIUSER; GRANT EXECUTE ON SYS.DBMS_ALERT TO HMIUSER; GRANT SELECT ON SYS.DBMS_ALERT_INFO TO HMIUSER; GRANT EXECUTE, DEBUG ON SYS.DBMS_FLASHBACK TO HMIUSER; GRANT EXECUTE ON SYS.DBMS_JOB TO HMIUSER; GRANT EXECUTE ON SYS.DBMS_LOCK TO HMIUSER; GRANT EXECUTE ON SYS.DBMS_PIPE TO HMIUSER; GRANT EXECUTE ON SYS.DBMS_SYSTEM TO HMIUSER; GRANT SELECT ON SYS.GV_$INSTANCE TO HMIUSER; GRANT SELECT ON SYS.GV_$LOCK TO HMIUSER; GRANT SELECT ON SYS.GV_$LOCKED_OBJECT TO HMIUSER; GRANT SELECT ON SYS.GV_$SESSION TO HMIUSER; GRANT SELECT ON SYS.JOB$ TO HMIUSER; GRANT READ, WRITE ON DIRECTORY SYS.PS_EXCHANGE_DIR TO HMIUSER; GRANT SELECT ON SYS.V_$DATABASE TO HMIUSER; GRANT SELECT ON SYS.V_$MYSTAT TO HMIUSER; GRANT SELECT ON SYS.V_$PROCESS TO HMIUSER; GRANT SELECT ON SYS.V_$SESSION TO HMIUSER; DROP USER HISTORY CASCADE; CREATE USER HISTORY IDENTIFIED BY VALUES '6CF0FB07E58890DF' DEFAULT TABLESPACE MEDDATA TEMPORARY TABLESPACE TEMP PROFILE DEFAULT ACCOUNT UNLOCK; -- 2 Roles for HISTORY GRANT CONNECT TO HISTORY; GRANT RESOURCE TO HISTORY; ALTER USER HISTORY DEFAULT ROLE ALL; -- 1 System Privilege for HISTORY GRANT UNLIMITED TABLESPACE TO HISTORY; -- 1 Object Privilege for HISTORY GRANT EXECUTE, DEBUG ON MAIN.VARGS TO HISTORY; DROP USER MAINTENANCE CASCADE; CREATE USER MAINTENANCE IDENTIFIED BY VALUES '52AFA3A0B64F7001' DEFAULT TABLESPACE MEDDATA TEMPORARY TABLESPACE TEMP PROFILE DEFAULT ACCOUNT UNLOCK; -- 2 Roles for MAINTENANCE GRANT CONNECT TO MAINTENANCE; GRANT RESOURCE TO MAINTENANCE; ALTER USER MAINTENANCE DEFAULT ROLE ALL; -- 6 System Privileges for MAINTENANCE GRANT ADMINISTER DATABASE TRIGGER TO MAINTENANCE; GRANT ALTER SYSTEM TO MAINTENANCE; GRANT CREATE ANY SYNONYM TO MAINTENANCE; GRANT CREATE PROCEDURE TO MAINTENANCE; GRANT EXECUTE ANY PROCEDURE TO MAINTENANCE; GRANT UNLIMITED TABLESPACE TO MAINTENANCE; -- 18 Object Privileges for MAINTENANCE GRANT EXECUTE, DEBUG ON MAIN.VARGS TO MAINTENANCE; GRANT SELECT ON SYS.DBA_JOBS TO MAINTENANCE; GRANT SELECT ON SYS.DBA_JOBS_RUNNING TO MAINTENANCE; GRANT SELECT ON SYS.DBA_OBJECTS TO MAINTENANCE; GRANT SELECT ON SYS.DBA_VIEWS TO MAINTENANCE; GRANT SELECT ON SYS.DBA_WAITERS TO MAINTENANCE; GRANT SELECT ON SYS.DBMS_ALERT_INFO TO MAINTENANCE; GRANT EXECUTE ON SYS.DBMS_SYSTEM TO MAINTENANCE; GRANT SELECT ON SYS.GV_$INSTANCE TO MAINTENANCE; GRANT SELECT ON SYS.GV_$LOCK TO MAINTENANCE; GRANT SELECT ON SYS.GV_$LOCKED_OBJECT TO MAINTENANCE; GRANT SELECT ON SYS.GV_$SESSION TO MAINTENANCE; GRANT SELECT ON SYS.JOB$ TO MAINTENANCE; GRANT SELECT ON SYS.V_$DATABASE TO MAINTENANCE; GRANT SELECT ON SYS.V_$MYSTAT TO MAINTENANCE; GRANT SELECT ON SYS.V_$PROCESS TO MAINTENANCE; GRANT SELECT ON SYS.V_$SESSION TO MAINTENANCE; GRANT EXECUTE, DEBUG ON MAIN.VARGS TO MAINTENANCE; DROP USER RSH CASCADE; CREATE USER RSH IDENTIFIED BY VALUES '54871CF7333F3D67' DEFAULT TABLESPACE MEDDATA TEMPORARY TABLESPACE TEMP PROFILE DEFAULT ACCOUNT UNLOCK; -- 2 Roles for RSH GRANT CONNECT TO RSH; GRANT RESOURCE TO RSH; ALTER USER RSH DEFAULT ROLE ALL; -- 6 System Privileges for RSH GRANT ADMINISTER DATABASE TRIGGER TO RSH; GRANT ALTER SYSTEM TO RSH; GRANT CREATE ANY SYNONYM TO RSH; GRANT CREATE PROCEDURE TO RSH; GRANT EXECUTE ANY PROCEDURE TO RSH; GRANT UNLIMITED TABLESPACE TO RSH; -- 24 Object Privileges for RSH GRANT ALTER, DELETE, INDEX, INSERT, REFERENCES, SELECT, UPDATE, ON COMMIT REFRESH, QUERY REWRITE, DEBUG, FLASHBACK ON MAIN.GACS_COM_STATUS TO RSH; GRANT ALTER, DELETE, INDEX, INSERT, REFERENCES, SELECT, UPDATE, ON COMMIT REFRESH, QUERY REWRITE, DEBUG, FLASHBACK ON MAIN.GACS_LOGGING TO RSH; GRANT EXECUTE ON MAIN.MON TO RSH; GRANT ALTER, DELETE, INDEX, INSERT, REFERENCES, SELECT, UPDATE, ON COMMIT REFRESH, QUERY REWRITE, DEBUG, FLASHBACK ON MAIN.PTR_MESSAGE_DEFINITION TO RSH; GRANT ALTER, SELECT ON MAIN.PTR_MESS_NO TO RSH; GRANT ALTER, DELETE, INDEX, INSERT, REFERENCES, SELECT, UPDATE, ON COMMIT REFRESH, QUERY REWRITE, DEBUG, FLASHBACK ON MAIN.PTR_RECEIVED_MESSAGE TO RSH; GRANT ALTER, DELETE, INDEX, INSERT, REFERENCES, SELECT, UPDATE, ON COMMIT REFRESH, QUERY REWRITE, DEBUG, FLASHBACK ON MAIN.PTR_SENT_MESSAGE TO RSH; GRANT EXECUTE, DEBUG ON MAIN.VARGS TO RSH; GRANT SELECT ON SYS.DBA_JOBS TO RSH; GRANT SELECT ON SYS.DBA_JOBS_RUNNING TO RSH; GRANT SELECT ON SYS.DBA_OBJECTS TO RSH; GRANT SELECT ON SYS.DBA_VIEWS TO RSH; GRANT SELECT ON SYS.DBA_WAITERS TO RSH; GRANT SELECT ON SYS.DBMS_ALERT_INFO TO RSH; GRANT EXECUTE ON SYS.DBMS_SYSTEM TO RSH; GRANT SELECT ON SYS.GV_$INSTANCE TO RSH; GRANT SELECT ON SYS.GV_$LOCK TO RSH; GRANT SELECT ON SYS.GV_$LOCKED_OBJECT TO RSH; GRANT SELECT ON SYS.GV_$SESSION TO RSH; GRANT SELECT ON SYS.JOB$ TO RSH; GRANT SELECT ON SYS.V_$DATABASE TO RSH; GRANT SELECT ON SYS.V_$MYSTAT TO RSH; GRANT SELECT ON SYS.V_$PROCESS TO RSH; GRANT SELECT ON SYS.V_$SESSION TO RSH; DROP USER PRODUCTION CASCADE; CREATE USER PRODUCTION IDENTIFIED BY VALUES '77019D0FE6E69024' DEFAULT TABLESPACE MEDDATA TEMPORARY TABLESPACE TEMP PROFILE DEFAULT ACCOUNT UNLOCK; -- 2 Roles for PRODUCTION GRANT CONNECT TO PRODUCTION; GRANT RESOURCE TO PRODUCTION; ALTER USER PRODUCTION DEFAULT ROLE ALL; -- 6 System Privileges for PRODUCTION GRANT ADMINISTER DATABASE TRIGGER TO PRODUCTION; GRANT ALTER SYSTEM TO PRODUCTION; GRANT CREATE ANY SYNONYM TO PRODUCTION; GRANT CREATE PROCEDURE TO PRODUCTION; GRANT EXECUTE ANY PROCEDURE TO PRODUCTION; GRANT UNLIMITED TABLESPACE TO PRODUCTION; GRANT EXECUTE, DEBUG ON MAIN.VARGS TO PRODUCTION; GRANT SELECT ON SYS.DBA_JOBS TO PRODUCTION; GRANT SELECT ON SYS.DBA_JOBS_RUNNING TO PRODUCTION; GRANT SELECT ON SYS.DBA_OBJECTS TO PRODUCTION; GRANT SELECT ON SYS.DBA_VIEWS TO PRODUCTION; GRANT SELECT ON SYS.DBA_WAITERS TO PRODUCTION; GRANT SELECT ON SYS.DBMS_ALERT_INFO TO PRODUCTION; GRANT EXECUTE ON SYS.DBMS_SYSTEM TO PRODUCTION; GRANT SELECT ON SYS.GV_$INSTANCE TO PRODUCTION; GRANT SELECT ON SYS.GV_$LOCK TO PRODUCTION; GRANT SELECT ON SYS.GV_$LOCKED_OBJECT TO PRODUCTION; GRANT SELECT ON SYS.GV_$SESSION TO PRODUCTION; GRANT SELECT ON SYS.JOB$ TO PRODUCTION; GRANT SELECT ON SYS.V_$DATABASE TO PRODUCTION; GRANT SELECT ON SYS.V_$MYSTAT TO PRODUCTION; GRANT SELECT ON SYS.V_$PROCESS TO PRODUCTION; GRANT SELECT ON SYS.V_$SESSION TO PRODUCTION;
true
7c6e0c81181f231b93cdbf69c2560b64c205866f
SQL
zvant/LeetCodeSolutions
/0175.combine_two_tables_E.sql
UTF-8
237
3.046875
3
[]
no_license
# https://leetcode.com/problems/combine-two-tables/ # 2022/08 # 743 ms # Write your MySQL query statement below select lastName, firstName, Address.city, Address.state from Person left join Address on Person.personID = Address.personID
true
df256032fa3930633c516a49bd9f6c368c8e9fa4
SQL
semaberkiten/SOC-App
/web-app/SQL/setup.sql
UTF-8
1,853
3.25
3
[]
no_license
/* SQL to set up the Databse */ USE socioapp; CREATE TABLE researchers ( id INT UNSIGNED NOT NULL AUTO_INCREMENT PRIMARY KEY, email VARCHAR(320) NOT NULL UNIQUE, pass CHAR(41) NOT NULL, first_name VARCHAR(255), last_name VARCHAR(255) /* other things? */); CREATE TABLE subjects ( id INT UNSIGNED NOT NULL AUTO_INCREMENT PRIMARY KEY, phone_num VARCHAR(13) NOT NULL, first_name VARCHAR(255) NOT NULL, last_name VARCHAR(255) NOT NULL /* other things? */); CREATE TABLE contacts ( id INT UNSIGNED NOT NULL AUTO_INCREMENT PRIMARY KEY, subject_id INT UNSIGNED NOT NULL); CREATE TABLE surveys ( id INT UNSIGNED NOT NULL AUTO_INCREMENT PRIMARY KEY, name VARCHAR(255)); CREATE TABLE questions ( id INT UNSIGNED NOT NULL AUTO_INCREMENT PRIMARY KEY, survey_id INT UNSIGNED NOT NULL, ques_type ENUM('choice', 'free_resp', 'auto'/* insert other question types here */) NOT NULL, text TINYTEXT, question_id INT UNSIGNED); CREATE TABLE options ( id INT UNSIGNED NOT NULL AUTO_INCREMENT PRIMARY KEY, text VARCHAR(255), question_id INT UNSIGNED NOT NULL, next_ques INT UNSIGNED); CREATE TABLE location_actions ( id INT UNSIGNED NOT NULL AUTO_INCREMENT PRIMARY KEY, subject_id INT UNSIGNED NOT NULL, created DATETIME NOT NULL, longitude DOUBLE NOT NULL, lattitude DOUBLE NOT NULL); CREATE TABLE call_actions ( id INT UNSIGNED NOT NULL AUTO_INCREMENT PRIMARY KEY, subject_id INT UNSIGNED NOT NULL, contact_id INT UNSIGNED NOT NULL, created DATETIME NOT NULL, act_type ENUM('call', 'text') NOT NULL DEFAULT 'call', duration SMALLINT UNSIGNED /* other things? */); CREATE TABLE status_changes ( id INT UNSIGNED NOT NULL AUTO_INCREMENT PRIMARY KEY, subject_id INT UNSIGNED NOT NULL, created DATETIME NOT NULL, status ENUM('enabled', 'disbled') NOT NULL, feature ENUM('gps', 'call log', 'text log', 'app') NOT NULL);
true
77a6359373bc03c477fc9480ff01b6421a35e14f
SQL
iozamudioa/passguard
/scripts/sp/updatePersonData.sql
UTF-8
1,137
3.609375
4
[]
no_license
CREATE DEFINER=`admin`@`%` PROCEDURE `updatePersonData`(IN _name VARCHAR(45), IN _lastname VARCHAR(45), IN _email VARCHAR(45), IN _birth_date DATE, IN _user_id INT) BEGIN DECLARE _persons_data_id INT DEFAULT NULL; SELECT persons_data_id INTO _persons_data_id FROM persons_data WHERE user_id = _user_id; IF _persons_data_id IS NULL THEN INSERT INTO persons_data (name, lastname, email, birth_date,user_id) VALUES (_name, _lastname, _email, _birth_date,_user_id); SET _persons_data_id = last_insert_id(); ELSE UPDATE persons_data SET name = IFNULL(_name,name) ,lastname = IFNULL(_lastname, lastname) ,email = IFNULL(_email, email) ,birth_date = IFNULL(_birth_date, birth_date) ,updated_at = NOW() WHERE persons_data_id = _persons_data_id; END IF; SELECT _persons_data_id idPersonData, name, lastname, email, birth_date birthDate, p.created_at createdAt, updated_at updatedAt, u.user_id idUser , username FROM persons_data p INNER JOIN users u ON u.user_id = p.user_id WHERE persons_data_id = _persons_data_id; END
true
835b0fd34105f107730de70bd94fd76b0ff8e5d3
SQL
BognarPal/Jedlik_FeladatMegoldasok
/Fullstack/E-Munkalap/E-Munkalap.Data/SQL/scripts/work/works_select.sql
UTF-8
914
3.109375
3
[]
no_license
Select munkalap_works.id, munkalap_works.RequesterName, munkalap_works.Description, munkalap_works.RequestDate, munkalap_works.ProfessionId, munkalap_works.EmployeeId, munkalap_works.DeadLine, munkalap_works.AssignDate, munkalap_works.AssignDetails, munkalap_works.AssignerName, munkalap_works.FinishDate, munkalap_works.FinishComment, munkalap_works.CheckDate, munkalap_works.CheckerUser, munkalap_works.CheckComment, munkalap_professions.Name as ProfessionName, munkalap_employees.Name as EmployeeName from munkalap_works left join munkalap_professions on munkalap_works.ProfessionId = munkalap_professions.Id left join munkalap_employees on munkalap_works.EmployeeId = munkalap_employees.Id --#if @id where munkalap_works.id = @id --#endif order by munkalap_works.id desc
true
f3b422e425c3ad7776b91a0209a1fecd9ddb1c55
SQL
gituserDoesNotExist/oracle-playground
/extracted-ddls/PLAYGROUND/package_bodies/list_utils.sql
UTF-8
2,105
3.03125
3
[]
no_license
CREATE OR REPLACE PACKAGE BODY "PLAYGROUND"."LIST_UTILS" AS --############################################################### FUNCTION COPY_ARRAY(R_INPUT_ARRAY IN INTEGER_ARRAY) RETURN INTEGER_ARRAY IS COPY INTEGER_ARRAY := INTEGER_ARRAY(); BEGIN FOR IDX IN 1 .. R_INPUT_ARRAY.count LOOP COPY.extend; COPY(IDX) := R_INPUT_ARRAY(IDX); END LOOP; RETURN COPY; END; --################################################################ PROCEDURE INITIALIZE_LIST(INIT_LIST IN OUT NOCOPY INTEGER_ARRAY, INITSIZE IN NUMBER) IS BEGIN FOR I IN 1 .. INITSIZE LOOP INIT_LIST.extend(); END LOOP; END INITIALIZE_LIST; --################################################################### FUNCTION CREATE_INTEGER_ARRAY_FROM_TO(P_N_START IN NUMBER, P_N_END IN NUMBER) RETURN INTEGER_ARRAY IS IDX_ARRAY PLAYGROUND.INTEGER_ARRAY := PLAYGROUND.INTEGER_ARRAY(); BEGIN FOR IDX IN P_N_START .. P_N_END LOOP IDX_ARRAY.extend; IDX_ARRAY(IDX) := IDX; END LOOP; RETURN IDX_ARRAY; END CREATE_INTEGER_ARRAY_FROM_TO; --################################################################ FUNCTION CREATE_EMPTY_INTEGER_MATRIX(NUMBER_OF_ROWS NUMBER, NUMBER_OF_COLUMNS NUMBER) RETURN PLAYGROUND.INTEGER_MATRIX AS R_CURRENT_ROW PLAYGROUND.INTEGER_ARRAY; MATRIX PLAYGROUND.INTEGER_MATRIX := PLAYGROUND.INTEGER_MATRIX(); BEGIN FOR ROW_IDX IN 1 .. NUMBER_OF_ROWS LOOP R_CURRENT_ROW := PLAYGROUND.INTEGER_ARRAY(); FOR COL_IDX IN 1 .. NUMBER_OF_COLUMNS LOOP R_CURRENT_ROW.extend; R_CURRENT_ROW(COL_IDX) := 0; END LOOP; MATRIX.extend; MATRIX(ROW_IDX) := R_CURRENT_ROW; END LOOP; RETURN MATRIX; END CREATE_EMPTY_INTEGER_MATRIX; END LIST_UTILS; /
true
c238aa91b5bd2283ff22d2ef1cebff926e77521a
SQL
sagademo/Database
/ITI/ITI/mst/Tables/Transaction_Master_TypeOfpurchase.sql
UTF-8
518
3.21875
3
[]
no_license
CREATE TABLE [mst].[Transaction_Master_TypeOfpurchase] ( [TransactionId] INT IDENTITY (1, 1) NOT NULL, [PurchaseId] TINYINT NULL, [TypeOfpurchase] NVARCHAR (100) NOT NULL, [CreatedOn] DATETIME NULL, [CreatedBy] INT NULL, [UpdatedOn] DATETIME NULL, [UpdatedBy] INT NULL, PRIMARY KEY CLUSTERED ([TransactionId] ASC), FOREIGN KEY ([PurchaseId]) REFERENCES [mst].[Master_Typeofpurchase] ([PurchaseID]) );
true
1f2d5c5f520966630f59ff4651ad27f96b9c2a35
SQL
PabloExperimental/CrowdMine
/core/database/my_crowdmine_.sql
UTF-8
14,483
3.09375
3
[ "MIT" ]
permissive
-- phpMyAdmin SQL Dump -- version 4.5.1 -- http://www.phpmyadmin.net -- -- Host: 127.0.0.1 -- Creato il: Gen 14, 2017 alle 15:08 -- Versione del server: 10.1.19-MariaDB -- Versione PHP: 7.0.13 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: `my_crowdmine` -- -- -------------------------------------------------------- -- -- Struttura della tabella `annuncio` -- CREATE TABLE `annuncio` ( `id` bigint(20) NOT NULL, `id_utente` bigint(20) NOT NULL, `data` datetime NOT NULL, `titolo` varchar(255) NOT NULL, `luogo` varchar(255) NOT NULL, `stato` enum('revisione','attivo','segnalato','disattivato','ricorso','eliminato','amministratore','revisione_modifica') NOT NULL, `retribuzione` int(11) DEFAULT NULL, `tipo` enum('domanda','offerta') NOT NULL, `descrizione` text NOT NULL ) ENGINE=InnoDB DEFAULT CHARSET=latin1; -- -------------------------------------------------------- -- -- Struttura della tabella `bloccato` -- CREATE TABLE `bloccato` ( `id_utente` bigint(20) NOT NULL, `id_utente_bloccato` bigint(20) NOT NULL ) ENGINE=InnoDB DEFAULT CHARSET=latin1; -- -------------------------------------------------------- -- -- Struttura della tabella `candidatura` -- CREATE TABLE `candidatura` ( `id` int(11) NOT NULL, `id_utente` bigint(20) NOT NULL, `id_annuncio` bigint(20) NOT NULL, `corpo` text NOT NULL, `data_risposta` datetime DEFAULT NULL, `data_inviata` datetime DEFAULT NULL, `richiesta_inviata` enum('inviata','non_inviata','non_valutata') NOT NULL, `richiesta_accettata` enum('non_valutato','accettato','rifiutato') NOT NULL ) ENGINE=InnoDB DEFAULT CHARSET=latin1; -- -------------------------------------------------------- -- -- Struttura della tabella `commento` -- CREATE TABLE `commento` ( `id` bigint(20) NOT NULL, `id_annuncio` bigint(20) NOT NULL, `id_utente` bigint(20) NOT NULL, `corpo` text NOT NULL, `data` datetime NOT NULL, `stato` enum('attivato','segnalato','eliminato','amministratore') NOT NULL ) ENGINE=InnoDB DEFAULT CHARSET=latin1; -- -------------------------------------------------------- -- -- Struttura della tabella `competente` -- CREATE TABLE `competente` ( `id_utente` bigint(20) NOT NULL, `id_microcategoria` bigint(20) NOT NULL ) ENGINE=InnoDB DEFAULT CHARSET=latin1; -- -------------------------------------------------------- -- -- Struttura della tabella `dispatcher_notifica` -- CREATE TABLE `dispatcher_notifica` ( `id_utente` bigint(11) NOT NULL, `id_notifica` bigint(20) NOT NULL ) ENGINE=InnoDB DEFAULT CHARSET=latin1; -- -------------------------------------------------------- -- -- Struttura della tabella `feedback` -- CREATE TABLE `feedback` ( `id` bigint(20) NOT NULL, `id_utente` bigint(20) NOT NULL, `id_annuncio` bigint(20) NOT NULL, `id_valutato` bigint(20) NOT NULL, `valutazione` float NOT NULL, `corpo` text, `data` datetime NOT NULL, `stato` enum('attivato','segnalato','eliminato','amministratore') NOT NULL, `titolo` varchar(255) NOT NULL ) ENGINE=InnoDB DEFAULT CHARSET=latin1; -- -------------------------------------------------------- -- -- Struttura della tabella `interesse` -- CREATE TABLE `interesse` ( `id_utente` bigint(20) NOT NULL, `id_microcategoria` bigint(20) NOT NULL ) ENGINE=InnoDB DEFAULT CHARSET=latin1; -- -------------------------------------------------------- -- -- Struttura della tabella `macrocategoria` -- CREATE TABLE `macrocategoria` ( `id` bigint(20) NOT NULL, `nome` varchar(255) NOT NULL ) ENGINE=InnoDB DEFAULT CHARSET=latin1; -- -------------------------------------------------------- -- -- Struttura della tabella `messaggio` -- CREATE TABLE `messaggio` ( `id` bigint(20) NOT NULL, `corpo` text NOT NULL, `data` datetime NOT NULL, `letto` tinyint(1) NOT NULL, `id_utente_mittente` bigint(20) NOT NULL, `id_utente_destinatario` bigint(20) NOT NULL, `stato` enum('attivato','segnalato','eliminato','amministratore') NOT NULL ) ENGINE=InnoDB DEFAULT CHARSET=latin1; -- -------------------------------------------------------- -- -- Struttura della tabella `microcategoria` -- CREATE TABLE `microcategoria` ( `id` bigint(20) NOT NULL, `nome` varchar(255) NOT NULL, `id_macrocategoria` bigint(20) NOT NULL ) ENGINE=InnoDB DEFAULT CHARSET=latin1; -- -------------------------------------------------------- -- -- Struttura della tabella `notifica` -- CREATE TABLE `notifica` ( `id` bigint(20) NOT NULL, `date` date NOT NULL, `tipo` enum('decisione','risoluzione','inserimento','segnalazione') NOT NULL, `letto` tinyint(1) NOT NULL, `info` text NOT NULL ) ENGINE=InnoDB DEFAULT CHARSET=latin1; -- -------------------------------------------------------- -- -- Struttura della tabella `preferito` -- CREATE TABLE `preferito` ( `id_utente` bigint(20) NOT NULL, `id_annuncio` bigint(20) NOT NULL, `data_aggiunta` datetime NOT NULL ) ENGINE=InnoDB DEFAULT CHARSET=latin1; -- -------------------------------------------------------- -- -- Struttura della tabella `riferito` -- CREATE TABLE `riferito` ( `id_annuncio` bigint(20) NOT NULL, `id_microcategoria` bigint(20) NOT NULL ) ENGINE=InnoDB DEFAULT CHARSET=latin1; -- -------------------------------------------------------- -- -- Struttura della tabella `utente` -- CREATE TABLE `utente` ( `id` bigint(20) NOT NULL, `nome` varchar(255) NOT NULL, `cognome` varchar(255) NOT NULL, `descrizione` varchar(255) DEFAULT NULL, `telefono` varchar(15) DEFAULT NULL, `data_nascita` date NOT NULL, `citta` varchar(255) NOT NULL, `email` varchar(255) NOT NULL, `password` varchar(255) NOT NULL, `ruolo` enum('utente','moderatore','amministratore') NOT NULL, `stato` enum('revisione','attivo','segnalato','disattivato','ricorso','bannato','amministratore','revisione_modifica') NOT NULL, `immagine_profilo` varchar(255) NOT NULL, `partita_iva` varchar(255) DEFAULT NULL ) ENGINE=InnoDB DEFAULT CHARSET=latin1; -- -- Indici per le tabelle scaricate -- -- -- Indici per le tabelle `annuncio` -- ALTER TABLE `annuncio` ADD PRIMARY KEY (`id`,`id_utente`), ADD KEY `id_utente` (`id_utente`); -- -- Indici per le tabelle `bloccato` -- ALTER TABLE `bloccato` ADD PRIMARY KEY (`id_utente`,`id_utente_bloccato`), ADD KEY `id_utente_bloccato` (`id_utente_bloccato`); -- -- Indici per le tabelle `candidatura` -- ALTER TABLE `candidatura` ADD PRIMARY KEY (`id`,`id_utente`,`id_annuncio`), ADD KEY `id_utente` (`id_utente`), ADD KEY `id_annuncio` (`id_annuncio`); -- -- Indici per le tabelle `commento` -- ALTER TABLE `commento` ADD PRIMARY KEY (`id`,`id_annuncio`,`id_utente`), ADD KEY `id_utente` (`id_utente`), ADD KEY `commento_ibfk_1` (`id_annuncio`); -- -- Indici per le tabelle `competente` -- ALTER TABLE `competente` ADD PRIMARY KEY (`id_utente`,`id_microcategoria`), ADD KEY `competente_ibfk_2` (`id_microcategoria`); -- -- Indici per le tabelle `dispatcher_notifica` -- ALTER TABLE `dispatcher_notifica` ADD PRIMARY KEY (`id_utente`,`id_notifica`), ADD KEY `dispatcher_notifica_ibfk_2` (`id_notifica`); -- -- Indici per le tabelle `feedback` -- ALTER TABLE `feedback` ADD PRIMARY KEY (`id`,`id_utente`,`id_annuncio`,`id_valutato`), ADD KEY `id_utente` (`id_utente`), ADD KEY `id_annuncio` (`id_annuncio`), ADD KEY `feedback_ibfk_3` (`id_valutato`); -- -- Indici per le tabelle `interesse` -- ALTER TABLE `interesse` ADD PRIMARY KEY (`id_utente`,`id_microcategoria`), ADD KEY `interesse_ibfk_2` (`id_microcategoria`); -- -- Indici per le tabelle `macrocategoria` -- ALTER TABLE `macrocategoria` ADD PRIMARY KEY (`id`), ADD UNIQUE KEY `nome` (`nome`); -- -- Indici per le tabelle `messaggio` -- ALTER TABLE `messaggio` ADD PRIMARY KEY (`id`,`id_utente_mittente`,`id_utente_destinatario`), ADD KEY `id_utente_mittente` (`id_utente_mittente`), ADD KEY `id_utente_destinatario` (`id_utente_destinatario`); -- -- Indici per le tabelle `microcategoria` -- ALTER TABLE `microcategoria` ADD PRIMARY KEY (`id`,`id_macrocategoria`), ADD UNIQUE KEY `nome` (`nome`), ADD KEY `microcategoria_ibfk_1` (`id_macrocategoria`); -- -- Indici per le tabelle `notifica` -- ALTER TABLE `notifica` ADD PRIMARY KEY (`id`); -- -- Indici per le tabelle `preferito` -- ALTER TABLE `preferito` ADD PRIMARY KEY (`id_utente`,`id_annuncio`), ADD KEY `preferito_ibfk_2` (`id_annuncio`); -- -- Indici per le tabelle `riferito` -- ALTER TABLE `riferito` ADD PRIMARY KEY (`id_annuncio`,`id_microcategoria`), ADD KEY `riferito_ibfk_2` (`id_microcategoria`); -- -- Indici per le tabelle `utente` -- ALTER TABLE `utente` ADD PRIMARY KEY (`id`), ADD UNIQUE KEY `email` (`email`), ADD UNIQUE KEY `partita_iva` (`partita_iva`); -- -- AUTO_INCREMENT per le tabelle scaricate -- -- -- AUTO_INCREMENT per la tabella `annuncio` -- ALTER TABLE `annuncio` MODIFY `id` bigint(20) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=10; -- -- AUTO_INCREMENT per la tabella `candidatura` -- ALTER TABLE `candidatura` MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=9; -- -- AUTO_INCREMENT per la tabella `commento` -- ALTER TABLE `commento` MODIFY `id` bigint(20) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=17; -- -- AUTO_INCREMENT per la tabella `feedback` -- ALTER TABLE `feedback` MODIFY `id` bigint(20) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=6; -- -- AUTO_INCREMENT per la tabella `macrocategoria` -- ALTER TABLE `macrocategoria` MODIFY `id` bigint(20) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=20; -- -- AUTO_INCREMENT per la tabella `messaggio` -- ALTER TABLE `messaggio` MODIFY `id` bigint(20) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=8; -- -- AUTO_INCREMENT per la tabella `microcategoria` -- ALTER TABLE `microcategoria` MODIFY `id` bigint(20) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=13; -- -- AUTO_INCREMENT per la tabella `notifica` -- ALTER TABLE `notifica` MODIFY `id` bigint(20) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=10; -- -- AUTO_INCREMENT per la tabella `utente` -- ALTER TABLE `utente` MODIFY `id` bigint(20) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=16; -- -- Limiti per le tabelle scaricate -- -- -- Limiti per la tabella `annuncio` -- ALTER TABLE `annuncio` ADD CONSTRAINT `annuncio_ibfk_1` FOREIGN KEY (`id_utente`) REFERENCES `utente` (`id`) ON DELETE NO ACTION ON UPDATE NO ACTION; -- -- Limiti per la tabella `bloccato` -- ALTER TABLE `bloccato` ADD CONSTRAINT `bloccato_ibfk_1` FOREIGN KEY (`id_utente`) REFERENCES `utente` (`id`) ON DELETE NO ACTION ON UPDATE NO ACTION, ADD CONSTRAINT `bloccato_ibfk_2` FOREIGN KEY (`id_utente_bloccato`) REFERENCES `utente` (`id`) ON DELETE NO ACTION ON UPDATE NO ACTION; -- -- Limiti per la tabella `candidatura` -- ALTER TABLE `candidatura` ADD CONSTRAINT `candidatura_ibfk_1` FOREIGN KEY (`id_utente`) REFERENCES `utente` (`id`) ON DELETE NO ACTION ON UPDATE NO ACTION, ADD CONSTRAINT `candidatura_ibfk_2` FOREIGN KEY (`id_annuncio`) REFERENCES `annuncio` (`id`) ON DELETE NO ACTION ON UPDATE CASCADE; -- -- Limiti per la tabella `commento` -- ALTER TABLE `commento` ADD CONSTRAINT `commento_ibfk_1` FOREIGN KEY (`id_annuncio`) REFERENCES `annuncio` (`id`) ON DELETE CASCADE ON UPDATE CASCADE, ADD CONSTRAINT `commento_ibfk_2` FOREIGN KEY (`id_utente`) REFERENCES `utente` (`id`) ON DELETE NO ACTION ON UPDATE CASCADE; -- -- Limiti per la tabella `competente` -- ALTER TABLE `competente` ADD CONSTRAINT `competente_ibfk_1` FOREIGN KEY (`id_utente`) REFERENCES `utente` (`id`) ON DELETE CASCADE ON UPDATE CASCADE, ADD CONSTRAINT `competente_ibfk_2` FOREIGN KEY (`id_microcategoria`) REFERENCES `microcategoria` (`id`) ON DELETE CASCADE ON UPDATE CASCADE; -- -- Limiti per la tabella `dispatcher_notifica` -- ALTER TABLE `dispatcher_notifica` ADD CONSTRAINT `dispatcher_notifica_ibfk_1` FOREIGN KEY (`id_utente`) REFERENCES `utente` (`id`) ON DELETE CASCADE ON UPDATE NO ACTION, ADD CONSTRAINT `dispatcher_notifica_ibfk_2` FOREIGN KEY (`id_notifica`) REFERENCES `notifica` (`id`) ON DELETE CASCADE ON UPDATE NO ACTION; -- -- Limiti per la tabella `feedback` -- ALTER TABLE `feedback` ADD CONSTRAINT `feedback_ibfk_1` FOREIGN KEY (`id_utente`) REFERENCES `utente` (`id`) ON DELETE NO ACTION ON UPDATE NO ACTION, ADD CONSTRAINT `feedback_ibfk_2` FOREIGN KEY (`id_annuncio`) REFERENCES `annuncio` (`id`) ON DELETE NO ACTION ON UPDATE CASCADE, ADD CONSTRAINT `feedback_ibfk_3` FOREIGN KEY (`id_valutato`) REFERENCES `utente` (`id`) ON DELETE NO ACTION ON UPDATE NO ACTION; -- -- Limiti per la tabella `interesse` -- ALTER TABLE `interesse` ADD CONSTRAINT `interesse_ibfk_1` FOREIGN KEY (`id_utente`) REFERENCES `utente` (`id`) ON DELETE CASCADE ON UPDATE CASCADE, ADD CONSTRAINT `interesse_ibfk_2` FOREIGN KEY (`id_microcategoria`) REFERENCES `microcategoria` (`id`) ON DELETE CASCADE ON UPDATE CASCADE; -- -- Limiti per la tabella `messaggio` -- ALTER TABLE `messaggio` ADD CONSTRAINT `messaggio_ibfk_1` FOREIGN KEY (`id_utente_mittente`) REFERENCES `utente` (`id`) ON DELETE NO ACTION ON UPDATE NO ACTION, ADD CONSTRAINT `messaggio_ibfk_2` FOREIGN KEY (`id_utente_destinatario`) REFERENCES `utente` (`id`) ON DELETE NO ACTION ON UPDATE NO ACTION; -- -- Limiti per la tabella `microcategoria` -- ALTER TABLE `microcategoria` ADD CONSTRAINT `microcategoria_ibfk_1` FOREIGN KEY (`id_macrocategoria`) REFERENCES `macrocategoria` (`id`) ON DELETE CASCADE ON UPDATE CASCADE; -- -- Limiti per la tabella `preferito` -- ALTER TABLE `preferito` ADD CONSTRAINT `preferito_ibfk_1` FOREIGN KEY (`id_utente`) REFERENCES `utente` (`id`) ON DELETE CASCADE ON UPDATE CASCADE, ADD CONSTRAINT `preferito_ibfk_2` FOREIGN KEY (`id_annuncio`) REFERENCES `annuncio` (`id`) ON DELETE CASCADE ON UPDATE CASCADE; -- -- Limiti per la tabella `riferito` -- ALTER TABLE `riferito` ADD CONSTRAINT `riferito_ibfk_2` FOREIGN KEY (`id_microcategoria`) REFERENCES `microcategoria` (`id`) ON DELETE CASCADE ON UPDATE CASCADE, ADD CONSTRAINT `riferito_ibfk_3` FOREIGN KEY (`id_annuncio`) REFERENCES `annuncio` (`id`) ON DELETE CASCADE ON UPDATE CASCADE; /*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */; /*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */; /*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */;
true
27eec59ea77169f7beeb2669322b6dff1bfa41bb
SQL
dkazany/DWH-2.0
/Source Extracts/T24/F_CARD_TYPE.sql
UTF-8
599
2.71875
3
[]
no_license
SELECT XMLRECORD.value('(/row/@id)[1]', 'nvarchar(6)') AS CARD_TYPE, XMLRECORD.value('(/row/c1)[1]', 'nvarchar(65)') AS DESCRIPTION, XMLRECORD.value('(/row/c10)[1]', 'nvarchar(10)') AS LMB_DR_CR_CARD, XMLRECORD.value('(/row/c10[@m="2"])[1]', 'nvarchar(10)') AS CARD_TYPE_CODE, XMLRECORD.value('(/row/c10[@m="3"])[1]', 'nvarchar(10)') AS LMB_CARD_DAILY_LIMIT, XMLRECORD.value('(/row/c11)[1]', 'nvarchar(10)') AS RECORD_STATUS, XMLRECORD.value('(/row/c12)[1]', 'int') AS CURR_NO, CAST(SUBSTRING(XMLRECORD.value('(/row/c14/text())[1]', 'nvarchar(35)'), 1, 6) AS DATE) AS LAST_UPD_DATE FROM F_CARD_TYPE
true
c81dfc140a1014318491e774976a62bf49e16b2d
SQL
yibuyisheng/chat
/mysql.sql
UTF-8
945
3.421875
3
[]
no_license
-- 数据库构建 CREATE SCHEMA `chat` DEFAULT CHARACTER SET utf8 COLLATE utf8_general_ci ; CREATE TABLE `chat`.`user` ( `id` INT(11) NOT NULL AUTO_INCREMENT, `name` VARCHAR(45) NULL, `nickname` VARCHAR(45) NULL, `password` VARCHAR(45) NULL, `email` VARCHAR(45) NULL, `avatar` VARCHAR(200) NULL, PRIMARY KEY (`id`)); CREATE TABLE `chat`.`chatroom` ( `id` INT(11) NOT NULL AUTO_INCREMENT, `name` VARCHAR(45) NULL, `type` TINYINT NULL, # type=1:只有两人的好友关系房间;type=2:群 PRIMARY KEY (`id`)); CREATE TABLE `chat`.`message` ( `id` INT(11) NOT NULL AUTO_INCREMENT, `content` VARCHAR(10000) NULL, `from_user_id` INT(11) NULL, `chatroom_id` INT(11) NULL, `send_date` DATETIME NULL, PRIMARY KEY (`id`)); CREATE TABLE `chat`.`chatroom_user` ( `id` INT(11) NOT NULL AUTO_INCREMENT, `chatroom_id` INT(11) NULL, `user_id` INT(11) NULL, PRIMARY KEY (`id`));
true
aa1e396bfffcdd1937d0efb77af111dad4cfcf03
SQL
svwriting/This-is-CS50x
/pset7/movies/13.sql
UTF-8
627
4.375
4
[]
no_license
-- write a SQL query to list the names of all people -- who starred in a movie in which Kevin Bacon also starred. -- Your query should output a table with a single column for the name of each person. -- There may be multiple people named Kevin Bacon in the database. -- Be sure to only select the Kevin Bacon born in 1958. -- Kevin Bacon himself should not be included in the resulting list. SELECT DISTINCT name FROM people JOIN stars ON stars.person_id==people.id WHERE people.name!="Kevin Bacon" AND stars.movie_id IN (SELECT movie_id FROM stars JOIN people ON stars.person_id==people.id WHERE people.name=="Kevin Bacon" AND people.birth==1958)
true