Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ----------------------------------------------------------------------------------------------
- `¶¶¶¶¶@ ¶¶ ¶¶ ¶@ ¶
- ¶¶ ¶¶¶¶¶. ¶¶¶¶¶% ¶¶ .¶¶¶¶¶ ¶@ ¶¶ ¶¶¶¶¶ ¶¶¶¶¶
- ¶¶ ¶¶ ‹¶. ¶¶¶¶¶% ¶¶ .¶= ¶¶ ¶¶¶¶ ¶¶¶¶¶¶@ ¶¶
- ¶¶ ¶¶ ‹¶. ¶¶ ¶¶ .¶= ¶¶ ¶@ ¶¶ ¶¶ ¶¶
- ¶¶ ¶¶ ‹¶. ¶¶¶¶% .¶¶¶ ¶¶¶¶ ¶@ ¶¶ ¶¶¶¶¶ ¶¶
- ¶¶ ¶¶ ¶¶ ¶@
- ¶¶ ¶¶ ¶¶¶¶¶6 ¶¶¶¶¶¶ ¶¶ .¶% YeiZeta
- ¶¶¶¶¶ ¶¶ ¶6 ¶¶ ¶¶¶¶¶
- ¶¶ ¶¶ ¶¶ ¶¶6 ¶¶ ¶¶ .¶%
- ¶¶ ¶¶ ¶¶¶¶6¶@ ¶¶¶¶¶ ¶¶ .¶%
- ----------------------------------------------------------------------------------------------
- drop table if exists ASSOCIATION_1;
- drop table if exists CALENDARIO;
- drop table if exists CONSTANTES;
- drop table if exists CONSUMO_MES;
- drop table if exists DEPARTAMENTO;
- drop table if exists GASTO_EDIFICIO;
- drop table if exists OTRO_GASTO;
- drop table if exists PAGO;
- drop table if exists TOTAL_GASTOS_EDIFICIO;
- drop table if exists USUARIO;
- /*==============================================================*/
- /* Table: ASSOCIATION_1 */
- /*==============================================================*/
- create table ASSOCIATION_1
- (
- FECHA date not null,
- NUMERO int not null,
- IDENTIFICADOR_DE_PAGO int not null,
- primary key (FECHA, NUMERO, IDENTIFICADOR_DE_PAGO)
- );
- /*==============================================================*/
- /* Table: CALENDARIO */
- /*==============================================================*/
- create table CALENDARIO
- (
- FECHA date not null,
- primary key (FECHA)
- );
- /*==============================================================*/
- /* Table: CONSTANTES */
- /*==============================================================*/
- create table CONSTANTES
- (
- FECHA date not null,
- VALOR_UNIDAD_AGUA_CALIENTE int,
- VALOR_UNIDAD_DE_CALEFACCION int,
- VALOR_FICHAS int,
- primary key (FECHA)
- );
- /*==============================================================*/
- /* Table: CONSUMO_MES */
- /*==============================================================*/
- create table CONSUMO_MES
- (
- FECHA date not null,
- NUMERO int not null,
- CONSUMO_AGUA_CALIENTE int,
- CONSUMO_CALEFACCION int,
- CONSUMO_LAVANDERIA int,
- CUOTA_GASTO_EDIFICIO int,
- GASTO_CONSUMO_AGUA_CALIENTE int,
- GASTO_CONSUMO_CALEFACCION int,
- GASTO_FICHAS int,
- MOROSIDAD_ANTERIOR int,
- TOTAL_PAGAR int,
- TOTAL_PAGADO int,
- primary key (FECHA, NUMERO)
- );
- /*==============================================================*/
- /* Table: DEPARTAMENTO */
- /*==============================================================*/
- create table DEPARTAMENTO
- (
- NUMERO int not null,
- USUARIO_NOMBRE char(20) not null,
- NOMBRE_PROPIETARIO varchar(50),
- RUT_PROPIETARIO varchar(10),
- METROS_CUADRADOS int,
- ALICUOTA real,
- TORRE char(10),
- PISO int,
- primary key (NUMERO)
- );
- /*==============================================================*/
- /* Table: GASTO_EDIFICIO */
- /*==============================================================*/
- create table GASTO_EDIFICIO
- (
- IDENTIFICADOR_GASTO_EDIFICIO char(10) not null,
- FECHA date not null,
- CONCEPTO varchar(30),
- PORVEEDOR varchar(30),
- CATEGORIA varchar(30),
- MONTO int,
- TIPO_DE_RECIBO varchar(30),
- primary key (IDENTIFICADOR_GASTO_EDIFICIO)
- );
- /*==============================================================*/
- /* Table: OTRO_GASTO */
- /*==============================================================*/
- create table OTRO_GASTO
- (
- IDENTIFICADOR_GASTO_DEPTO char(20) not null,
- FECHA date not null,
- NUMERO int not null,
- CONCEPTO varchar(30),
- MONTO int,
- primary key (IDENTIFICADOR_GASTO_DEPTO)
- );
- /*==============================================================*/
- /* Table: PAGO */
- /*==============================================================*/
- create table PAGO
- (
- IDENTIFICADOR_DE_PAGO int not null,
- FECHA_EFECTUADO date,
- MONTO_PAGADO int,
- NUMERO_DE_CHEQUE int,
- BANCO varchar(30),
- TELEFONO int,
- CELULAR int,
- E_MAIL varchar(40),
- primary key (IDENTIFICADOR_DE_PAGO)
- );
- /*==============================================================*/
- /* Table: TOTAL_GASTOS_EDIFICIO */
- /*==============================================================*/
- create table TOTAL_GASTOS_EDIFICIO
- (
- FECHA date not null,
- TOTAL_GASTOS_A_PRORRATEAR int,
- TOTAL_GASTOS_EDIFICIO int,
- primary key (FECHA)
- );
- /*==============================================================*/
- /* Table: USUARIO */
- /*==============================================================*/
- create table USUARIO
- (
- USUARIO_NOMBRE char(20) not null,
- PASSWORD char(20),
- TIPO char(13),
- primary key (USUARIO_NOMBRE)
- );
- --------------------------------------------------------------------------------------------------------
- insert into condominio.departamento (NUMERO,NOMBRE_PROPIETARIO,RUT_PROPIETARIO,METROS_CUADRADOS,ALICUOTA,TORRE,PISO,NOMBRE_USUARIO,PASSWORD) values (11,"Juan Herrera","11111111-1",50,5.0,"Norte",1,"Juan","Juan");
- insert into condominio.departamento (NUMERO,NOMBRE_PROPIETARIO,RUT_PROPIETARIO,METROS_CUADRADOS,ALICUOTA,TORRE,PISO,NOMBRE_USUARIO,PASSWORD) values (12,"Juan Herrera1","11111111-1",50,5.0,"Norte",1,"Manuel","Manuel");
- insert into condominio.departamento (NUMERO,NOMBRE_PROPIETARIO,RUT_PROPIETARIO,METROS_CUADRADOS,ALICUOTA,TORRE,PISO,NOMBRE_USUARIO,PASSWORD) values (13,"Juan Herrera2","11111111-1",50,5.0,"Sur",1,"Victor","Victor");
- insert into condominio.departamento (NUMERO,NOMBRE_PROPIETARIO,RUT_PROPIETARIO,METROS_CUADRADOS,ALICUOTA,TORRE,PISO,NOMBRE_USUARIO,PASSWORD) values (14,"Juan Herrera3","11111111-1",50,5.0,"Sur",1,"Esteban","Esteban");
- insert into condominio.departamento (NUMERO,NOMBRE_PROPIETARIO,RUT_PROPIETARIO,METROS_CUADRADOS,ALICUOTA,TORRE,PISO,NOMBRE_USUARIO,PASSWORD) values (21,"Juan Herrera4","11111111-1",50,5.0,"Norte",2,"Julio","Julio");
- insert into condominio.departamento (NUMERO,NOMBRE_PROPIETARIO,RUT_PROPIETARIO,METROS_CUADRADOS,ALICUOTA,TORRE,PISO,NOMBRE_USUARIO,PASSWORD) values (22,"Juan Herrera5","11111111-1",50,5.0,"Norte",2,"Marcelo","Marcelo");
- insert into condominio.departamento (NUMERO,NOMBRE_PROPIETARIO,RUT_PROPIETARIO,METROS_CUADRADOS,ALICUOTA,TORRE,PISO,NOMBRE_USUARIO,PASSWORD) values (23,"Juan Herrera6","11111111-1",50,5.0,"Sur",2,"Felipe","Felipe");
- insert into condominio.departamento (NUMERO,NOMBRE_PROPIETARIO,RUT_PROPIETARIO,METROS_CUADRADOS,ALICUOTA,TORRE,PISO,NOMBRE_USUARIO,PASSWORD) values (24,"Juan Herrera7","11111111-1",50,5.0,"Sur",2,"Maria","Maria");
- insert into condominio.departamento (NUMERO,NOMBRE_PROPIETARIO,RUT_PROPIETARIO,METROS_CUADRADOS,ALICUOTA,TORRE,PISO,NOMBRE_USUARIO,PASSWORD) values (31,"Juan Herrera8","11111111-1",50,5.0,"Norte",3,"Luisa","Luisa");
- insert into condominio.departamento (NUMERO,NOMBRE_PROPIETARIO,RUT_PROPIETARIO,METROS_CUADRADOS,ALICUOTA,TORRE,PISO,NOMBRE_USUARIO,PASSWORD) values (32,"Juan Herrera9","11111111-1",50,5.0,"Norte",3,"Luis","Luis");
- insert into condominio.departamento (NUMERO,NOMBRE_PROPIETARIO,RUT_PROPIETARIO,METROS_CUADRADOS,ALICUOTA,TORRE,PISO,NOMBRE_USUARIO,PASSWORD) values (33,"Juan Herrera10","11111111-1",50,5.0,"Sur",3,"Rene","Rene");
- insert into condominio.departamento (NUMERO,NOMBRE_PROPIETARIO,RUT_PROPIETARIO,METROS_CUADRADOS,ALICUOTA,TORRE,PISO,NOMBRE_USUARIO,PASSWORD) values (34,"Juan Herrera11","11111111-1",50,5.0,"Sur",3,"Jose","Jose");
- insert into condominio.departamento (NUMERO,NOMBRE_PROPIETARIO,RUT_PROPIETARIO,METROS_CUADRADOS,ALICUOTA,TORRE,PISO,NOMBRE_USUARIO,PASSWORD) values (41,"Juan Herrera12","11111111-1",50,5.0,"Norte",4,"Ernesto","Ernesto");
- insert into condominio.departamento (NUMERO,NOMBRE_PROPIETARIO,RUT_PROPIETARIO,METROS_CUADRADOS,ALICUOTA,TORRE,PISO,NOMBRE_USUARIO,PASSWORD) values (42,"Juan Herrera13","11111111-1",50,5.0,"Norte",4,"Claudia","Claudia");
- insert into condominio.departamento (NUMERO,NOMBRE_PROPIETARIO,RUT_PROPIETARIO,METROS_CUADRADOS,ALICUOTA,TORRE,PISO,NOMBRE_USUARIO,PASSWORD) values (43,"Juan Herrera14","11111111-1",50,5.0,"Sur",4,"Pablo","Pablo");
- insert into condominio.departamento (NUMERO,NOMBRE_PROPIETARIO,RUT_PROPIETARIO,METROS_CUADRADOS,ALICUOTA,TORRE,PISO,NOMBRE_USUARIO,PASSWORD) values (44,"Juan Herrera15","11111111-1",50,5.0,"Sur",4,"Carlos","Carlos");
- insert into condominio.departamento (NUMERO,NOMBRE_PROPIETARIO,RUT_PROPIETARIO,METROS_CUADRADOS,ALICUOTA,TORRE,PISO,NOMBRE_USUARIO,PASSWORD) values (51,"Juan Herrera16","11111111-1",50,5.0,"Norte",5,"Christian","Christian");
- insert into condominio.departamento (NUMERO,NOMBRE_PROPIETARIO,RUT_PROPIETARIO,METROS_CUADRADOS,ALICUOTA,TORRE,PISO,NOMBRE_USUARIO,PASSWORD) values (52,"Juan Herrera17","11111111-1",50,5.0,"Norte",5,"Alejandra","Alejandra");
- insert into condominio.departamento (NUMERO,NOMBRE_PROPIETARIO,RUT_PROPIETARIO,METROS_CUADRADOS,ALICUOTA,TORRE,PISO,NOMBRE_USUARIO,PASSWORD) values (53,"Juan Herrera18","11111111-1",50,5.0,"Sur",5,"Guillermo","Guillermo");
- insert into condominio.departamento (NUMERO,NOMBRE_PROPIETARIO,RUT_PROPIETARIO,METROS_CUADRADOS,ALICUOTA,TORRE,PISO,NOMBRE_USUARIO,PASSWORD) values (54,"Juan Herrera19","11111111-1",50,5.0,"Sur",5,"Javier","Javier");
- insert into condominio.calendario (ANNO,MES) values ("2008","Enero");
- insert into condominio.calendario (ANNO,MES) values ("2008","Febrero");
- insert into condominio.calendario (ANNO,MES) values ("2008","Marzo");
- insert into condominio.calendario (ANNO,MES) values ("2008","Abril");
- insert into condominio.calendario (ANNO,MES) values ("2008","Mayo");
- insert into condominio.calendario (ANNO,MES) values ("2008","Junio");
- insert into condominio.calendario (ANNO,MES) values ("2008","Julio");
- insert into condominio.calendario (ANNO,MES) values ("2008","Agosto");
- insert into condominio.calendario (ANNO,MES) values ("2008","Septiembre");
- insert into condominio.calendario (ANNO,MES) values ("2008","Octubre");
- insert into condominio.calendario (ANNO,MES) values ("2008","Noviembre");
- insert into condominio.calendario (ANNO,MES) values ("2008","Diciembre");
- insert into condominio.calendario (ANNO,MES) values ("2009","Enero");
- insert into condominio.calendario (ANNO,MES) values ("2009","Febrero");
- insert into condominio.calendario (ANNO,MES) values ("2009","Marzo");
- insert into condominio.calendario (ANNO,MES) values ("2009","Abril");
- insert into condominio.calendario (ANNO,MES) values ("2009","Mayo");
- insert into condominio.calendario (ANNO,MES) values ("2009","Junio");
- insert into condominio.calendario (ANNO,MES) values ("2009","Julio");
- insert into condominio.calendario (ANNO,MES) values ("2009","Agosto");
- insert into condominio.calendario (ANNO,MES) values ("2009","Septiembre");
- insert into condominio.calendario (ANNO,MES) values ("2009","Octubre");
- insert into condominio.calendario (ANNO,MES) values ("2009","Noviembre");
- insert into condominio.calendario (ANNO,MES) values ("2009","Diciembre");
- --------------------------------------------------------------------------------------------------------
Add Comment
Please, Sign In to add comment