Skip to content

Instantly share code, notes, and snippets.

@jazzido
Created August 17, 2011 14:38
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jazzido/1151638 to your computer and use it in GitHub Desktop.
Save jazzido/1151638 to your computer and use it in GitHub Desktop.
Schema de la Db de la app distribuida por el ministerio del interior
manuel@nostromo:~$ mdb-schema '/home/manuel/.wine/drive_c/Elecciones Primarias 2011ARG/DatosBD/ArgentinaP.mdb'
-------------------------------------------------------------
-- MDB Tools - A library for reading MS Access database files
-- Copyright (C) 2000-2004 Brian Bruns
-- Files in libmdb are licensed under LGPL and the utilities under
-- the GPL, see COPYING.LIB and COPYING files respectively.
-- Check out http://mdbtools.sourceforge.net
-------------------------------------------------------------
DROP TABLE CandidatosGobernador;
CREATE TABLE CandidatosGobernador
(
can_proCodigoProvincia Text (4),
can_parFormula Text (8),
canNombreForm1 Text (100),
canNombreForm2 Text (100),
canColor Long Integer
);
-- CREATE ANY INDEXES ...
DROP TABLE CandidatosPresidente;
CREATE TABLE CandidatosPresidente
(
can_proCodigoProvincia Text (4),
can_parFormula Text (8),
canNombreForm1 Text (100),
canNombreForm2 Text (100),
canColor Long Integer
);
-- CREATE ANY INDEXES ...
DROP TABLE ColoresForzados;
CREATE TABLE ColoresForzados
(
ColorIn Long Integer
);
-- CREATE ANY INDEXES ...
DROP TABLE Concejales;
CREATE TABLE Concejales
(
pre_proCodigoProvincia Text (4),
pre_depCodigoDepartamento Text (6),
pre_munCodigoMunicipio Text (6),
preMesasTotales Long Integer,
preMesasEscrutadas Long Integer,
prePorcenMesasEscrutadas Single,
preVotosValidos Long Integer,
prePorcenVotosValidos Single,
preVotosPositivos Long Integer,
prePorcenVotosPositivos Single,
preVotosEnBlanco Long Integer,
prePorcenVotosEnBlanco Single,
preVotosNulos Long Integer,
prePorcenVotosNulos Single,
preVotosRecurridos Long Integer,
prePorcenVotosRecurridos Single,
preElectores Long Integer,
preTotalVotantes Long Integer,
prePTotalVotantes Single,
preParticipacion Single,
preCandidatos Long Integer,
preParticipEscrutado Long Integer,
prePorcParticipEscrutado Single,
OT_Codigo Text (8),
OT_Votos Long Integer,
OT_PVotos Single
);
-- CREATE ANY INDEXES ...
DROP TABLE Departamento;
CREATE TABLE Departamento
(
dep_proCodigoProvincia Text (4),
depCodigoDepartamento Text (6),
depNombre Text (100)
);
-- CREATE ANY INDEXES ...
DROP TABLE DNacionales;
CREATE TABLE DNacionales
(
pre_proCodigoProvincia Text (4),
pre_depCodigoDepartamento Text (6),
preMesasTotales Long Integer,
preMesasEscrutadas Long Integer,
prePorcenMesasEscrutadas Single,
preVotosValidos Long Integer,
prePorcenVotosValidos Single,
preVotosPositivos Long Integer,
prePorcenVotosPositivos Single,
preVotosEnBlanco Long Integer,
prePorcenVotosEnBlanco Single,
preVotosNulos Long Integer,
prePorcenVotosNulos Single,
preVotosRecurridos Long Integer,
prePorcenVotosRecurridos Single,
preElectores Long Integer,
preTotalVotantes Long Integer,
prePTotalVotantes Single,
preParticipacion Single,
preCandidatos Long Integer,
preParticipEscrutado Long Integer,
prePorcParticipEscrutado Single,
OT_Codigo Text (8),
OT_Votos Long Integer,
OT_PVotos Single
);
-- CREATE ANY INDEXES ...
DROP TABLE Elecciones;
CREATE TABLE Elecciones
(
eleCodigo Byte,
eleDescripcion Text (100)
);
-- CREATE ANY INDEXES ...
DROP TABLE Gobernador;
CREATE TABLE Gobernador
(
pre_proCodigoProvincia Text (4),
pre_depCodigoDepartamento Text (6),
preMesasTotales Long Integer,
preMesasEscrutadas Long Integer,
prePorcenMesasEscrutadas Single,
preVotosValidos Long Integer,
prePorcenVotosValidos Single,
preVotosPositivos Long Integer,
prePorcenVotosPositivos Single,
preVotosEnBlanco Long Integer,
prePorcenVotosEnBlanco Single,
preVotosNulos Long Integer,
prePorcenVotosNulos Single,
preVotosRecurridos Long Integer,
prePorcenVotosRecurridos Single,
preElectores Long Integer,
preTotalVotantes Long Integer,
prePTotalVotantes Single,
preParticipEscrutado Long Integer,
prePorcParticipEscrutado Single,
preParticipacion Single,
preCandidatos Long Integer,
OT_Codigo Text (8),
OT_Votos Long Integer,
OT_PVotos Single
);
-- CREATE ANY INDEXES ...
DROP TABLE IndEle;
CREATE TABLE IndEle
(
CODPRO Text (4),
CODDEP Text (6),
IndPresidente Text (2),
IndSenaNacion Text (2),
IndDipuNacion Text (2),
IndGobernador Text (2),
IndSenaProvin Text (2),
IndDipuProvin Text (2),
IndConcejales Text (2),
IndIntendente Text (2)
);
-- CREATE ANY INDEXES ...
DROP TABLE Intendente;
CREATE TABLE Intendente
(
pre_proCodigoProvincia Text (4),
pre_depCodigoDepartamento Text (6),
pre_munCodigoMunicipio Text (6),
preMesasTotales Long Integer,
preMesasEscrutadas Long Integer,
prePorcenMesasEscrutadas Single,
preVotosValidos Long Integer,
prePorcenVotosValidos Single,
preVotosPositivos Long Integer,
prePorcenVotosPositivos Single,
preVotosEnBlanco Long Integer,
prePorcenVotosEnBlanco Single,
preVotosNulos Long Integer,
prePorcenVotosNulos Single,
preVotosRecurridos Long Integer,
prePorcenVotosRecurridos Single,
preElectores Long Integer,
preTotalVotantes Long Integer,
prePTotalVotantes Single,
preParticipacion Single,
preCandidatos Long Integer,
preParticipEscrutado Long Integer,
prePorcParticipEscrutado Single,
OT_Codigo Text (8),
OT_Votos Long Integer,
OT_PVotos Single
);
-- CREATE ANY INDEXES ...
DROP TABLE MesasConcejales;
CREATE TABLE MesasConcejales
(
mes_proCodigoProvincia Text (4),
mes_depCodigoDepartamento Text (6),
mes_munCodigoMunicipio Text (6),
mesCodigoCircuito Text (10),
mesCodigoMesa Text (8),
mesEstado Byte,
mesVotosValidos Long Integer,
mesVotosPositivos Long Integer,
mesVotosEnBlanco Long Integer,
mesVotosNulos Long Integer,
mesVotosRecurridos Long Integer,
mesVotosImpugnados Long Integer,
mesElectores Long Integer,
mesTotalVotantes Long Integer
);
-- CREATE ANY INDEXES ...
DROP TABLE MesasDNacionales;
CREATE TABLE MesasDNacionales
(
mes_proCodigoProvincia Text (4),
mes_depCodigoDepartamento Text (6),
mesCodigoCircuito Text (10),
mesCodigoMesa Text (8),
mesEstado Byte,
mesVotosValidos Long Integer,
mesVotosPositivos Long Integer,
mesVotosEnBlanco Long Integer,
mesVotosNulos Long Integer,
mesVotosRecurridos Long Integer,
mesVotosImpugnados Long Integer,
mesElectores Long Integer,
mesTotalVotantes Long Integer
);
-- CREATE ANY INDEXES ...
DROP TABLE MesasDProvinciales;
CREATE TABLE MesasDProvinciales
(
mes_proCodigoProvincia Text (4),
mes_depCodigoDepartamento Text (6),
mesCodigoCircuito Text (10),
mesCodigoMesa Text (8),
mesEstado Byte,
mesVotosValidos Long Integer,
mesVotosPositivos Long Integer,
mesVotosEnBlanco Long Integer,
mesVotosNulos Long Integer,
mesVotosRecurridos Long Integer,
mesVotosImpugnados Long Integer,
mesElectores Long Integer,
mesTotalVotantes Long Integer
);
-- CREATE ANY INDEXES ...
DROP TABLE MesasIntendente;
CREATE TABLE MesasIntendente
(
mes_proCodigoProvincia Text (4),
mes_depCodigoDepartamento Text (6),
mes_munCodigoMunicipio Text (6),
mesCodigoCircuito Text (10),
mesCodigoMesa Text (8),
mesCodSexo Text (2),
mesEstado Byte,
mesVotosValidos Long Integer,
mesVotosPositivos Long Integer,
mesVotosEnBlanco Long Integer,
mesVotosNulos Long Integer,
mesVotosRecurridos Long Integer,
mesVotosImpugnados Long Integer,
mesElectores Long Integer,
mesTotalVotantes Long Integer
);
-- CREATE ANY INDEXES ...
DROP TABLE MesasPresidente;
CREATE TABLE MesasPresidente
(
mes_proCodigoProvincia Text (4),
mes_depCodigoDepartamento Text (6),
mesCodigoCircuito Text (10),
mesCodigoMesa Text (8),
mesEstado Byte,
mesVotosValidos Long Integer,
mesVotosPositivos Long Integer,
mesVotosEnBlanco Long Integer,
mesVotosNulos Long Integer,
mesVotosRecurridos Long Integer,
mesVotosImpugnados Long Integer,
mesElectores Long Integer,
mesTotalVotantes Long Integer
);
-- CREATE ANY INDEXES ...
DROP TABLE MesasSNacionales;
CREATE TABLE MesasSNacionales
(
mes_proCodigoProvincia Text (4),
mes_depCodigoDepartamento Text (6),
mesCodigoCircuito Text (10),
mesCodigoMesa Text (8),
mesEstado Byte,
mesVotosValidos Long Integer,
mesVotosPositivos Long Integer,
mesVotosEnBlanco Long Integer,
mesVotosNulos Long Integer,
mesVotosRecurridos Long Integer,
mesVotosImpugnados Long Integer,
mesElectores Long Integer,
mesTotalVotantes Long Integer
);
-- CREATE ANY INDEXES ...
DROP TABLE MesasSProvinciales;
CREATE TABLE MesasSProvinciales
(
mes_proCodigoProvincia Text (4),
mes_depCodigoDepartamento Text (6),
mesCodigoCircuito Text (10),
mesCodigoMesa Text (8),
mesEstado Byte,
mesVotosValidos Long Integer,
mesVotosPositivos Long Integer,
mesVotosEnBlanco Long Integer,
mesVotosNulos Long Integer,
mesVotosRecurridos Long Integer,
mesVotosImpugnados Long Integer,
mesElectores Long Integer,
mesTotalVotantes Long Integer
);
-- CREATE ANY INDEXES ...
DROP TABLE Municipios;
CREATE TABLE Municipios
(
mun_CodigoProvincia Text (4),
mun_CodigoDepartamento Text (6),
mun_CodigoMunicipio Text (6),
munNombre Text (100)
);
-- CREATE ANY INDEXES ...
DROP TABLE Partidos;
CREATE TABLE Partidos
(
parCodigo Text (8),
parSiglas Text (50),
parDenominacion Text (200),
parColor Long Integer
);
-- CREATE ANY INDEXES ...
DROP TABLE Poligonos;
CREATE TABLE Poligonos
(
Identificador Long Integer,
Codigo Long Integer,
NumOrden Byte,
Operacion Byte,
Dimension Long Integer
);
-- CREATE ANY INDEXES ...
DROP TABLE Provincias;
CREATE TABLE Provincias
(
proCodigoProvincia Text (4),
proNombre Text (100),
L1 Boolean,
L2 Boolean,
L3 Boolean,
L4 Boolean,
L5 Boolean,
L6 Boolean,
L7 Boolean,
L8 Boolean
);
-- CREATE ANY INDEXES ...
DROP TABLE Puntos;
CREATE TABLE Puntos
(
Identificador Long Integer,
Codigo Long Integer,
NumOrden Long Integer,
X Long Integer,
Y Long Integer
);
-- CREATE ANY INDEXES ...
DROP TABLE SNacionales;
CREATE TABLE SNacionales
(
pre_proCodigoProvincia Text (4),
pre_depCodigoDepartamento Text (6),
preMesasTotales Long Integer,
preMesasEscrutadas Long Integer,
prePorcenMesasEscrutadas Single,
preVotosValidos Long Integer,
prePorcenVotosValidos Single,
preVotosPositivos Long Integer,
prePorcenVotosPositivos Single,
preVotosEnBlanco Long Integer,
prePorcenVotosEnBlanco Single,
preVotosNulos Long Integer,
prePorcenVotosNulos Single,
preVotosRecurridos Long Integer,
prePorcenVotosRecurridos Single,
preElectores Long Integer,
preTotalVotantes Long Integer,
prePTotalVotantes Single,
preParticipacion Single,
preCandidatos Long Integer,
preParticipEscrutado Long Integer,
prePorcParticipEscrutado Single,
OT_Codigo Text (8),
OT_Votos Long Integer,
OT_PVotos Single
);
-- CREATE ANY INDEXES ...
DROP TABLE SProvinciales;
CREATE TABLE SProvinciales
(
pre_proCodigoProvincia Text (4),
pre_depCodigoDepartamento Text (6),
preMesasTotales Long Integer,
preMesasEscrutadas Long Integer,
prePorcenMesasEscrutadas Single,
preVotosValidos Long Integer,
prePorcenVotosValidos Single,
preVotosPositivos Long Integer,
prePorcenVotosPositivos Single,
preVotosEnBlanco Long Integer,
prePorcenVotosEnBlanco Single,
preVotosNulos Long Integer,
prePorcenVotosNulos Single,
preVotosRecurridos Long Integer,
prePorcenVotosRecurridos Single,
preElectores Long Integer,
preTotalVotantes Long Integer,
prePTotalVotantes Single,
preParticipacion Single,
preCandidatos Long Integer,
preParticipEscrutado Long Integer,
prePorcParticipEscrutado Single,
OT_Codigo Text (8),
OT_Votos Long Integer,
OT_PVotos Single
);
-- CREATE ANY INDEXES ...
DROP TABLE Unidad;
CREATE TABLE Unidad
(
Identificador Long Integer,
Nombre Text (100),
Codigo Long Integer,
NumPoligonos Integer,
Escenario Long Integer,
Escenario1 Long Integer
);
-- CREATE ANY INDEXES ...
DROP TABLE VotosCandidaturaConcejales;
CREATE TABLE VotosCandidaturaConcejales
(
vot_proCodigoProvincia Text (4),
vot_depCodigoDepartamento Text (6),
vot_munCodigoMunicipio Text (6),
vot_parCodigo Text (8),
ordenPartidos Integer,
votVotosPartido Long Integer,
votPorcenVotos Single,
votCandidatos Long Integer,
votCodParAgrupa Text (8)
);
-- CREATE ANY INDEXES ...
DROP TABLE VotosCandidaturaDProvinciales;
CREATE TABLE VotosCandidaturaDProvinciales
(
vot_proCodigoProvincia Text (4),
vot_depCodigoDepartamento Text (6),
vot_parCodigo Text (8),
ordenPartidos Integer,
votVotosPartido Long Integer,
votPorcenVotos Single,
votCandidatos Long Integer,
votCodParAgrupa Text (8)
);
-- CREATE ANY INDEXES ...
DROP TABLE VotosCandidaturaIntendente;
CREATE TABLE VotosCandidaturaIntendente
(
vot_proCodigoProvincia Text (4),
vot_depCodigoDepartamento Text (6),
vot_munCodigoMunicipio Text (6),
vot_parCodigo Text (8),
ordenPartidos Integer,
votVotosPartido Long Integer,
votPorcenVotos Single,
votCandidatos Long Integer,
votCodParAgrupa Text (8)
);
-- CREATE ANY INDEXES ...
DROP TABLE VotosCandidaturaMesasConcejales;
CREATE TABLE VotosCandidaturaMesasConcejales
(
vot_proCodigoProvincia Text (4),
vot_depCodigoDepartamento Text (6),
vot_munCodigoMunicipio Text (6),
vot_mesCodigoCircuito Text (10),
vot_mesCodigoMesa Text (8),
vot_parCodigo Text (8),
ordenPartidos Integer,
votVotosPartido Long Integer,
votOrdenActa Long Integer
);
-- CREATE ANY INDEXES ...
DROP TABLE VotosCandidaturaMesasDNacionales;
CREATE TABLE VotosCandidaturaMesasDNacionales
(
vot_proCodigoProvincia Text (4),
vot_depCodigoDepartamento Text (6),
vot_mesCodigoCircuito Text (10),
vot_mesCodigoMesa Text (8),
vot_parCodigo Text (8),
ordenPartidos Integer,
votVotosPartido Long Integer,
votOrdenActa Long Integer
);
-- CREATE ANY INDEXES ...
DROP TABLE VotosCandidaturaMesasDProvinciales;
CREATE TABLE VotosCandidaturaMesasDProvinciales
(
vot_proCodigoProvincia Text (4),
vot_depCodigoDepartamento Text (6),
vot_mesCodigoCircuito Text (10),
vot_mesCodigoMesa Text (8),
vot_parCodigo Text (8),
ordenPartidos Integer,
votVotosPartido Long Integer,
votOrdenActa Long Integer
);
-- CREATE ANY INDEXES ...
DROP TABLE VotosCandidaturaMesasGobernador;
CREATE TABLE VotosCandidaturaMesasGobernador
(
vot_proCodigoProvincia Text (4),
vot_depCodigoDepartamento Text (6),
vot_mesCodigoCircuito Text (10),
vot_mesCodigoMesa Text (8),
vot_parCodigo Text (8),
ordenPartidos Integer,
votVotosPartido Long Integer,
votOrdenActa Long Integer
);
-- CREATE ANY INDEXES ...
DROP TABLE VotosCandidaturaMesasIntendente;
CREATE TABLE VotosCandidaturaMesasIntendente
(
vot_proCodigoProvincia Text (4),
vot_depCodigoDepartamento Text (6),
vot_munCodigoMunicipio Text (6),
vot_mesCodigoCircuito Text (10),
vot_mesCodigoMesa Text (8),
vot_parCodigo Text (8),
ordenPartidos Integer,
votVotosPartido Long Integer,
votOrdenActa Long Integer
);
-- CREATE ANY INDEXES ...
DROP TABLE VotosCandidaturaMesasPresidente;
CREATE TABLE VotosCandidaturaMesasPresidente
(
vot_proCodigoProvincia Text (4),
vot_depCodigoDepartamento Text (6),
vot_mesCodigoCircuito Text (10),
vot_mesCodigoMesa Text (8),
vot_parCodigo Text (8),
ordenPartidos Integer,
votVotosPartido Long Integer,
votOrdenActa Long Integer
);
-- CREATE ANY INDEXES ...
DROP TABLE VotosCandidaturaMesasSProvinciales;
CREATE TABLE VotosCandidaturaMesasSProvinciales
(
vot_proCodigoProvincia Text (4),
vot_depCodigoDepartamento Text (6),
vot_mesCodigoCircuito Text (10),
vot_mesCodigoMesa Text (8),
vot_parCodigo Text (8),
ordenPartidos Integer,
votVotosPartido Long Integer,
votOrdenActa Long Integer
);
-- CREATE ANY INDEXES ...
DROP TABLE VotosCandidaturaSNacionales;
CREATE TABLE VotosCandidaturaSNacionales
(
vot_proCodigoProvincia Text (4),
vot_depCodigoDepartamento Text (6),
vot_parCodigo Text (8),
ordenPartidos Integer,
votVotosPartido Long Integer,
votPorcenVotos Single,
votCandidatos Long Integer,
votCodParAgrupa Text (8)
);
-- CREATE ANY INDEXES ...
DROP TABLE VotosCandidaturaSProvinciales;
CREATE TABLE VotosCandidaturaSProvinciales
(
vot_proCodigoProvincia Text (4),
vot_depCodigoDepartamento Text (6),
vot_parCodigo Text (8),
ordenPartidos Integer,
votVotosPartido Long Integer,
votPorcenVotos Single,
votCandidatos Long Integer,
votCodParAgrupa Text (8)
);
-- CREATE ANY INDEXES ...
DROP TABLE VotosFormulaGobernador;
CREATE TABLE VotosFormulaGobernador
(
vot_proCodigoProvincia Text (4),
vot_depCodigoDepartamento Text (6),
vot_forCodigo Text (8),
ordenPartidos Integer,
votVotosFormula Long Integer,
votPorcenVotosFormula Single
);
-- CREATE ANY INDEXES ...
DROP TABLE VotosFormulaPresidente;
CREATE TABLE VotosFormulaPresidente
(
vot_proCodigoProvincia Text (4),
vot_depCodigoDepartamento Text (6),
vot_forCodigo Text (8),
ordenPartidos Integer,
votVotosFormula Long Integer,
votPorcenVotosFormula Single
);
-- CREATE ANY INDEXES ...
DROP TABLE VotosPartidosFormulaDNacionales;
CREATE TABLE VotosPartidosFormulaDNacionales
(
vot_proCodigoProvincia Text (4),
vot_depCodigoDepartamento Text (6),
vot_codFormula Text (8),
vot_parCodigo Text (8),
votVotosPartido Long Integer,
votPorcenVotos Single
);
-- CREATE ANY INDEXES ...
DROP TABLE VotosPartidosFormulaDProvinciales;
CREATE TABLE VotosPartidosFormulaDProvinciales
(
vot_proCodigoProvincia Text (4),
vot_depCodigoDepartamento Text (6),
vot_codFormula Text (8),
vot_parCodigo Text (8),
votVotosPartido Long Integer,
votPorcenVotos Single
);
-- CREATE ANY INDEXES ...
DROP TABLE VotosPartidosFormulaGobernador;
CREATE TABLE VotosPartidosFormulaGobernador
(
vot_proCodigoProvincia Text (4),
vot_depCodigoDepartamento Text (6),
vot_codFormula Text (8),
vot_parCodigo Text (8),
votVotosPartido Long Integer,
votPorcenVotos Single
);
-- CREATE ANY INDEXES ...
DROP TABLE VotosPartidosFormulaSNacionales;
CREATE TABLE VotosPartidosFormulaSNacionales
(
vot_proCodigoProvincia Text (4),
vot_depCodigoDepartamento Text (6),
vot_codFormula Text (8),
vot_parCodigo Text (8),
votVotosPartido Long Integer,
votPorcenVotos Single
);
-- CREATE ANY INDEXES ...
DROP TABLE VotosPartidosFormulaSProvinciales;
CREATE TABLE VotosPartidosFormulaSProvinciales
(
vot_proCodigoProvincia Text (4),
vot_depCodigoDepartamento Text (6),
vot_codFormula Text (8),
vot_parCodigo Text (8),
votVotosPartido Long Integer,
votPorcenVotos Single
);
-- CREATE ANY INDEXES ...
DROP TABLE VotosSubLemaDNacionales;
CREATE TABLE VotosSubLemaDNacionales
(
sub_votproCodigoProvincia Text (4),
sub_votdepCodigoDepartamento Text (6),
sub_votparCodigo Text (8),
sub_parCodigo Text (8),
subVotosPartido Long Integer,
subPorcenVotos Single,
subCandidatos Long Integer
);
-- CREATE ANY INDEXES ...
DROP TABLE VotosSubLemaDProvinciales;
CREATE TABLE VotosSubLemaDProvinciales
(
sub_votproCodigoProvincia Text (4),
sub_votdepCodigoDepartamento Text (6),
sub_votparCodigo Text (8),
sub_parCodigo Text (8),
subVotosPartido Long Integer,
subPorcenVotos Single,
subCandidatos Long Integer
);
-- CREATE ANY INDEXES ...
DROP TABLE VotosSubLemaGobernador;
CREATE TABLE VotosSubLemaGobernador
(
sub_votproCodigoProvincia Text (4),
sub_votdepCodigoDepartamento Text (6),
sub_votparCodigo Text (8),
sub_parCodigo Text (8),
subVotosPartido Long Integer,
subPorcenVotos Single,
subCandidatos Long Integer
);
-- CREATE ANY INDEXES ...
DROP TABLE VotosSubLemaIntendente;
CREATE TABLE VotosSubLemaIntendente
(
sub_votproCodigoProvincia Text (4),
sub_votdepCodigoDepartamento Text (6),
sub_votmunCodigoMunicipio Text (6),
sub_votparCodigo Text (8),
sub_parCodigo Text (8),
subVotosPartido Long Integer,
subPorcenVotos Single,
subCandidatos Long Integer
);
-- CREATE ANY INDEXES ...
DROP TABLE VotosSublemaMesaConcejales;
CREATE TABLE VotosSublemaMesaConcejales
(
sub_proCodigoProvincia Text (4),
sub_depCodigoDepartamento Text (6),
sub_mesCodigoCircuito Text (10),
sub_mesCodigoMesa Text (8),
sub_votparCodigo Text (8),
sub_parCodigo Text (8),
subVotosPartido Long Integer,
subOrdenActa Long Integer
);
-- CREATE ANY INDEXES ...
DROP TABLE VotosSublemaMesaDNacionales;
CREATE TABLE VotosSublemaMesaDNacionales
(
sub_proCodigoProvincia Text (4),
sub_depCodigoDepartamento Text (6),
sub_mesCodigoCircuito Text (10),
sub_mesCodigoMesa Text (8),
sub_votparCodigo Text (8),
sub_parCodigo Text (8),
subVotosPartido Long Integer,
subOrdenActa Long Integer
);
-- CREATE ANY INDEXES ...
DROP TABLE VotosSublemaMesaDProvinciales;
CREATE TABLE VotosSublemaMesaDProvinciales
(
sub_proCodigoProvincia Text (4),
sub_depCodigoDepartamento Text (6),
sub_mesCodigoCircuito Text (10),
sub_mesCodigoMesa Text (8),
sub_votparCodigo Text (8),
sub_parCodigo Text (8),
subVotosPartido Long Integer,
subOrdenActa Long Integer
);
-- CREATE ANY INDEXES ...
DROP TABLE VotosSubLemaMesaGobernador;
CREATE TABLE VotosSubLemaMesaGobernador
(
sub_proCodigoProvincia Text (4),
sub_depCodigoDepartamento Text (6),
sub_mesCodigoCircuito Text (10),
sub_mesCodigoMesa Text (8),
sub_votparCodigo Text (8),
sub_parCodigo Text (8),
subVotosPartido Long Integer,
subOrdenActa Long Integer
);
-- CREATE ANY INDEXES ...
DROP TABLE VotosSublemaMesaIntendente;
CREATE TABLE VotosSublemaMesaIntendente
(
sub_proCodigoProvincia Text (4),
sub_depCodigoDepartamento Text (6),
sub_mesCodigoCircuito Text (10),
sub_mesCodigoMesa Text (8),
sub_votparCodigo Text (8),
sub_parCodigo Text (8),
subVotosPartido Long Integer,
subOrdenActa Long Integer
);
-- CREATE ANY INDEXES ...
DROP TABLE VotosSubLemaMesaPresidente;
CREATE TABLE VotosSubLemaMesaPresidente
(
sub_proCodigoProvincia Text (4),
sub_depCodigoDepartamento Text (6),
sub_mesCodigoCircuito Text (10),
sub_mesCodigoMesa Text (8),
sub_votparCodigo Text (8),
sub_parCodigo Text (8),
subVotosPartido Long Integer,
subOrdenActa Long Integer
);
-- CREATE ANY INDEXES ...
DROP TABLE VotosSublemaMesaSNacionales;
CREATE TABLE VotosSublemaMesaSNacionales
(
sub_proCodigoProvincia Text (4),
sub_depCodigoDepartamento Text (6),
sub_mesCodigoCircuito Text (10),
sub_mesCodigoMesa Text (8),
sub_votparCodigo Text (8),
sub_parCodigo Text (8),
subVotosPartido Long Integer,
subOrdenActa Long Integer
);
-- CREATE ANY INDEXES ...
DROP TABLE VotosSubLemaPresidente;
CREATE TABLE VotosSubLemaPresidente
(
sub_votproCodigoProvincia Text (4),
sub_votdepCodigoDepartamento Text (6),
sub_votparCodigo Text (8),
sub_parCodigo Text (8),
subVotosPartido Long Integer,
subPorcenVotos Single,
subCandidatos Long Integer
);
-- CREATE ANY INDEXES ...
DROP TABLE VotosSubLemaSNacionales;
CREATE TABLE VotosSubLemaSNacionales
(
sub_votproCodigoProvincia Text (4),
sub_votdepCodigoDepartamento Text (6),
sub_votparCodigo Text (8),
sub_parCodigo Text (8),
subVotosPartido Long Integer,
subPorcenVotos Single,
subCandidatos Long Integer
);
-- CREATE ANY INDEXES ...
DROP TABLE VotosSubLemaSProvinciales;
CREATE TABLE VotosSubLemaSProvinciales
(
sub_votproCodigoProvincia Text (4),
sub_votdepCodigoDepartamento Text (6),
sub_votparCodigo Text (8),
sub_parCodigo Text (8),
subVotosPartido Long Integer,
subPorcenVotos Single,
subCandidatos Long Integer
);
-- CREATE ANY INDEXES ...
DROP TABLE ColoresElecciones;
CREATE TABLE ColoresElecciones
(
Id Long Integer,
Color Long Integer
);
-- CREATE ANY INDEXES ...
DROP TABLE DProvinciales;
CREATE TABLE DProvinciales
(
pre_proCodigoProvincia Text (4),
pre_depCodigoDepartamento Text (6),
preMesasTotales Long Integer,
preMesasEscrutadas Long Integer,
prePorcenMesasEscrutadas Single,
preVotosValidos Long Integer,
prePorcenVotosValidos Single,
preVotosPositivos Long Integer,
prePorcenVotosPositivos Single,
preVotosEnBlanco Long Integer,
prePorcenVotosEnBlanco Single,
preVotosNulos Long Integer,
prePorcenVotosNulos Single,
preVotosRecurridos Long Integer,
prePorcenVotosRecurridos Single,
preElectores Long Integer,
preTotalVotantes Long Integer,
prePTotalVotantes Single,
preParticipacion Single,
preCandidatos Long Integer,
preParticipEscrutado Long Integer,
prePorcParticipEscrutado Single,
OT_Codigo Text (8),
OT_Votos Long Integer,
OT_PVotos Single
);
-- CREATE ANY INDEXES ...
DROP TABLE MesasGobernador;
CREATE TABLE MesasGobernador
(
mes_proCodigoProvincia Text (4),
mes_depCodigoDepartamento Text (6),
mesCodigoCircuito Text (10),
mesCodigoMesa Text (8),
mesEstado Byte,
mesVotosValidos Long Integer,
mesVotosPositivos Long Integer,
mesVotosEnBlanco Long Integer,
mesVotosNulos Long Integer,
mesVotosRecurridos Long Integer,
mesVotosImpugnados Long Integer,
mesElectores Long Integer,
mesTotalVotantes Long Integer
);
-- CREATE ANY INDEXES ...
DROP TABLE Presidente;
CREATE TABLE Presidente
(
pre_proCodigoProvincia Text (4),
pre_depCodigoDepartamento Text (6),
preMesasTotales Long Integer,
preMesasEscrutadas Long Integer,
prePorcenMesasEscrutadas Single,
preVotosValidos Long Integer,
prePorcenVotosValidos Single,
preVotosPositivos Long Integer,
prePorcenVotosPositivos Single,
preVotosEnBlanco Long Integer,
prePorcenVotosEnBlanco Single,
preVotosNulos Long Integer,
prePorcenVotosNulos Single,
preVotosRecurridos Long Integer,
prePorcenVotosRecurridos Single,
preElectores Long Integer,
preTotalVotantes Long Integer,
prePTotalVotantes Single,
preParticipacion Single,
preCandidatos Long Integer,
preParticipEscrutado Long Integer,
prePorcParticipEscrutado Single,
OT_Codigo Text (8),
OT_Votos Long Integer,
OT_PVotos Single
);
-- CREATE ANY INDEXES ...
DROP TABLE VotosCandidaturaDNacionales;
CREATE TABLE VotosCandidaturaDNacionales
(
vot_proCodigoProvincia Text (4),
vot_depCodigoDepartamento Text (6),
vot_parCodigo Text (8),
ordenPartidos Integer,
votVotosPartido Long Integer,
votPorcenVotos Single,
votCandidatos Long Integer,
votCodParAgrupa Text (8)
);
-- CREATE ANY INDEXES ...
DROP TABLE VotosCandidaturaMesasSNacionales;
CREATE TABLE VotosCandidaturaMesasSNacionales
(
vot_proCodigoProvincia Text (4),
vot_depCodigoDepartamento Text (6),
vot_mesCodigoCircuito Text (10),
vot_mesCodigoMesa Text (8),
vot_parCodigo Text (8),
ordenPartidos Integer,
votVotosPartido Long Integer,
votOrdenActa Long Integer
);
-- CREATE ANY INDEXES ...
DROP TABLE VotosPartidosFormulaPresidente;
CREATE TABLE VotosPartidosFormulaPresidente
(
vot_proCodigoProvincia Text (4),
vot_depCodigoDepartamento Text (6),
vot_codFormula Text (8),
vot_parCodigo Text (8),
votVotosPartido Long Integer,
votPorcenVotos Single
);
-- CREATE ANY INDEXES ...
DROP TABLE VotosSublemaMesaSProvinciales;
CREATE TABLE VotosSublemaMesaSProvinciales
(
sub_proCodigoProvincia Text (4),
sub_depCodigoDepartamento Text (6),
sub_mesCodigoCircuito Text (10),
sub_mesCodigoMesa Text (8),
sub_votparCodigo Text (8),
sub_parCodigo Text (8),
subVotosPartido Long Integer,
subOrdenActa Long Integer
);
-- CREATE ANY INDEXES ...
-- CREATE ANY Relationships ...
-- relationships are not supported for access
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment