[Pgsql-ayuda] reverse engineering database

sandrigo lezcano psql@msa.com.py
Fri, 23 May 2003 14:28:33 -0500


This is a multi-part message in MIME format.

------=_NextPart_000_0048_01C32137.96D70E20
Content-Type: text/plain;
	charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

usando Reverse Engineering Database ...   del=20
PowerDisigner 7.0 al ODBC del PostgreSQL
creo que los tipos de datos tienen que ser modificados manualmente


me da un archivo:     crebas.sql

/*=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D*/
/* Database name:  MODL_1                                       */
/* DBMS name:      Sybase AS Anywhere 7                         */
/* Created on:     23/05/03 02:09:21 PM                         */
/*=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D*/





/*=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D*/
/* Table : accidentes_laborales                                 */
/*=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D*/
create table sal.accidentes_laborales
(
    numero_interno       integer                        not null default =
autoincrement,
    legajo               integer                        not null
          check (legajo >=3D 1),
    fecha                date                           not null,
    tipo_accidente       smallint                       not null
          check (tipo_accidente >=3D 1),
    descripcion          varchar(256),
    fecha_insercion      timestamp                      not null default =
current timestamp,
    usuario_insercion    varchar(30)                    not null default =
current user,
    primary key (numero_interno)
)
/


comment on column sal.accidentes_laborales.numero_interno is 'N=A3mero =
Interno'
/


comment on column sal.accidentes_laborales.legajo is 'Legajo'
/


comment on column sal.accidentes_laborales.fecha is 'Fecha'
/


comment on column sal.accidentes_laborales.tipo_accidente is 'Tipo =
Accidente'
/


comment on column sal.accidentes_laborales.descripcion is =
'Descripci=A2n'
/


comment on column sal.accidentes_laborales.fecha_insercion is 'Fecha =
Inserci=A2n'
/


comment on column sal.accidentes_laborales.usuario_insercion is 'Usuario =
Inserci=A2n'
/


/*=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D*/
/* Table : actividades_ips                                      */
/*=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D*/
create table sal.actividades_ips
(
    anio                 smallint                       not null
          check (anio between 1900 and 2500),
    mes                  tinyint                        not null
          check (mes between 1 and 12),
    legajo               integer                        not null
          check (legajo >=3D 1),
    actividad            char(2)                        not null,
    empresa              integer                        not null,
    primary key (anio, mes, legajo, empresa)
)
/


comment on column sal.actividades_ips.anio is 'A=A4o'
/


comment on column sal.actividades_ips.mes is 'Mes'
/


comment on column sal.actividades_ips.legajo is 'Legajo'
/


comment on column sal.actividades_ips.actividad is 'Actividad'
/


/*=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D*/
/* Table : bancos                                               */
/*=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D*/
create table sal.bancos
(
    banco                integer                        not null
          check (banco >=3D 1),
    nombre               varchar(40)                    not null,
    primary key (banco)
)
/


comment on column sal.bancos.banco is 'Banco'
/


comment on column sal.bancos.nombre is 'Nombre'
/


/*=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D*/
/* Table : cargos                                               */
/*=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D*/
create table sal.cargos
(
    codigo               double,
    descri               char(15)
)
/


/*=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D*/
/* Table : cargos_unidades                                      */
/*=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D*/
create table sal.cargos_unidades
(
    legajo               integer                        not null
          check (legajo >=3D 1),
    lugar_de_trabajo     smallint                       not null
          check (lugar_de_trabajo >=3D 1),
    funcion              integer                        not null
          check (funcion >=3D 1),
    unidad_organica      integer                        not null
          check (unidad_organica >=3D 1),
    estadia              char                           not null default =
'F'
          check (estadia in ('''F''
','V')),
    tipo_empleado        char                           not null default =
'E'
          check (tipo_empleado in ('''E''
','O')),
    banco                integer                        not null
          check (banco >=3D 1),
    cuenta_bancaria      varchar(40),
    observacion          varchar(40),
    fecha_insercion      timestamp                      not null default =
current timestamp,
    usuario_insercion    varchar(30)                    not null default =
current user,
    fecha_modificacion   timestamp,
    usuario_modificacion varchar(30),
    fecha_ips            date,
    fecha_ingreso        date                           not null,
    fecha_egreso         date,
    ubicacion            integer,
    sucursal             char(2),
    tipo_cuenta          char(2),
    codigo_numero_mjt    integer,
    turno                integer,
    primary key (legajo)
)
/


comment on column sal.cargos_unidades.legajo is 'Legajo'
/


comment on column sal.cargos_unidades.lugar_de_trabajo is 'Lugar de =
Trabajo'
/


comment on column sal.cargos_unidades.funcion is 'Funci=A2n'
/


comment on column sal.cargos_unidades.unidad_organica is 'Unidad Org =
nica'
/


comment on column sal.cargos_unidades.estadia is 'Estad=A1a'
/


comment on column sal.cargos_unidades.tipo_empleado is 'Tipo Empleado'
/


comment on column sal.cargos_unidades.banco is 'Banco'
/


comment on column sal.cargos_unidades.cuenta_bancaria is 'Cuenta =
Bancaria en la que se debe pagar el sueldo del empleado'
/


comment on column sal.cargos_unidades.observacion is 'Observaci=A2n'
/


comment on column sal.cargos_unidades.fecha_insercion is 'Fecha =
inserci=A2n'
/


comment on column sal.cargos_unidades.usuario_insercion is 'Usuario =
Inserci=A2n'
/


comment on column sal.cargos_unidades.fecha_modificacion is 'Fecha =
Modificaci=A2n'
/


comment on column sal.cargos_unidades.usuario_modificacion is 'Usuario =
Modificaci=A2n'
/


/*=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D*/
/* Table : cargos_unidades_auditoria                            */
/*=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D*/
create table sal.cargos_unidades_auditoria
(
    numero_interno       integer                        not null default =
autoincrement,
    legajo               integer                        not null
          check (legajo >=3D 1),
    lugar_de_trabajo     smallint                       not null
          check (lugar_de_trabajo >=3D 1),
    funcion              integer                        not null
          check (funcion >=3D 1),
    unidad_organica      integer                        not null
          check (unidad_organica >=3D 1),
    estadia              char                           not null default =
'F'
          check (estadia in ('''F''
','V')),
    tipo_empleado        char                           not null default =
'E'
          check (tipo_empleado in ('''E''
','O')),
    banco                integer
          check (banco is null or (banco >=3D 1 )),
    cuenta_bancaria      varchar(40),
    observacion          varchar(40),
    fecha_insercion      timestamp,
    usuario_insercion    varchar(30)                    not null,
    fecha_modificacion   timestamp,
    usuario_modificacion varchar(30),
    fecha_registro       timestamp                      not null default =
current timestamp,
    usuario_registro     varchar(30)                    not null,
    fecha_ips            date,
    fecha_ingreso        date,
    fecha_egreso         date,
    tipo                 char                           not null,
    ubicacion            integer,
    codigo_numero_mjt    integer,
    primary key (numero_interno)
)
/


comment on column sal.cargos_unidades_auditoria.numero_interno is =
'N=A3mero Interno'
/


comment on column sal.cargos_unidades_auditoria.legajo is 'Legajo'
/


comment on column sal.cargos_unidades_auditoria.lugar_de_trabajo is =
'Lugar de Trabajo'
/


comment on column sal.cargos_unidades_auditoria.funcion is 'Funci=A2n'
/


comment on column sal.cargos_unidades_auditoria.unidad_organica is =
'Unidad Org nica'
/


comment on column sal.cargos_unidades_auditoria.estadia is 'Estad=A1a'
/


comment on column sal.cargos_unidades_auditoria.tipo_empleado is 'Tipo =
Empleado'
/


comment on column sal.cargos_unidades_auditoria.banco is 'Banco'
/


comment on column sal.cargos_unidades_auditoria.cuenta_bancaria is =
'Cuenta Bancaria en la que se debe pagar el sueldo del empleado'
/


comment on column sal.cargos_unidades_auditoria.observacion is =
'Observaci=A2n'
/


comment on column sal.cargos_unidades_auditoria.fecha_insercion is =
'Fecha inserci=A2n'
/


comment on column sal.cargos_unidades_auditoria.usuario_insercion is =
'Usuario Inserci=A2n'
/


comment on column sal.cargos_unidades_auditoria.fecha_modificacion is =
'Fecha Modificaci=A2n'
/


comment on column sal.cargos_unidades_auditoria.usuario_modificacion is =
'Usuario Modificaci=A2n'
/


comment on column sal.cargos_unidades_auditoria.fecha_registro is 'Fecha =
Registro'
/


comment on column sal.cargos_unidades_auditoria.usuario_registro is =
'Usuario Registro'
/


/*=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D*/
/* Table : centros_de_costos                                    */
/*=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D*/
create table sal.centros_de_costos
(
    centro_de_costo      integer                        not null
          check (centro_de_costo >=3D 1),
    aclaracion           varchar(40)                    not null,
    primary key (centro_de_costo)
)
/


comment on column sal.centros_de_costos.centro_de_costo is =
'centro_de_costo'
/


comment on column sal.centros_de_costos.aclaracion is 'Aclaraci=A2n'
/


/*=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D*/
/* Table : ciudades                                             */
/*=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D*/
create table sal.ciudades
(
    ciudad               integer                        not null
          check (ciudad >=3D 1),
    nombre               varchar(40)                    not null,
    primary key (ciudad)
)
/


comment on column sal.ciudades.ciudad is 'Ciudad'
/


comment on column sal.ciudades.nombre is 'Nombre'
/


/*=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D*/
/* Table : costo_turno                                          */
/*=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D*/
create table sal.costo_turno
(
    turno                smallint                       not null
          check (turno >=3D 1),
    desde                time                           not null,
    hasta                time                           not null,
    cantidad_horas       numeric(6,2)                   not null,
    novedad              integer                        not null
          check (novedad between 1 and 9999),
    primary key (turno, desde, hasta)
)
/


comment on column sal.costo_turno.turno is 'Turno'
/


comment on column sal.costo_turno.desde is 'Desde'
/


comment on column sal.costo_turno.hasta is 'Hasta'
/


comment on column sal.costo_turno.cantidad_horas is 'Cantidad Horas'
/


comment on column sal.costo_turno.novedad is 'Novedad'
/


/*=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D*/
/* Table : cuentas                                              */
/*=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D*/
create table sal.cuentas
(
    codemp_060           varchar(4),
    cuenta               varchar(6)
)
/


/*=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D*/
/* Table : cursos_y_seminarios                                  */
/*=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D*/
create table sal.cursos_y_seminarios
(
    numero_interno       integer                        not null default =
autoincrement,
    legajo               integer                        not null
          check (legajo >=3D 1),
    fecha                date                           not null,
    nombre               varchar(40),
    institucion          varchar(40),
    carga_horaria        numeric(6,2),
    costo_empresa        numeric(13,2),
    descripcion          varchar(256),
    curso_interno        char                           not null default =
'S'
          check (curso_interno in ('''S''
','N')),
    primary key (numero_interno)
)
/


comment on column sal.cursos_y_seminarios.numero_interno is 'N=A3mero =
Interno'
/


comment on column sal.cursos_y_seminarios.legajo is 'Legajo'
/


comment on column sal.cursos_y_seminarios.fecha is 'Fecha'
/


comment on column sal.cursos_y_seminarios.nombre is 'Nombre'
/


comment on column sal.cursos_y_seminarios.institucion is 'Instituci=A2n'
/


comment on column sal.cursos_y_seminarios.carga_horaria is 'Carga =
Horaria'
/


comment on column sal.cursos_y_seminarios.costo_empresa is 'Costo =
Empresa'
/


comment on column sal.cursos_y_seminarios.descripcion is 'Descripci=A2n'
/


comment on column sal.cursos_y_seminarios.curso_interno is 'Curso =
Interno'
/


/*=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D*/
/* Table : datos_de_la_empresa                                  */
/*=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D*/
create table sal.datos_de_la_empresa
(
    solo_clave           integer                        not null default =
1
          check (solo_clave between 1 and 1),
    nombre               varchar(40),
    direccion            varchar(40),
    telefono             varchar(40),
    numero_patronal_ips  varchar(40),
    numero_patronal_mjt  varchar(40),
    sector_de_trabajo    varchar(40),
    logotipo_etiqueta    varchar(20),
    logotipo_grafico     long binary,
    fecha_de_proceso     date,
    ano_mes_de_proceso   char(6)
          check (ano_mes_de_proceso is null or (ano_mes_de_proceso =
between '199001' and '999912' )),
    ruc                  char(15),
    primary key (solo_clave)
)
/


comment on column sal.datos_de_la_empresa.solo_clave is 'Solo_Clave'
/


comment on column sal.datos_de_la_empresa.nombre is 'Nombre'
/


comment on column sal.datos_de_la_empresa.direccion is 'Direcci=A2n'
/


comment on column sal.datos_de_la_empresa.telefono is 'Tel=82fono'
/


comment on column sal.datos_de_la_empresa.numero_patronal_ips is =
'N=A3mero Patronal IPS'
/


comment on column sal.datos_de_la_empresa.numero_patronal_mjt is =
'N=A3mero Patronal BNT'
/


comment on column sal.datos_de_la_empresa.sector_de_trabajo is 'Sector =
de Trabajo'
/


comment on column sal.datos_de_la_empresa.logotipo_etiqueta is 'Logotipo =
Etiqueta'
/


comment on column sal.datos_de_la_empresa.logotipo_grafico is 'Logotipo =
Gr fico'
/


comment on column sal.datos_de_la_empresa.fecha_de_proceso is 'Fecha de =
Proceso'
/


comment on column sal.datos_de_la_empresa.ano_mes_de_proceso is 'A=A4o =
Mes de Proceso'
/


/*=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D*/
/* Table : descuentos_diferidos                                 */
/*=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D*/
create table sal.descuentos_diferidos
(
    numero               integer                        not null,
    tipo_descuento       integer                        not null,
    legajo               integer                        not null
          check (legajo >=3D 1),
    fecha                date,
    monto                numeric(13,2)                  not null,
    tasa_interes         numeric(5,2)                   not null,
    plazo                smallint,
    tipo_planilla        char                           not null
          check (tipo_planilla in ('''1''
','''2''
','''3''
','''4''
','''5''
','''6''
','''7''
','''8''
','9')),
    fecha_inicio_descuento date,
    fecha_insercion      timestamp                      not null,
    usuario_insercion    varchar(30)                    not null,
    primary key (numero)
)
/


comment on column sal.descuentos_diferidos.numero is 'N=A3mero'
/


comment on column sal.descuentos_diferidos.tipo_descuento is 'Tipo =
Descuento'
/


comment on column sal.descuentos_diferidos.legajo is 'Legajo'
/


comment on column sal.descuentos_diferidos.fecha is 'Fecha'
/


comment on column sal.descuentos_diferidos.monto is 'Monto'
/


comment on column sal.descuentos_diferidos.tasa_interes is 'Tasa =
Inter=82s'
/


comment on column sal.descuentos_diferidos.plazo is 'Plazo'
/


comment on column sal.descuentos_diferidos.tipo_planilla is 'Tipo =
Planilla'
/


comment on column sal.descuentos_diferidos.fecha_inicio_descuento is =
'Fecha Inicio Descuento'
/


comment on column sal.descuentos_diferidos.fecha_insercion is 'Fecha =
Inserci=A2n'
/


comment on column sal.descuentos_diferidos.usuario_insercion is 'Usuario =
Inserci=A2n'
/


/*=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D*/
/* Table : descuentos_diferidos_detalles                        */
/*=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D*/
create table sal.descuentos_diferidos_detalles
(
    numero               integer                        not null,
    cuota                smallint                       not null,
    monto_amortizacion   numeric(13,2)                  not null,
    monto_interes        numeric(13,2)                  not null,
    fecha_prevista_pago  date                           not null,
    fecha_calculada_pago date                           not null,
    fecha_real_de_pago   date,
    primary key (numero, cuota),
    check (check(fecha_prevista_pago <=3D fecha_calculada_pago and
    fecha_prevista_pago <=3D fecha_real_de_pago))
)
/


comment on column sal.descuentos_diferidos_detalles.numero is 'N=A3mero'
/


comment on column sal.descuentos_diferidos_detalles.cuota is 'Cuota'
/


comment on column sal.descuentos_diferidos_detalles.monto_amortizacion =
is 'Monto Amortizaci=A2n'
/


comment on column sal.descuentos_diferidos_detalles.monto_interes is =
'Monto Inter=82s'
/


comment on column sal.descuentos_diferidos_detalles.fecha_prevista_pago =
is 'Fecha Prevista Pago'
/


comment on column sal.descuentos_diferidos_detalles.fecha_calculada_pago =
is 'Fecha Calculada Pago'
/


comment on column sal.descuentos_diferidos_detalles.fecha_real_de_pago =
is 'Fecha Real de Pago'
/


/*=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D*/
/* Table : descuentos_diferidos_tipos                           */
/*=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D*/
create table sal.descuentos_diferidos_tipos
(
    tipo_descuento       integer                        not null,
    descripcion          varchar(40),
    plazo_maximo         smallint,
    tasa_de_interes      numeric(5,2)                   not null
          check (tasa_de_interes between 0 and 100),
    novedad_descuento    integer                        not null
          check (novedad_descuento between 1 and 9999),
    primary key (tipo_descuento)
)
/


comment on column sal.descuentos_diferidos_tipos.tipo_descuento is 'Tipo =
Descuento'
/


comment on column sal.descuentos_diferidos_tipos.descripcion is =
'Descripci=A2n'
/


comment on column sal.descuentos_diferidos_tipos.plazo_maximo is 'Plazo =
M ximo'
/


comment on column sal.descuentos_diferidos_tipos.tasa_de_interes is =
'Tasa de Inter=82s'
/


comment on column sal.descuentos_diferidos_tipos.novedad_descuento is =
'Novedad Descuento'
/


/*=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D*/
/* Table : descuentos_fijos                                     */
/*=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D*/
create table sal.descuentos_fijos
(
    novedad              integer                        not null
          check (novedad between 1 and 9999),
    planilla             char                           not null
          check (planilla in ('''1''
','''2''
','''3''
','''4''
','''5''
','''6''
','''7''
','''8''
','9')),
    novedad_afectada     integer                        not null
          check (novedad_afectada between 1 and 9999),
    primary key (novedad, planilla, novedad_afectada)
)
/


comment on column sal.descuentos_fijos.novedad is 'Novedad'
/


comment on column sal.descuentos_fijos.planilla is 'Planilla'
/


comment on column sal.descuentos_fijos.novedad_afectada is 'Novedad =
Afectada'
/


/*=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D*/
/* Table : dias_trabajados                                      */
/*=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D*/
create table sal.dias_trabajados
(
    mes                  tinyint                        not null,
    dias                 integer                        not null,
    primary key (mes)
)
/


/*=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D*/
/* Table : domicilios                                           */
/*=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D*/
create table sal.domicilios
(
    numero_interno       integer                        not null default =
autoincrement,
    legajo               integer                        not null
          check (legajo >=3D 1),
    calle                varchar(40),
    telefono             varchar(40),
    barrio               varchar(40),
    ciudad               integer                        not null
          check (ciudad >=3D 1),
    pais                 integer                        not null
          check (pais >=3D 1),
    croquis              long binary,
    tipo_domicilio       char                           not null default =
'O'
          check (tipo_domicilio in ('''P''
','''A''
','''F''
','O')),
    fecha_referencia     date                           not null,
    primary key (numero_interno)
)
/


comment on column sal.domicilios.numero_interno is 'N=A3mero Interno'
/


comment on column sal.domicilios.legajo is 'Legajo'
/


comment on column sal.domicilios.calle is 'Calle'
/


comment on column sal.domicilios.telefono is 'Tel=82fono'
/


comment on column sal.domicilios.barrio is 'Barrio'
/


comment on column sal.domicilios.ciudad is 'Ciudad'
/


comment on column sal.domicilios.pais is 'Pa=A1s'
/


comment on column sal.domicilios.croquis is 'Croquis'
/


comment on column sal.domicilios.tipo_domicilio is 'Tipo Domicilio'
/


comment on column sal.domicilios.fecha_referencia is 'Fecha Referencia'
/


/*=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D*/
/* Table : empleados                                            */
/*=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D*/
create table sal.empleados
(
    legajo               integer                        not null
          check (legajo >=3D 1),
    primer_nombre        varchar(20)                    not null,
    segundo_nombre       varchar(20),
    apellido_primero     varchar(20)                    not null,
    apellido_segundo     varchar(20),
    apellido_casada      varchar(20),
    profesion            integer                        not null
          check (profesion >=3D 1),
    telefono_celular     varchar(40),
    busca_persona        varchar(40),
    fecha_nacimiento     date,
    lugar_nacimiento     integer
          check (lugar_nacimiento is null or (lugar_nacimiento >=3D 1 =
)),
    estado_civil         char                            default 'S'
          check (estado_civil is null or ( estado_civil in ('''S''
','''C''
','''D''
','''V''
','O') )),
    fecha_casamiento     date,
    nacionalidad         integer
          check (nacionalidad is null or (nacionalidad >=3D 1 )),
    sexo                 char
          check (sexo is null or (sexo <> '' )),
    documento_identidad  varchar(20),
    numero_social        varchar(20),
    grupo_sanguineo      varchar(3)
          check (grupo_sanguineo is null or (@column <> '' )),
    religion             integer,
    observacion          long varchar,
    usuario_inserto      varchar(30)                    not null default =
current user,
    fecha_insercion      timestamp                      not null default =
current timestamp,
    numero_patronal      smallint,
    codigo_alterno       char(6),
    primary key (legajo)
)
/


comment on column sal.empleados.legajo is 'Legajo'
/


comment on column sal.empleados.primer_nombre is 'Primer Nombre'
/


comment on column sal.empleados.segundo_nombre is 'Segundo Nombre'
/


comment on column sal.empleados.apellido_primero is 'Primer Apellido'
/


comment on column sal.empleados.apellido_segundo is 'Segundo Apellido'
/


comment on column sal.empleados.apellido_casada is 'Apellido Casada'
/


comment on column sal.empleados.profesion is 'Profesi=A2n'
/


comment on column sal.empleados.telefono_celular is 'Tel=82fono Celular'
/


comment on column sal.empleados.busca_persona is 'Tel=82fono del =
Proveedor + C=A2digo'
/


comment on column sal.empleados.fecha_nacimiento is 'Fecha Nacimiento'
/


comment on column sal.empleados.lugar_nacimiento is 'Lugar Nacimiento'
/


comment on column sal.empleados.estado_civil is 'Estado Civil'
/


comment on column sal.empleados.fecha_casamiento is 'Fecha Casamiento'
/


comment on column sal.empleados.nacionalidad is 'Nacionalidad'
/


comment on column sal.empleados.sexo is 'Sexo'
/


comment on column sal.empleados.documento_identidad is 'Documento =
Identidad'
/


comment on column sal.empleados.numero_social is 'N=A3mero Social'
/


comment on column sal.empleados.grupo_sanguineo is 'Grupo Sanguineo'
/


comment on column sal.empleados.religion is 'Religi=A2n'
/


comment on column sal.empleados.observacion is 'Observaci=A2n'
/


comment on column sal.empleados.usuario_inserto is 'Usuario Inserci=A2n'
/


comment on column sal.empleados.fecha_insercion is 'Fecha Inserci=A2n'
/


comment on column sal.empleados.numero_patronal is 'Numero Patronal'
/


/*=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D*/
/* Table : empleados_por_turno                                  */
/*=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D*/
create table sal.empleados_por_turno
(
    legajo               integer                        not null
          check (legajo >=3D 1),
    fecha                date                           not null,
    turno                smallint                       not null
          check (turno >=3D 1),
    primary key (legajo, fecha, turno)
)
/


comment on column sal.empleados_por_turno.legajo is 'Legajo'
/


comment on column sal.empleados_por_turno.fecha is 'Fecha'
/


comment on column sal.empleados_por_turno.turno is 'Turno'
/


/*=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D*/
/* Table : experiencia_laboral                                  */
/*=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D*/
create table sal.experiencia_laboral
(
    numero_interno       integer                        not null default =
autoincrement,
    legajo               integer                        not null
          check (legajo >=3D 1),
    nombre_empresa       varchar(50),
    direccion            varchar(50),
    ciudad               integer                        not null
          check (ciudad >=3D 1),
    pais                 integer                        not null
          check (pais >=3D 1),
    telefono             varchar(40),
    fecha_ingreso        date,
    fecha_egreso         date,
    tarea_desempenada    varchar(40),
    ultimo_salario       numeric(13,2),
    motivo_egreso        varchar(40),
    observacion          varchar(80),
    primary key (numero_interno)
)
/


comment on column sal.experiencia_laboral.numero_interno is 'N=A3mero =
Interno'
/


comment on column sal.experiencia_laboral.legajo is 'Legajo'
/


comment on column sal.experiencia_laboral.nombre_empresa is 'Nombre =
Empresa'
/


comment on column sal.experiencia_laboral.direccion is 'Direcci=A2n'
/


comment on column sal.experiencia_laboral.ciudad is 'Ciudad'
/


comment on column sal.experiencia_laboral.pais is 'Pa=A1s'
/


comment on column sal.experiencia_laboral.telefono is 'Tel=82fono'
/


comment on column sal.experiencia_laboral.fecha_ingreso is 'Fecha =
Ingreso'
/


comment on column sal.experiencia_laboral.fecha_egreso is 'Fecha Egreso'
/


comment on column sal.experiencia_laboral.tarea_desempenada is 'Tarea =
Desempe=A4ada'
/


comment on column sal.experiencia_laboral.ultimo_salario is 'Ultimo =
Salario'
/


comment on column sal.experiencia_laboral.motivo_egreso is 'Motivo =
Egreso'
/


comment on column sal.experiencia_laboral.observacion is 'Observaci=A2n'
/


/*=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D*/
/* Table : feriados                                             */
/*=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D*/
create table sal.feriados
(
    fecha                date                           not null,
    motivo               varchar(40)                    not null,
    primary key (fecha)
)
/


comment on column sal.feriados.fecha is 'Fecha'
/


comment on column sal.feriados.motivo is 'Motivo'
/


/*=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D*/
/* Table : formacion_academica                                  */
/*=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D*/
create table sal.formacion_academica
(
    numero_interno       integer                        not null default =
autoincrement,
    legajo               integer                        not null
          check (legajo >=3D 1),
    tipo_estudio         char
          check (tipo_estudio is null or ( tipo_estudio in ('''B''
','''S''
','''U''
','''T''
','''P''
','O') )),
    fecha_ingreso        date,
    fecha_egreso         date,
    institucion          varchar(40),
    estudio              varchar(40),
    titulo_obtenido      varchar(40),
    carga_horaria_total  varchar(40),
    calificacion_general varchar(40),
    pais                 integer                        not null
          check (pais >=3D 1),
    observacion          varchar(40),
    costo_para_empresa   numeric(13,2),
    primary key (numero_interno)
)
/


comment on column sal.formacion_academica.numero_interno is 'N=A3mero =
Interno'
/


comment on column sal.formacion_academica.legajo is 'Legajo'
/


comment on column sal.formacion_academica.tipo_estudio is 'Tipo Estudio'
/


comment on column sal.formacion_academica.fecha_ingreso is 'Fecha =
Ingreso'
/


comment on column sal.formacion_academica.fecha_egreso is 'Fecha Egreso'
/


comment on column sal.formacion_academica.institucion is 'Instituci=A2n'
/


comment on column sal.formacion_academica.estudio is 'Nombre Estudio'
/


comment on column sal.formacion_academica.titulo_obtenido is 'T=A1tulo =
Obtenido'
/


comment on column sal.formacion_academica.carga_horaria_total is 'Carga =
Horaria Total'
/


comment on column sal.formacion_academica.calificacion_general is =
'Calificaci=A2n General'
/


comment on column sal.formacion_academica.pais is 'Pa=A1s'
/


comment on column sal.formacion_academica.observacion is 'Observaci=A2n'
/


comment on column sal.formacion_academica.costo_para_empresa is 'Costo =
para Empresa'
/


/*=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D*/
/* Table : funciones                                            */
/*=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D*/
create table sal.funciones
(
    funcion              integer                        not null
          check (funcion >=3D 1),
    descripcion          varchar(40)                    not null,
    tipo_funcion         char                           not null default =
'N'
          check (tipo_funcion in ('''J''
','N')),
    primary key (funcion)
)
/


comment on column sal.funciones.funcion is 'Funci=A2n'
/


comment on column sal.funciones.descripcion is 'Descripci=A2n'
/


comment on column sal.funciones.tipo_funcion is 'Tipo Funci=A2n'
/


/*=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D*/
/* Table : horarios_por_turno                                   */
/*=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D*/
create table sal.horarios_por_turno
(
    turno                smallint                       not null
          check (turno >=3D 1),
    dia                  char                           not null
          check (dia in ('''2''
','''3''
','''4''
','''5''
','''6''
','''7''
','1')),
    hora_entrada_1       time                           not null,
    hora_salida_1        time,
    hora_entrada_2       time,
    hora_salida_2        time                           not null,
    total_horas_a_trabajar numeric(6,2)                   not null,
    total_horas_a_considerar numeric(6,2)                   not null,
    llegada_tardia_desde time                           not null,
    primary key (turno, dia)
)
/


/*=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D*/
/* Table : horarios_por_turno_historico                         */
/*=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D*/
create table sal.horarios_por_turno_historico
(
    fecha                date                           not null,
    turno                smallint                       not null
          check (turno >=3D 1),
    dia                  char                           not null
          check (dia in ('''2''
','''3''
','''4''
','''5''
','''6''
','''7''
','1')),
    hora_entrada_1       time                           not null,
    hora_salida_1        time,
    hora_entrada_2       time,
    hora_salida_2        time                           not null,
    total_horas_a_trabajar numeric(6,2)                   not null,
    total_horas_a_considerar numeric(6,2)                   not null,
    llegada_tardia_desde time                           not null,
    primary key (fecha, turno, dia)
)
/


/*=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D*/
/* Table : horas_extras_autorizadas                             */
/*=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D*/
create table sal.horas_extras_autorizadas
(
    numero_interno       integer                        not null default =
autoincrement,
    legajo               integer                        not null
          check (legajo >=3D 1),
    desde                timestamp                      not null,
    hasta                timestamp                      not null,
    novedad              integer                        not null
          check (novedad between 1 and 9999),
    autorizo             integer                        not null
          check (autorizo >=3D 1),
    fecha_insercion      timestamp                      not null default =
current timestamp,
    usuario_insercion    varchar(30)                    not null default =
current user,
    observacion          varchar(256),
    primary key (numero_interno)
)
/


comment on column sal.horas_extras_autorizadas.numero_interno is =
'N=A3mero Interno'
/


comment on column sal.horas_extras_autorizadas.legajo is 'Legajo'
/


comment on column sal.horas_extras_autorizadas.desde is 'Desde'
/


comment on column sal.horas_extras_autorizadas.hasta is 'Hasta'
/


comment on column sal.horas_extras_autorizadas.novedad is 'Novedad'
/


comment on column sal.horas_extras_autorizadas.autorizo is 'Autoriz=A2'
/


comment on column sal.horas_extras_autorizadas.fecha_insercion is 'Fecha =
Inserci=A2n'
/


comment on column sal.horas_extras_autorizadas.usuario_insercion is =
'Usuario Inserci=A2n'
/


comment on column sal.horas_extras_autorizadas.observacion is =
'Observaci=A2n'
/


/*=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D*/
/* Table : idiomas                                              */
/*=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D*/
create table sal.idiomas
(
    idioma               smallint                       not null
          check (idioma >=3D 1),
    nombre               varchar(40)                    not null,
    primary key (idioma)
)
/


comment on column sal.idiomas.idioma is 'Idioma'
/


comment on column sal.idiomas.nombre is 'Nombre'
/


/*=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D*/
/* Table : idiomas_empleado                                     */
/*=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D*/
create table sal.idiomas_empleado
(
    legajo               integer                        not null
          check (legajo >=3D 1),
    idioma               smallint                       not null
          check (idioma >=3D 1),
    habla                char                           not null
          check (habla in ('''N''
','''R''
','''B''
','''M''
','''E''
','S')),
    lee                  char                           not null
          check (lee in ('''N''
','''R''
','''B''
','''M''
','''E''
','S')),
    escribe              char                           not null
          check (escribe in ('''N''
','''R''
','''B''
','''M''
','''E''
','S')),
    observacion          varchar(50),
    primary key (legajo, idioma)
)
/


comment on column sal.idiomas_empleado.legajo is 'Legajo'
/


comment on column sal.idiomas_empleado.idioma is 'Idioma'
/


comment on column sal.idiomas_empleado.habla is 'Habla'
/


comment on column sal.idiomas_empleado.lee is 'Lee'
/


comment on column sal.idiomas_empleado.escribe is 'Escribe'
/


comment on column sal.idiomas_empleado.observacion is 'Observaci=A2n'
/


/*=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D*/
/* Table : imagenes                                             */
/*=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D*/
create table sal.imagenes
(
    numero_interno       integer                        not null default =
autoincrement,
    legajo               integer                        not null
          check (legajo >=3D 1),
    tipo_imagen          char                           not null
          check (tipo_imagen in ('''1''
','''2''
','''3''
','9')),
    imagen               long binary,
    observacion          varchar(256),
    fecha                date                           not null default =
'today()',
    primary key (numero_interno)
)
/


comment on column sal.imagenes.numero_interno is 'N=A3mero Interno'
/


comment on column sal.imagenes.legajo is 'Legajo'
/


comment on column sal.imagenes.tipo_imagen is 'Tipo Imagen'
/


comment on column sal.imagenes.imagen is 'Imagen'
/


comment on column sal.imagenes.observacion is 'Observaci=A2n'
/


comment on column sal.imagenes.fecha is 'Fecha'
/


/*=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D*/
/* Table : inasistencias                                        */
/*=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D*/
create table sal.inasistencias
(
    numero_interno       integer                        not null default =
autoincrement,
    legajo               integer                        not null
          check (legajo >=3D 1),
    fecha                date                           not null,
    tipo_inasistencia    smallint                       not null
          check (tipo_inasistencia >=3D 1),
    observacion          varchar(256)                   not null,
    fecha_insercion      timestamp                      not null default =
current timestamp,
    usuario_insercion    varchar(30)                    not null default =
current user,
    primary key (numero_interno)
)
/


comment on column sal.inasistencias.numero_interno is 'N=A3mero Interno'
/


comment on column sal.inasistencias.legajo is 'Legajo'
/


comment on column sal.inasistencias.fecha is 'Fecha'
/


comment on column sal.inasistencias.tipo_inasistencia is 'Tipo =
Inasistencia'
/


comment on column sal.inasistencias.observacion is 'Observaci=A2n'
/


comment on column sal.inasistencias.fecha_insercion is 'Fecha =
Inserci=A2n'
/


comment on column sal.inasistencias.usuario_insercion is 'Usuario =
Inserci=A2n'
/


/*=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D*/
/* Table : liquidacion                                          */
/*=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D*/
create table sal.liquidacion
(
    legajo               integer                        not null
          check (legajo >=3D 1),
    primary key (legajo)
)
/


comment on column sal.liquidacion.legajo is 'Legajo'
/


/*=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D*/
/* Table : lugares_de_trabajo                                   */
/*=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D*/
create table sal.lugares_de_trabajo
(
    lugar_de_trabajo     smallint                       not null
          check (lugar_de_trabajo >=3D 1),
    nombre               varchar(40)                    not null,
    cuenta               char(20),
    sucursal             char(2),
    empresa              char(2),
    numero_patronal_mjt  varchar(40)                    not null,
    direccion            varchar(40)                    not null,
    sector_de_trabajo    varchar(60)                    not null,
    logotipo_etiqueta    varchar(20)                    not null,
    primary key (lugar_de_trabajo)
)
/


comment on column sal.lugares_de_trabajo.lugar_de_trabajo is 'Lugar de =
Trabajo'
/


comment on column sal.lugares_de_trabajo.nombre is 'Nombre'
/


/*=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D*/
/* Table : marcacion_asistencia                                 */
/*=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D*/
create table sal.marcacion_asistencia
(
    numero_interno       integer                        not null default =
autoincrement,
    legajo               integer                        not null
          check (legajo >=3D 1),
    fecha                timestamp                      not null,
    tipo_marcacion       char                           not null
          check (tipo_marcacion in ('''E''
','S')),
    observacion          varchar(40),
    forma_marcacion      char                           not null
          check (forma_marcacion in ('''A''
','M')),
    primary key (numero_interno)
)
/


comment on column sal.marcacion_asistencia.numero_interno is 'N=FAmero =
Interno'
/


comment on column sal.marcacion_asistencia.legajo is 'Legajo'
/


comment on column sal.marcacion_asistencia.fecha is 'Fecha'
/


comment on column sal.marcacion_asistencia.tipo_marcacion is 'Tipo =
Marcaci=F3n'
/


comment on column sal.marcacion_asistencia.observacion is =
'Observaci=F3n'
/


comment on column sal.marcacion_asistencia.forma_marcacion is 'Forma =
Marcaci=F3n'
/


/*=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D*/
/* Table : novedades                                            */
/*=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D*/
create table sal.novedades
(
    novedad              integer                        not null
          check (novedad between 1 and 9999),
    nombre               varchar(40)                    not null,
    ingreso              char                           not null default =
'S'
          check (ingreso in ('''S''
','N')),
    cargar_base          char                           not null default =
'S'
          check (cargar_base in ('''S''
','N')),
    cargar_cantidad      char                           not null default =
'S'
          check (cargar_cantidad in ('''S''
','N')),
    incluir_mjt          char                            default 'S'
          check (incluir_mjt is null or ( incluir_mjt in ('''S''
','N') )),
    incluir_recibo       char                            default 'S'
          check (incluir_recibo is null or ( incluir_recibo in ('''S''
','N') )),
    ips                  char                            default 'S'
          check (ips is null or ( ips in ('''S''
','N') )),
    primary key (novedad),
    check (check((cargar_base =3D 'S' and cargar_cantidad =3D 'N') or
    (cargar_base =3D 'N' and cargar_cantidad =3D 'S')))
)
/


comment on column sal.novedades.novedad is 'Novedad'
/


comment on column sal.novedades.nombre is 'Nombre'
/


comment on column sal.novedades.ingreso is 'Ingreso'
/


comment on column sal.novedades.cargar_base is 'Cargar Base'
/


comment on column sal.novedades.cargar_cantidad is 'Cargar Cantidad'
/


/*=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D*/
/* Table : novedades_factores                                   */
/*=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D*/
create table sal.novedades_factores
(
    novedad              integer                        not null
          check (novedad between 1 and 9999),
    planilla             char                           not null
          check (planilla in ('''1''
','''2''
','''3''
','''4''
','''5''
','''6''
','''7''
','''8''
','9')),
    factor_jornal        varchar(50)                    not null,
    factor_mensual       varchar(50)                    not null,
    factor_horista       varchar(50)                    not null,
    factor_destajo       varchar(50)                    not null,
    factor_otros         varchar(50)                    not null,
    factor_jornal_numero double,
    factor_mensual_numero double,
    factor_horista_numero double,
    factor_destajo_numero double,
    factor_otros_numero  double,
    aguinable            char                            default 'S'
          check (aguinable is null or ( aguinable in ('''S''
','N') )),
    primary key (novedad, planilla)
)
/


comment on column sal.novedades_factores.novedad is 'Novedad'
/


comment on column sal.novedades_factores.planilla is 'Planilla'
/


comment on column sal.novedades_factores.factor_jornal is 'Factor =
Jornal'
/


comment on column sal.novedades_factores.factor_mensual is 'Factor =
Mensual'
/


comment on column sal.novedades_factores.factor_horista is 'Factor =
Horista'
/


comment on column sal.novedades_factores.factor_destajo is 'Factor =
Destajo'
/


comment on column sal.novedades_factores.factor_otros is 'Factor Otros'
/


comment on column sal.novedades_factores.factor_jornal_numero is 'Factor =
Jornal N=A3mero'
/


comment on column sal.novedades_factores.factor_mensual_numero is =
'Factor Mensual N=A3mero'
/


comment on column sal.novedades_factores.factor_horista_numero is =
'Factor Horista N=A3mero'
/


comment on column sal.novedades_factores.factor_destajo_numero is =
'Factor Destajo N=A3mero'
/


comment on column sal.novedades_factores.factor_otros_numero is 'Factor =
Otro N=A3mero'
/


/*=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D*/
/* Table : novedades_modelos                                    */
/*=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D*/
create table sal.novedades_modelos
(
    numero_interno       integer                        not null default =
autoincrement,
    legajo               integer                        not null
          check (legajo >=3D 1),
    novedad              integer                        not null
          check (novedad between 1 and 9999),
    planilla             char                           not null
          check (planilla in ('''1''
','''2''
','''3''
','''4''
','''5''
','''6''
','''7''
','''8''
','9')),
    cantidad             numeric(6,2)                   not null,
    base                 numeric(13,2)
          check (base is null or (base >=3D 0 )),
    factor               double                         not null
          check (factor <> 0),
    primary key (numero_interno),
    unique (legajo, novedad, planilla)
)
/


comment on column sal.novedades_modelos.numero_interno is 'N=A3mero =
Interno'
/


comment on column sal.novedades_modelos.legajo is 'Legajo'
/


comment on column sal.novedades_modelos.novedad is 'Novedad'
/


comment on column sal.novedades_modelos.planilla is 'Planilla'
/


comment on column sal.novedades_modelos.cantidad is 'Cantidad'
/


comment on column sal.novedades_modelos.base is 'Base'
/


comment on column sal.novedades_modelos.factor is 'Factor'
/


/*=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D*/
/* Table : novedades_modelos_auditoria                          */
/*=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D*/
create table sal.novedades_modelos_auditoria
(
    numero_interno       integer                        not null default =
autoincrement,
    legajo               integer                        not null,
    novedad              integer                        not null,
    planilla             char                           not null,
    cantidad             numeric(6,2)                   not null,
    base                 numeric(13,2),
    factor               double                         not null,
    fecha_insercion      timestamp                       default current =
timestamp,
    usuario_insercion    varchar(60)                     default current =
user,
    primary key (numero_interno)
)
/


/*=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D*/
/* Table : novedades_proceso                                    */
/*=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D*/
create table sal.novedades_proceso
(
    numero_interno       integer                        not null default =
autoincrement,
    legajo               integer                        not null
          check (legajo >=3D 1),
    novedad              integer                        not null
          check (novedad between 1 and 9999),
    planilla             char                           not null
          check (planilla in ('''1''
','''2''
','''3''
','''4''
','''5''
','''6''
','''7''
','''8''
','9')),
    cantidad             numeric(6,2)                   not null,
    base                 numeric(13,2)
          check (base is null or (base >=3D 0 )),
    factor               double                         not null
          check (factor <> 0),
    numero_proceso       integer,
    primary key (numero_interno)
)
/


comment on column sal.novedades_proceso.numero_interno is 'N=A3mero =
Interno'
/


comment on column sal.novedades_proceso.legajo is 'Legajo'
/


comment on column sal.novedades_proceso.novedad is 'Novedad'
/


comment on column sal.novedades_proceso.planilla is 'Planilla'
/


comment on column sal.novedades_proceso.cantidad is 'Cantidad'
/


comment on column sal.novedades_proceso.base is 'Base'
/


comment on column sal.novedades_proceso.factor is 'Factor'
/


/*=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D*/
/* Table : novedades_proceso_audit                              */
/*=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D*/
create table sal.novedades_proceso_audit
(
    numero_interno       integer                        not null default =
autoincrement,
    legajo               integer                        not null
          check (legajo >=3D 1),
    novedad              integer                        not null
          check (novedad between 1 and 9999),
    planilla             char                           not null
          check (planilla in ('''1''
','''2''
','''3''
','''4''
','''5''
','''6''
','''7''
','''8''
','9')),
    cantidad             decimal(10,4)                  not null,
    base                 numeric(13,2)
          check (base is null or (base >=3D 0 )),
    factor               double                         not null
          check (factor <> 0),
    numero_proceso       integer,
    fecha                timestamp                       default current =
timestamp,
    usuario              varchar(60)                     default current =
user,
    primary key (numero_interno)
)
/


/*=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D*/
/* Table : novedades_proceso_copy                               */
/*=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D*/
create table sal.novedades_proceso_copy
(
    numero_interno       integer                        not null,
    legajo               integer                        not null,
    novedad              integer                        not null,
    planilla             char                           not null,
    cantidad             numeric(6,2)                   not null,
    base                 numeric(13,2),
    factor               double                         not null,
    numero_proceso       integer,
    primary key (legajo, novedad, planilla, numero_proceso)
)
/


/*=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D*/
/* Table : novedades_proceso_historico                          */
/*=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D*/
create table sal.novedades_proceso_historico
(
    numero_interno       integer                        not null default =
autoincrement,
    fecha_proceso        date                           not null,
    legajo               integer                        not null
          check (legajo >=3D 1),
    novedad              integer                        not null
          check (novedad between 1 and 9999),
    planilla             char                           not null
          check (planilla in ('''1''
','''2''
','''3''
','''4''
','''5''
','''6''
','''7''
','''8''
','9')),
    cantidad             numeric(6,2)                   not null,
    base                 numeric(13,2)
          check (base is null or (base >=3D 0 )),
    anio                 smallint
          check (anio is null or (anio between 1900 and 2500 )),
    mes                  tinyint
          check (mes is null or (mes between 1 and 12 )),
    factor               double                         not null
          check (factor <> 0),
    numero_proceso       integer,
    primary key (numero_interno)
)
/


comment on column sal.novedades_proceso_historico.numero_interno is =
'N=FAmero Interno'
/


comment on column sal.novedades_proceso_historico.fecha_proceso is =
'Fecha Proceso'
/


comment on column sal.novedades_proceso_historico.legajo is 'Legajo'
/


comment on column sal.novedades_proceso_historico.novedad is 'Novedad'
/


comment on column sal.novedades_proceso_historico.planilla is 'Planilla'
/


comment on column sal.novedades_proceso_historico.cantidad is 'Cantidad'
/


comment on column sal.novedades_proceso_historico.base is 'Base'
/


comment on column sal.novedades_proceso_historico.anio is 'A=F1o'
/


comment on column sal.novedades_proceso_historico.mes is 'Mes'
/


comment on column sal.novedades_proceso_historico.factor is 'Factor'
/


/*=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D*/
/* Table : novedades_proceso_historico_copy                     */
/*=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D*/
create table sal.novedades_proceso_historico_copy
(
    numero_interno       integer                        not null,
    fecha_proceso        date                           not null,
    legajo               integer                        not null,
    novedad              integer                        not null,
    planilla             char                           not null,
    cantidad             numeric(6,2)                   not null,
    base                 numeric(13,2),
    anio                 smallint,
    mes                  tinyint,
    factor               double                         not null,
    numero_proceso       integer,
    primary key (numero_interno)
)
/


/*=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D*/
/* Table : numeros_patronales                                   */
/*=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D*/
create table sal.numeros_patronales
(
    numero_patronal      char(10),
    aclaracion           char(20)                       not null,
    numero               smallint                       not null,
    primary key (numero)
)
/


comment on column sal.numeros_patronales.numero_patronal is 'Numero =
Patronal'
/


comment on column sal.numeros_patronales.aclaracion is 'Aclaraci=A2n'
/


/*=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D*/
/* Table : numeros_patronales_mjt                               */
/*=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D*/
create table sal.numeros_patronales_mjt
(
    codigo               integer                        not null,
    descripcion          varchar(40)                    not null,
    numero_mjt           varchar(40)                    not null,
    direccion            varchar(60),
    localidad            varchar(30),
    departamento         varchar(30),
    primary key (codigo)
)
/


/*=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D*/
/* Table : otras_informaciones                                  */
/*=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D*/
create table sal.otras_informaciones
(
    numero_interno       integer                        not null default =
autoincrement,
    legajo               integer                        not null
          check (legajo >=3D 1),
    tipo_informacion     char
          check (tipo_informacion is null or ( tipo_informacion in =
('''D''
','''P''
','''E''
','O') )),
    aclaracion           varchar(256)                   not null,
    primary key (numero_interno)
)
/


comment on column sal.otras_informaciones.numero_interno is 'N=A3mero =
Interno'
/


comment on column sal.otras_informaciones.legajo is 'Legajo'
/


comment on column sal.otras_informaciones.tipo_informacion is 'Tipo =
Informaci=A2n'
/


comment on column sal.otras_informaciones.aclaracion is 'Aclaraci=A2n'
/


/*=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D*/
/* Table : otros_conocimientos                                  */
/*=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D*/
create table sal.otros_conocimientos
(
    numero_interno       integer                        not null default =
autoincrement,
    legajo               integer                        not null
          check (legajo >=3D 1),
    conocimiento         varchar(40),
    observacion          varchar(50),
    primary key (numero_interno)
)
/


comment on column sal.otros_conocimientos.numero_interno is 'N=A3mero =
Interno'
/


comment on column sal.otros_conocimientos.legajo is 'Legajo'
/


comment on column sal.otros_conocimientos.conocimiento is 'Conocimiento'
/


comment on column sal.otros_conocimientos.observacion is 'Observaci=A2n'
/


/*=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D*/
/* Table : otros_documentos_empleado                            */
/*=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D*/
create table sal.otros_documentos_empleado
(
    numero_interno       integer                        not null default =
autoincrement,
    legajo               integer                        not null
          check (legajo >=3D 1),
    tipo                 integer                        not null,
    identificador        varchar(20),
    observacion          varchar(50),
    primary key (numero_interno)
)
/


comment on column sal.otros_documentos_empleado.numero_interno is =
'N=A3mero Interno'
/


comment on column sal.otros_documentos_empleado.legajo is 'Legajo'
/


comment on column sal.otros_documentos_empleado.tipo is 'Tipo'
/


comment on column sal.otros_documentos_empleado.identificador is =
'Identificador'
/


comment on column sal.otros_documentos_empleado.observacion is =
'Observaci=A2n'
/


/*=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D*/
/* Table : paises                                               */
/*=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D*/
create table sal.paises
(
    pais                 integer                        not null
          check (pais >=3D 1),
    nombre               varchar(40)                    not null,
    nacionalidad         varchar(40)                    not null,
    primary key (pais)
)
/


comment on column sal.paises.pais is 'Pa=A1s'
/


comment on column sal.paises.nombre is 'Nombre'
/


comment on column sal.paises.nacionalidad is 'Nacionalidad'
/


/*=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D*/
/* Table : parametros_asistencia                                */
/*=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D*/
create table sal.parametros_asistencia
(
    solo_clave           smallint                       not null
          check (solo_clave between 1 and 1),
    lapso_entre_marcaciones numeric(2)                     not null,
    imprimir_auditoria   char                           not null default =
'S'
          check (imprimir_auditoria in ('''S''
','N')),
    tiempo_conexion      smallint,
    monto_multa          numeric(19,4),
    primary key (solo_clave)
)
/


comment on column sal.parametros_asistencia.solo_clave is 'Solo Clave'
/


comment on column sal.parametros_asistencia.lapso_entre_marcaciones is =
'Lapso Entre Marcaciones'
/


comment on column sal.parametros_asistencia.imprimir_auditoria is =
'Imprimir Auditor=EDa'
/


/*=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D*/
/* Table : parametros_codigos                                   */
/*=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D*/
create table sal.parametros_codigos
(
    solo_clave           smallint                       not null
          check (solo_clave between 1 and 1),
    salario_minimo       numeric(13,2),
    codigo_novedad_ips   integer
          check (codigo_novedad_ips is null or (codigo_novedad_ips =
between 1 and 9999 )),
    codigo_novedad_bf    integer
          check (codigo_novedad_bf is null or (codigo_novedad_bf between =
1 and 9999 )),
    maxima_edad_bf       tinyint
          check (maxima_edad_bf is null or (maxima_edad_bf between 1 and =
150 )),
    maximo_salario_bf    numeric(13,2),
    codigo_novedad_hn    integer
          check (codigo_novedad_hn is null or (codigo_novedad_hn between =
1 and 9999 )),
    codigo_novedad_he30  integer
          check (codigo_novedad_he30 is null or (codigo_novedad_he30 =
between 1 and 9999 )),
    codigo_novedad_he50  integer
          check (codigo_novedad_he50 is null or (codigo_novedad_he50 =
between 1 and 9999 )),
    codigo_novedad_he100 integer
          check (codigo_novedad_he100 is null or (codigo_novedad_he100 =
between 1 and 9999 )),
    codigo_novedad_vacaciones integer
          check (codigo_novedad_vacaciones is null or =
(codigo_novedad_vacaciones between 1 and 9999 )),
    codigo_novedad_dt    integer
          check (codigo_novedad_dt is null or (codigo_novedad_dt between =
1 and 9999 )),
    porcentaje_patronal_ips numeric(6,2),
    porcentaje_obrero_ips numeric(6,2),
    codigo_novedad_ap    integer
          check (codigo_novedad_ap is null or (codigo_novedad_ap between =
1 and 9999 )),
    redondeo             numeric(2),
    mayor_de_edad        tinyint
          check (mayor_de_edad is null or (mayor_de_edad between 1 and =
150 )),
    adelanto_aguinaldo   integer
          check (adelanto_aguinaldo is null or (adelanto_aguinaldo =
between 1 and 9999 )),
    codigo_novedad_indemnizacion integer
          check (codigo_novedad_indemnizacion is null or =
(codigo_novedad_indemnizacion between 1 and 9999 )),
    codigo_novedad_reposo integer
          check (codigo_novedad_reposo is null or (codigo_novedad_reposo =
between 1 and 9999 )),
    nro_de_cuenta        varchar(11),
    cod_de_empresa       varchar(2),
    supervisor           varchar(40),
    gerente              varchar(40),
    cargo                varchar(30),
    primary key (solo_clave)
)
/


comment on column sal.parametros_codigos.solo_clave is 'Solo Clave'
/


comment on column sal.parametros_codigos.salario_minimo is 'Salario =
Minimo'
/


comment on column sal.parametros_codigos.codigo_novedad_ips is 'IPS'
/


comment on column sal.parametros_codigos.codigo_novedad_bf is =
'Bonificaci=A2n Familiar'
/


comment on column sal.parametros_codigos.maxima_edad_bf is 'Maxima edad =
BF'
/


comment on column sal.parametros_codigos.maximo_salario_bf is 'Maximo =
Salario BF'
/


comment on column sal.parametros_codigos.codigo_novedad_hn is 'Horas =
Normales'
/


comment on column sal.parametros_codigos.codigo_novedad_he30 is 'Horas =
Extras 30 %'
/


comment on column sal.parametros_codigos.codigo_novedad_he50 is 'Horas =
Extras 50 %'
/


comment on column sal.parametros_codigos.codigo_novedad_he100 is 'Horas =
Extras 100 %'
/


comment on column sal.parametros_codigos.codigo_novedad_vacaciones is =
'C=A2digo Novedad Vacaciones'
/


comment on column sal.parametros_codigos.codigo_novedad_dt is 'D=A1as =
Trabajados'
/


comment on column sal.parametros_codigos.porcentaje_patronal_ips is =
'Porcentaje Patronal IPS'
/


comment on column sal.parametros_codigos.porcentaje_obrero_ips is =
'Porcentaje Obrero IPS'
/


comment on column sal.parametros_codigos.codigo_novedad_ap is 'Aguinaldo =
Proporcional'
/


comment on column sal.parametros_codigos.redondeo is 'Redondeo'
/


comment on column sal.parametros_codigos.mayor_de_edad is 'Mayor de =
Edad'
/


/*=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D*/
/* Table : parientes                                            */
/*=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D*/
create table sal.parientes
(
    numero_interno       integer                        not null default =
autoincrement,
    legajo               integer                        not null
          check (legajo >=3D 1),
    apellido             varchar(20)                    not null,
    nombre               varchar(20)                    not null,
    fecha_nacimiento     date                           not null,
    sexo                 char                           not null
          check (sexo in ('''M''
','F')),
    parentezco           char                           not null default =
'H'
          check (parentezco in ('''P''
','''M''
','''C''
','''H''
','O')),
    estado_civil         char                           not null default =
'S'
          check (estado_civil in ('''S''
','''C''
','''D''
','''V''
','O')),
    dependiente          char                           not null default =
'S'
          check (dependiente in ('''S''
','N')),
    profesion            integer                        not null
          check (profesion >=3D 1),
    actividad            varchar(40),
    nacionalidad         integer                        not null
          check (nacionalidad >=3D 1),
    observacion          varchar(50),
    primary key (numero_interno)
)
/


comment on column sal.parientes.numero_interno is 'N=A3mero interno'
/


comment on column sal.parientes.legajo is 'Legajo'
/


comment on column sal.parientes.apellido is 'Apellido'
/


comment on column sal.parientes.nombre is 'Nombre'
/


comment on column sal.parientes.fecha_nacimiento is 'Fecha Nacimiento'
/


comment on column sal.parientes.sexo is 'Sexo'
/


comment on column sal.parientes.parentezco is 'Parentezco'
/


comment on column sal.parientes.estado_civil is 'Estado Civil'
/


comment on column sal.parientes.dependiente is 'Dependiente'
/


comment on column sal.parientes.profesion is 'Profesi=A2n'
/


comment on column sal.parientes.actividad is 'Actividad'
/


comment on column sal.parientes.nacionalidad is 'Nacionalidad'
/


comment on column sal.parientes.observacion is 'Observaci=A2n'
/


/*=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D*/
/* Table : pbcatcol                                             */
/*=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D*/
create table sal.pbcatcol
(
    pbc_tnam             char(129)                      not null,
    pbc_tid              integer,
    pbc_ownr             char(129)                      not null,
    pbc_cnam             char(129)                      not null,
    pbc_cid              smallint,
    pbc_labl             char(254),
    pbc_lpos             smallint,
    pbc_hdr              char(254),
    pbc_hpos             smallint,
    pbc_jtfy             smallint,
    pbc_mask             char(31),
    pbc_case             smallint,
    pbc_hght             smallint,
    pbc_wdth             smallint,
    pbc_ptrn             char(31),
    pbc_bmap             char,
    pbc_init             char(254),
    pbc_cmnt             char(254),
    pbc_edit             char(31),
    pbc_tag              char(254),
    primary key (pbc_tnam, pbc_ownr, pbc_cnam)
)
/


/*=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D*/
/* Table : pbcatedt                                             */
/*=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D*/
create table sal.pbcatedt
(
    pbe_name             char(30)                       not null,
    pbe_edit             char(254),
    pbe_type             smallint,
    pbe_cntr             integer,
    pbe_seqn             smallint                       not null,
    pbe_flag             integer,
    pbe_work             char(32),
    primary key (pbe_name, pbe_seqn)
)
/


/*=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D*/
/* Table : pbcatfmt                                             */
/*=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D*/
create table sal.pbcatfmt
(
    pbf_name             char(30)                       not null,
    pbf_frmt             char(254),
    pbf_type             smallint,
    pbf_cntr             integer,
    primary key (pbf_name)
)
/


/*=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D*/
/* Table : pbcattbl                                             */
/*=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D*/
create table sal.pbcattbl
(
    pbt_tnam             char(129)                      not null,
    pbt_tid              integer,
    pbt_ownr             char(129)                      not null,
    pbd_fhgt             smallint,
    pbd_fwgt             smallint,
    pbd_fitl             char,
    pbd_funl             char,
    pbd_fchr             smallint,
    pbd_fptc             smallint,
    pbd_ffce             char(18),
    pbh_fhgt             smallint,
    pbh_fwgt             smallint,
    pbh_fitl             char,
    pbh_funl             char,
    pbh_fchr             smallint,
    pbh_fptc             smallint,
    pbh_ffce             char(18),
    pbl_fhgt             smallint,
    pbl_fwgt             smallint,
    pbl_fitl             char,
    pbl_funl             char,
    pbl_fchr             smallint,
    pbl_fptc             smallint,
    pbl_ffce             char(18),
    pbt_cmnt             char(254),
    primary key (pbt_tnam, pbt_ownr)
)
/


/*=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D*/
/* Table : pbcatvld                                             */
/*=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D*/
create table sal.pbcatvld
(
    pbv_name             char(30)                       not null,
    pbv_vald             char(254),
    pbv_type             smallint,
    pbv_cntr             integer,
    pbv_msg              char(254),
    primary key (pbv_name)
)
/


/*=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D*/
/* Table : permisos                                             */
/*=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D*/
create table sal.permisos
(
    numero_interno       integer                        not null default =
autoincrement,
    legajo               integer                        not null
          check (legajo >=3D 1),
    desde                timestamp                      not null,
    hasta                timestamp                      not null,
    observacion          varchar(40),
    autorizo             integer                        not null
          check (autorizo >=3D 1),
    fecha_insercion      timestamp                      not null default =
current timestamp,
    usuario_insercion    varchar(30)                    not null default =
current user,
    primary key (numero_interno)
)
/


comment on column sal.permisos.numero_interno is 'N=A3mero Interno'
/


comment on column sal.permisos.legajo is 'Legajo'
/


comment on column sal.permisos.desde is 'Desde'
/


comment on column sal.permisos.hasta is 'Hasta'
/


comment on column sal.permisos.observacion is 'Observaci=A2n'
/


comment on column sal.permisos.autorizo is 'Autoriz=A2'
/


comment on column sal.permisos.fecha_insercion is 'Fecha Inserci=A2n'
/


comment on column sal.permisos.usuario_insercion is 'Usuario =
Inserci=A2n'
/


/*=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D*/
/* Table : politica_vacacional_empleado                         */
/*=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D*/
create table sal.politica_vacacional_empleado
(
    legajo               integer                        not null
          check (legajo >=3D 1),
    politica             smallint                       not null
          check (politica >=3D 1),
    desde_fecha          date                           not null,
    observacion          varchar(256),
    fecha_insercion      timestamp                      not null default =
current timestamp,
    usuario_insercion    varchar(30)                    not null default =
current user,
    primary key (legajo, politica)
)
/


comment on column sal.politica_vacacional_empleado.legajo is 'Legajo'
/


comment on column sal.politica_vacacional_empleado.politica is =
'Pol=A1tica'
/


comment on column sal.politica_vacacional_empleado.desde_fecha is 'Desde =
Fecha'
/


comment on column sal.politica_vacacional_empleado.observacion is =
'Observaci=A2n'
/


comment on column sal.politica_vacacional_empleado.fecha_insercion is =
'Fecha Inserci=A2n'
/


comment on column sal.politica_vacacional_empleado.usuario_insercion is =
'Usuario Inserci=A2n'
/


/*=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D*/
/* Table : politicas_vacacionales                               */
/*=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D*/
create table sal.politicas_vacacionales
(
    politica             smallint                       not null
          check (politica >=3D 1),
    nombre               varchar(40),
    primary key (politica)
)
/


comment on column sal.politicas_vacacionales.politica is 'Pol=A1tica'
/


comment on column sal.politicas_vacacionales.nombre is 'Nombre'
/


/*=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D*/
/* Table : politicas_vacionales_detalles                        */
/*=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D*/
create table sal.politicas_vacionales_detalles
(
    politica             smallint                       not null
          check (politica >=3D 1),
    anos                 numeric(2)                     not null
          check (anos between 1 and 99),
    dias_de_vacaciones   tinyint,
    primary key (politica, anos)
)
/


comment on column sal.politicas_vacionales_detalles.politica is =
'Pol=EDtica'
/


comment on column sal.politicas_vacionales_detalles.anos is 'A=F1os'
/


comment on column sal.politicas_vacionales_detalles.dias_de_vacaciones =
is 'D=EDas de Vacaciones'
/


/*=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D*/
/* Table : problemas                                            */
/*=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D*/
create table sal.problemas
(
    empleado             integer,
    nombre               varchar(40),
    apellido             varchar(40)
)
/


/*=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D*/
/* Table : proceso_fechas                                       */
/*=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D*/
create table sal.proceso_fechas
(
    solo_clave           smallint                       not null
          check (solo_clave between 1 and 9),
    fecha_proceso        date,
    anio                 smallint
          check (anio is null or (anio between 1900 and 2500 )),
    mes                  tinyint
          check (mes is null or (mes between 1 and 12 )),
    descripcion          varchar(40),
    primary key (solo_clave)
)
/


comment on column sal.proceso_fechas.solo_clave is 'Solo Clave'
/


comment on column sal.proceso_fechas.fecha_proceso is 'Fecha Proceso'
/


comment on column sal.proceso_fechas.anio is 'A=A4o'
/


comment on column sal.proceso_fechas.mes is 'Mes'
/


/*=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D*/
/* Table : profesiones                                          */
/*=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D*/
create table sal.profesiones
(
    profesion            integer                        not null
          check (profesion >=3D 1),
    nombre               varchar(40),
    primary key (profesion)
)
/


comment on column sal.profesiones.profesion is 'Profesi=A2n'
/


comment on column sal.profesiones.nombre is 'Nombre'
/


/*=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D*/
/* Table : reconocimientos_y_premios                            */
/*=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D*/
create table sal.reconocimientos_y_premios
(
    numero_interno       integer                        not null default =
autoincrement,
    legajo               integer                        not null
          check (legajo >=3D 1),
    fecha                date                           not null,
    motivo               varchar(40),
    otorgado_por         varchar(40),
    premio               varchar(40),
    observacion          varchar(256),
    fecha_insercion      timestamp                      not null default =
current timestamp,
    usuario_insercion    varchar(30)                    not null default =
current user,
    primary key (numero_interno)
)
/


comment on column sal.reconocimientos_y_premios.numero_interno is =
'N=A3mero Interno'
/


comment on column sal.reconocimientos_y_premios.legajo is 'Legajo'
/


comment on column sal.reconocimientos_y_premios.fecha is 'Fecha'
/


comment on column sal.reconocimientos_y_premios.motivo is 'Motivo'
/


comment on column sal.reconocimientos_y_premios.otorgado_por is =
'Otorgado Por'
/


comment on column sal.reconocimientos_y_premios.premio is 'Premio'
/


comment on column sal.reconocimientos_y_premios.observacion is =
'Observaci=A2n'
/


comment on column sal.reconocimientos_y_premios.fecha_insercion is =
'Fecha Inserci=A2n'
/


comment on column sal.reconocimientos_y_premios.usuario_insercion is =
'Usuario Inserci=A2n'
/


/*=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D*/
/* Table : referencias                                          */
/*=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D*/
create table sal.referencias
(
    numero_interno       integer                        not null default =
autoincrement,
    legajo               integer                        not null
          check (legajo >=3D 1),
    referenciante        varchar(40),
    nombre_referencia    char                           not null default =
'H'
          check (nombre_referencia in ('''P''
','''M''
','''C''
','''H''
','O')),
    direccion            varchar(50),
    telefono             varchar(40),
    resultado            varchar(80),
    primary key (numero_interno)
)
/


comment on column sal.referencias.numero_interno is 'N=A3mero Interno'
/


comment on column sal.referencias.legajo is 'Legajo'
/


comment on column sal.referencias.referenciante is 'Referenciante'
/


comment on column sal.referencias.nombre_referencia is 'Parentezco'
/


comment on column sal.referencias.direccion is 'Direcci=A2n'
/


comment on column sal.referencias.telefono is 'Tel=82fono'
/


comment on column sal.referencias.resultado is 'Resultado'
/


/*=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D*/
/* Table : relaciones_otros_empleados                           */
/*=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D*/
create table sal.relaciones_otros_empleados
(
    legajo               integer                        not null
          check (legajo >=3D 1),
    legajo_referencia    integer                        not null
          check (legajo_referencia >=3D 1),
    observacion          varchar(50),
    primary key (legajo, legajo_referencia)
)
/


comment on column sal.relaciones_otros_empleados.legajo is 'Legajo'
/


comment on column sal.relaciones_otros_empleados.legajo_referencia is =
'Legajo Relaci=A2n'
/


comment on column sal.relaciones_otros_empleados.observacion is =
'Observaci=A2n'
/


/*=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D*/
/* Table : religiones                                           */
/*=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D*/
create table sal.religiones
(
    religion             integer                        not null,
    nombre               varchar(40)                    not null,
    primary key (religion)
)
/


comment on column sal.religiones.religion is 'Religi=A2n'
/


comment on column sal.religiones.nombre is 'Nombre'
/


/*=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D*/
/* Table : sanciones                                            */
/*=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D*/
create table sal.sanciones
(
    numero_interno       integer                        not null default =
autoincrement,
    legajo               integer                        not null
          check (legajo >=3D 1),
    fecha                date                           not null,
    motivo               varchar(40),
    suspencion_desde     timestamp,
    suspencion_hasta     timestamp,
    observacion          varchar(256),
    fecha_insercion      timestamp                      not null default =
current timestamp,
    usuario_insercion    varchar(30)                    not null default =
current user,
    primary key (numero_interno)
)
/


comment on column sal.sanciones.numero_interno is 'N=A3mero Interno'
/


comment on column sal.sanciones.legajo is 'Legajo'
/


comment on column sal.sanciones.fecha is 'Fecha'
/


comment on column sal.sanciones.motivo is 'Motivo'
/


comment on column sal.sanciones.suspencion_desde is 'Suspenci=A2n Desde'
/


comment on column sal.sanciones.suspencion_hasta is 'Suspenci=A2n Hasta'
/


comment on column sal.sanciones.observacion is 'Observaci=A2n'
/


comment on column sal.sanciones.fecha_insercion is 'Fecha Inserci=A2n'
/


comment on column sal.sanciones.usuario_insercion is 'Usuario =
Inserci=A2n'
/


/*=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D*/
/* Table : sueldos                                              */
/*=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D*/
create table sal.sueldos
(
    legajo               integer                        not null
          check (legajo >=3D 1),
    planilla             char                           not null
          check (planilla in ('''1''
','''2''
','''3''
','''4''
','''5''
','''6''
','''7''
','''8''
','9')),
    fecha_vigencia       date                           not null,
    tipo_sueldo          char                           not null
          check (tipo_sueldo in ('''M''
','''J''
','''H''
','''D''
','O')),
    salario              numeric(13,2)                  not null,
    monto_adelanto       numeric(13,2),
    usuario_insercion    varchar(30)                    not null default =
current user,
    fecha_insercion      timestamp,
    usuario_modificacion varchar(30)                     default current =
user,
    fecha_modificacion   timestamp,
    primary key (legajo, planilla)
)
/


comment on column sal.sueldos.legajo is 'Legajo'
/


comment on column sal.sueldos.planilla is 'Planilla'
/


comment on column sal.sueldos.fecha_vigencia is 'Fecha Vigencia'
/


comment on column sal.sueldos.tipo_sueldo is 'Tipo Sueldo'
/


comment on column sal.sueldos.salario is 'Monto'
/


comment on column sal.sueldos.monto_adelanto is 'Monto Adelanto'
/


comment on column sal.sueldos.usuario_insercion is 'Usuario Inserci=A2n'
/


comment on column sal.sueldos.fecha_insercion is 'Fecha Inserci=A2n'
/


comment on column sal.sueldos.usuario_modificacion is 'Usuario =
Modificaci=A2n'
/


comment on column sal.sueldos.fecha_modificacion is 'Fecha =
Modificaci=A2n'
/


/*=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D*/
/* Table : sueldos_auditoria                                    */
/*=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D*/
create table sal.sueldos_auditoria
(
    numero_interno       integer                        not null default =
autoincrement,
    legajo               integer                        not null
          check (legajo >=3D 1),
    planilla             char                           not null
          check (planilla in ('''1''
','''2''
','''3''
','''4''
','''5''
','''6''
','''7''
','''8''
','9')),
    fecha_vigencia       date                           not null,
    tipo_sueldo          char                           not null
          check (tipo_sueldo in ('''M''
','''J''
','''H''
','''D''
','O')),
    salario              numeric(13,2),
    monto_adelanto       numeric(13,2),
    usuario_insercion    varchar(30)                    not null,
    fecha_insercion      timestamp,
    usuario_modificacion varchar(30),
    fecha_modificacion   timestamp,
    fecha_registro       timestamp                       default current =
timestamp,
    usuario_registro     varchar(30),
    primary key (numero_interno)
)
/


comment on column sal.sueldos_auditoria.numero_interno is =
'numero_interno'
/


comment on column sal.sueldos_auditoria.legajo is 'Legajo'
/


comment on column sal.sueldos_auditoria.planilla is 'Planilla'
/


comment on column sal.sueldos_auditoria.fecha_vigencia is 'Fecha =
Vigencia'
/


comment on column sal.sueldos_auditoria.tipo_sueldo is 'Tipo Sueldo'
/


comment on column sal.sueldos_auditoria.salario is 'Monto'
/


comment on column sal.sueldos_auditoria.monto_adelanto is 'Monto =
Adelanto'
/


comment on column sal.sueldos_auditoria.usuario_insercion is 'Usuario =
Inserci=A2n'
/


comment on column sal.sueldos_auditoria.fecha_insercion is 'Fecha =
Inserci=A2n'
/


comment on column sal.sueldos_auditoria.usuario_modificacion is 'Usuario =
Modificaci=A2n'
/


comment on column sal.sueldos_auditoria.fecha_modificacion is 'Fecha =
Modificaci=A2n'
/


comment on column sal.sueldos_auditoria.fecha_registro is 'Fecha =
Registro'
/


comment on column sal.sueldos_auditoria.usuario_registro is 'Usuario =
Registro'
/


/*=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D*/
/* Table : tareas_realizadas_empresa                            */
/*=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D*/
create table sal.tareas_realizadas_empresa
(
    numero_interno       integer                        not null default =
autoincrement,
    legajo               integer                        not null
          check (legajo >=3D 1),
    fecha                date                           not null,
    observacion          varchar(256)                   not null,
    fecha_insercion      timestamp                      not null default =
current timestamp,
    usuario_insercion    varchar(30)                    not null default =
current user,
    primary key (numero_interno)
)
/


comment on column sal.tareas_realizadas_empresa.numero_interno is =
'N=A3mero Interno'
/


comment on column sal.tareas_realizadas_empresa.legajo is 'Legajo'
/


comment on column sal.tareas_realizadas_empresa.fecha is 'Fecha'
/


comment on column sal.tareas_realizadas_empresa.observacion is =
'Observaci=A2n'
/


comment on column sal.tareas_realizadas_empresa.fecha_insercion is =
'Fecha Inserci=A2n'
/


comment on column sal.tareas_realizadas_empresa.usuario_insercion is =
'Usuario Inserci=A2n'
/


/*=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D*/
/* Table : tipos_accidentes                                     */
/*=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D*/
create table sal.tipos_accidentes
(
    tipo_accidente       smallint                       not null
          check (tipo_accidente >=3D 1),
    nombre               varchar(40)                    not null,
    primary key (tipo_accidente)
)
/


comment on column sal.tipos_accidentes.tipo_accidente is 'Tipo =
Accidente'
/


comment on column sal.tipos_accidentes.nombre is 'Nombre'
/


/*=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D*/
/* Table : tipos_de_documentos                                  */
/*=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D*/
create table sal.tipos_de_documentos
(
    tipo                 integer                        not null,
    nombre               varchar(40)                    not null,
    primary key (tipo)
)
/


comment on column sal.tipos_de_documentos.tipo is 'Tipo'
/


comment on column sal.tipos_de_documentos.nombre is 'Nombre'
/


/*=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D*/
/* Table : tipos_inasistencias                                  */
/*=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D*/
create table sal.tipos_inasistencias
(
    tipo                 smallint                       not null
          check (tipo >=3D 1),
    nombre               varchar(40)                    not null,
    primary key (tipo)
)
/


comment on column sal.tipos_inasistencias.tipo is 'Tipo'
/


comment on column sal.tipos_inasistencias.nombre is 'Nombre'
/


/*=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D*/
/* Table : turnos                                               */
/*=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D*/
create table sal.turnos
(
    turno                smallint                       not null
          check (turno >=3D 1),
    nombre               varchar(40),
    siguiente_turno      smallint
          check (siguiente_turno is null or (siguiente_turno >=3D 1 )),
    observacion          varchar(256),
    primary key (turno)
)
/


comment on column sal.turnos.turno is 'Turno'
/


comment on column sal.turnos.nombre is 'Nombre'
/


comment on column sal.turnos.siguiente_turno is 'Siguiente Turno'
/


comment on column sal.turnos.observacion is 'Observaci=F3n'
/


/*=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D*/
/* Table : ubicaciones                                          */
/*=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D*/
create table sal.ubicaciones
(
    ubicacion            integer                        not null,
    descripcion          varchar(40)                    not null,
    primary key (ubicacion)
)
/


/*=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D*/
/* Table : unidades_organicas                                   */
/*=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D*/
create table sal.unidades_organicas
(
    unidad_organica      integer                        not null
          check (unidad_organica >=3D 1),
    nombre               varchar(40),
    centro_de_costo      integer                        not null
          check (centro_de_costo >=3D 1),
    primary key (unidad_organica)
)
/


comment on column sal.unidades_organicas.unidad_organica is 'Unidad Org =
nica'
/


comment on column sal.unidades_organicas.nombre is 'Nombre'
/


comment on column sal.unidades_organicas.centro_de_costo is 'Centro de =
Costo'
/


/*=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D*/
/* Table : vacaciones                                           */
/*=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D*/
create table sal.vacaciones
(
    numero_interno       integer                        not null default =
autoincrement,
    legajo               integer                        not null
          check (legajo >=3D 1),
    periodo_adquisitivo_desde date                           not null,
    periodo_adquisitivo_hasta date                           not null,
    vacacion_desde       date                           not null,
    vacacion_hasta       date                           not null,
    dias_tomados         numeric(6,2)                   not null,
    observacion          varchar(256),
    fecha_insercion      timestamp                      not null default =
current timestamp,
    usuario_insercion    varchar(30)                    not null default =
current user,
    fecha_reintegracion  date,
    primary key (numero_interno)
)
/


comment on column sal.vacaciones.numero_interno is 'N=A3mero Interno'
/


comment on column sal.vacaciones.legajo is 'Legajo'
/


comment on column sal.vacaciones.periodo_adquisitivo_desde is 'Per=A1odo =
Adquisitivo Desde'
/


comment on column sal.vacaciones.periodo_adquisitivo_hasta is 'Per=A1odo =
Adquisitivo Hasta'
/


comment on column sal.vacaciones.vacacion_desde is 'Vacaci=A2n Desde'
/


comment on column sal.vacaciones.vacacion_hasta is 'Vacaci=A2n Hasta'
/


comment on column sal.vacaciones.dias_tomados is 'Dias Tomados'
/


comment on column sal.vacaciones.observacion is 'Observaci=A2n'
/


comment on column sal.vacaciones.fecha_insercion is 'Fecha Inserci=A2n'
/


comment on column sal.vacaciones.usuario_insercion is 'Usuario =
Inserci=A2n'
/


alter table sal.accidentes_laborales
   add primary key (numero_interno)
/


alter table sal.actividades_ips
   add primary key (anio, mes, legajo, empresa)
/


alter table sal.bancos
   add primary key (banco)
/


alter table sal.cargos_unidades
   add primary key (legajo)
/


alter table sal.cargos_unidades_auditoria
   add primary key (numero_interno)
/


alter table sal.centros_de_costos
   add primary key (centro_de_costo)
/


alter table sal.ciudades
   add primary key (ciudad)
/


alter table sal.costo_turno
   add primary key (turno, desde, hasta)
/


alter table sal.cursos_y_seminarios
   add primary key (numero_interno)
/


alter table sal.datos_de_la_empresa
   add primary key (solo_clave)
/


alter table sal.descuentos_diferidos
   add primary key (numero)
/


alter table sal.descuentos_diferidos_detalles
   add primary key (numero, cuota)
/


alter table sal.descuentos_diferidos_tipos
   add primary key (tipo_descuento)
/


alter table sal.descuentos_fijos
   add primary key (novedad, planilla, novedad_afectada)
/


alter table sal.dias_trabajados
   add primary key (mes)
/


alter table sal.domicilios
   add primary key (numero_interno)
/


alter table sal.empleados
   add primary key (legajo)
/


alter table sal.empleados_por_turno
   add primary key (legajo, fecha, turno)
/


alter table sal.experiencia_laboral
   add primary key (numero_interno)
/


alter table sal.feriados
   add primary key (fecha)
/


alter table sal.formacion_academica
   add primary key (numero_interno)
/


alter table sal.funciones
   add primary key (funcion)
/


alter table sal.horarios_por_turno
   add primary key (turno, dia)
/


alter table sal.horarios_por_turno_historico
   add primary key (fecha, turno, dia)
/


alter table sal.horas_extras_autorizadas
   add primary key (numero_interno)
/


alter table sal.idiomas
   add primary key (idioma)
/


alter table sal.idiomas_empleado
   add primary key (legajo, idioma)
/


alter table sal.imagenes
   add primary key (numero_interno)
/


alter table sal.inasistencias
   add primary key (numero_interno)
/


alter table sal.liquidacion
   add primary key (legajo)
/


alter table sal.lugares_de_trabajo
   add primary key (lugar_de_trabajo)
/


alter table sal.marcacion_asistencia
   add primary key (numero_interno)
/


alter table sal.novedades
   add primary key (novedad)
/


alter table sal.novedades_factores
   add primary key (novedad, planilla)
/


alter table sal.novedades_modelos
   add primary key (numero_interno)
/


alter table sal.novedades_modelos_auditoria
   add primary key (numero_interno)
/


alter table sal.novedades_proceso
   add primary key (numero_interno)
/


alter table sal.novedades_proceso_audit
   add primary key (numero_interno)
/


alter table sal.novedades_proceso_copy
   add primary key (legajo, novedad, planilla, numero_proceso)
/


alter table sal.novedades_proceso_historico
   add primary key (numero_interno)
/


alter table sal.novedades_proceso_historico_copy
   add primary key (numero_interno)
/


alter table sal.numeros_patronales
   add primary key (numero)
/


alter table sal.numeros_patronales_mjt
   add primary key (codigo)
/


alter table sal.otras_informaciones
   add primary key (numero_interno)
/


alter table sal.otros_conocimientos
   add primary key (numero_interno)
/


alter table sal.otros_documentos_empleado
   add primary key (numero_interno)
/


alter table sal.paises
   add primary key (pais)
/


alter table sal.parametros_asistencia
   add primary key (solo_clave)
/


alter table sal.parametros_codigos
   add primary key (solo_clave)
/


alter table sal.parientes
   add primary key (numero_interno)
/


alter table sal.pbcatcol
   add primary key (pbc_tnam, pbc_ownr, pbc_cnam)
/


alter table sal.pbcatedt
   add primary key (pbe_name, pbe_seqn)
/


alter table sal.pbcatfmt
   add primary key (pbf_name)
/


alter table sal.pbcattbl
   add primary key (pbt_tnam, pbt_ownr)
/


alter table sal.pbcatvld
   add primary key (pbv_name)
/


alter table sal.permisos
   add primary key (numero_interno)
/


alter table sal.politica_vacacional_empleado
   add primary key (legajo, politica)
/


alter table sal.politicas_vacacionales
   add primary key (politica)
/


alter table sal.politicas_vacionales_detalles
   add primary key (politica, anos)
/


alter table sal.proceso_fechas
   add primary key (solo_clave)
/


alter table sal.profesiones
   add primary key (profesion)
/


alter table sal.reconocimientos_y_premios
   add primary key (numero_interno)
/


alter table sal.referencias
   add primary key (numero_interno)
/


alter table sal.relaciones_otros_empleados
   add primary key (legajo, legajo_referencia)
/


alter table sal.religiones
   add primary key (religion)
/


alter table sal.sanciones
   add primary key (numero_interno)
/


alter table sal.sueldos
   add primary key (legajo, planilla)
/


alter table sal.sueldos_auditoria
   add primary key (numero_interno)
/


alter table sal.tareas_realizadas_empresa
   add primary key (numero_interno)
/


alter table sal.tipos_accidentes
   add primary key (tipo_accidente)
/


alter table sal.tipos_de_documentos
   add primary key (tipo)
/


alter table sal.tipos_inasistencias
   add primary key (tipo)
/


alter table sal.turnos
   add primary key (turno)
/


alter table sal.ubicaciones
   add primary key (ubicacion)
/


alter table sal.unidades_organicas
   add primary key (unidad_organica)
/


alter table sal.vacaciones
   add primary key (numero_interno)
/


alter table sal.accidentes_laborales
   add foreign key fk_accident_ref_7223_tipos_ac (tipo_accidente)
      references sal.tipos_accidentes (tipo_accidente)
      on update restrict
      on delete restrict
/


alter table sal.accidentes_laborales
   add foreign key fk_accident_ref_7230_empleado (legajo)
      references sal.empleados (legajo)
      on update restrict
      on delete restrict
/


alter table sal.actividades_ips
   add foreign key fk_activida_ref_18360_empleado (legajo)
      references sal.empleados (legajo)
      on update restrict
      on delete restrict
/


alter table sal.cargos_unidades
   add foreign key fk_cargos_u_bancos_su_bancos (banco)
      references sal.bancos (banco)
      on update restrict
      on delete restrict
/


alter table sal.cargos_unidades
   add foreign key fk_cargos_u_empleados_empleado (legajo)
      references sal.empleados (legajo)
      on update restrict
      on delete cascade
/


alter table sal.cargos_unidades
   add foreign key fk_cargos_u_funciones_funcione (funcion)
      references sal.funciones (funcion)
      on update restrict
      on delete restrict
/


alter table sal.cargos_unidades
   add foreign key fk_cargos_u_ref_6109_lugares_ (lugar_de_trabajo)
      references sal.lugares_de_trabajo (lugar_de_trabajo)
      on update restrict
      on delete restrict
/


alter table sal.cargos_unidades
   add foreign key fk_cargos_u_unidades__unidades (unidad_organica)
      references sal.unidades_organicas (unidad_organica)
      on update restrict
      on delete restrict
/


alter table sal.costo_turno
   add foreign key fk_costo_tu_ref_8012_novedade (novedad)
      references sal.novedades (novedad)
      on update restrict
      on delete restrict
/


alter table sal.cursos_y_seminarios
   add foreign key fk_cursos_y_ref_7139_empleado (legajo)
      references sal.empleados (legajo)
      on update restrict
      on delete restrict
/


alter table sal.descuentos_diferidos_detalles
   add foreign key fk_descuent_descuento_descuent (numero)
      references sal.descuentos_diferidos (numero)
      on update restrict
      on delete restrict
/


alter table sal.descuentos_diferidos
   add foreign key fk_descuent_descuento_descuent (tipo_descuento)
      references sal.descuentos_diferidos_tipos (tipo_descuento)
      on update restrict
      on delete restrict
/


alter table sal.descuentos_diferidos
   add foreign key fk_descuent_empleados_empleado (legajo)
      references sal.empleados (legajo)
      on update restrict
      on delete restrict
/


alter table sal.descuentos_diferidos_tipos
   add foreign key fk_descuent_ref_6492_novedade (novedad_descuento)
      references sal.novedades (novedad)
      on update restrict
      on delete restrict
/


alter table sal.descuentos_fijos
   add foreign key fk_descuent_ref_6506_novedade (novedad)
      references sal.novedades_factores (novedad)
      on update restrict
      on delete restrict
/


alter table sal.descuentos_fijos
   add foreign key fk_descuent_ref_6511_novedade (novedad_afectada, =
planilla)
      references sal.novedades_factores (novedad, planilla)
      on update restrict
      on delete restrict
/


alter table sal.domicilios
   add foreign key fk_domicili_ref_6104_empleado (legajo)
      references sal.empleados (legajo)
      on update restrict
      on delete restrict
/


alter table sal.domicilios
   add foreign key fk_domicili_ref_7036_ciudades (ciudad)
      references sal.ciudades (ciudad)
      on update restrict
      on delete restrict
/


alter table sal.domicilios
   add foreign key fk_domicili_ref_7039_paises (pais)
      references sal.paises (pais)
      on update restrict
      on delete restrict
/


alter table sal.empleados
   add foreign key fk_empleado_ciudades__ciudades (lugar_nacimiento)
      references sal.ciudades (ciudad)
      on update restrict
      on delete restrict
/


alter table sal.empleados
   add foreign key fk_empleado_paises_em_paises (nacionalidad)
      references sal.paises (pais)
      on update restrict
      on delete restrict
/


alter table sal.empleados
   add foreign key fk_empleado_profesion_profesio (profesion)
      references sal.profesiones (profesion)
      on update restrict
      on delete restrict
/


alter table sal.empleados
   add foreign key fk_empleado_ref_7113_religion (religion)
      references sal.religiones (religion)
      on update restrict
      on delete restrict
/


alter table sal.empleados_por_turno
   add foreign key fk_empleado_ref_7949_turnos (turno)
      references sal.turnos (turno)
      on update restrict
      on delete restrict
/


alter table sal.empleados_por_turno
   add foreign key fk_empleado_ref_7952_empleado (legajo)
      references sal.empleados (legajo)
      on update restrict
      on delete restrict
/


alter table sal.experiencia_laboral
   add foreign key fk_experien_ref_7031_empleado (legajo)
      references sal.empleados (legajo)
      on update restrict
      on delete restrict
/


alter table sal.experiencia_laboral
   add foreign key fk_experien_ref_7042_paises (pais)
      references sal.paises (pais)
      on update restrict
      on delete restrict
/


alter table sal.experiencia_laboral
   add foreign key fk_experien_ref_7046_ciudades (ciudad)
      references sal.ciudades (ciudad)
      on update restrict
      on delete restrict
/


alter table sal.formacion_academica
   add foreign key fk_formacio_ref_7052_empleado (legajo)
      references sal.empleados (legajo)
      on update restrict
      on delete restrict
/


alter table sal.formacion_academica
   add foreign key fk_formacio_ref_7055_paises (pais)
      references sal.paises (pais)
      on update restrict
      on delete restrict
/


alter table sal.horarios_por_turno
   add foreign key fk_horarios_ref_23335_turnos (turno)
      references sal.turnos (turno)
      on update restrict
      on delete restrict
/


alter table sal.horas_extras_autorizadas
   add foreign key fk_horas_ex_ref_7965_empleado (legajo)
      references sal.empleados (legajo)
      on update restrict
      on delete restrict
/


alter table sal.horas_extras_autorizadas
   add foreign key fk_horas_ex_ref_7968_empleado (autorizo)
      references sal.empleados (legajo)
      on update restrict
      on delete restrict
/


alter table sal.horas_extras_autorizadas
   add foreign key fk_horas_ex_ref_8000_novedade (novedad)
      references sal.novedades (novedad)
      on update restrict
      on delete restrict
/


alter table sal.idiomas_empleado
   add foreign key fk_idiomas__ref_6098_idiomas (idioma)
      references sal.idiomas (idioma)
      on update restrict
      on delete restrict
/


alter table sal.idiomas_empleado
   add foreign key fk_idiomas__ref_6101_empleado (legajo)
      references sal.empleados (legajo)
      on update restrict
      on delete restrict
/


alter table sal.imagenes
   add foreign key fk_imagenes_ref_10494_empleado (legajo)
      references sal.empleados (legajo)
      on update restrict
      on delete restrict
/


alter table sal.inasistencias
   add foreign key fk_inasiste_ref_7183_empleado (legajo)
      references sal.empleados (legajo)
      on update restrict
      on delete restrict
/


alter table sal.inasistencias
   add foreign key fk_inasiste_ref_7227_tipos_in (tipo_inasistencia)
      references sal.tipos_inasistencias (tipo)
      on update restrict
      on delete restrict
/


alter table sal.novedades_proceso
   add foreign key fk_novedade_ref_6066_sueldos (legajo)
      references sal.sueldos (legajo)
      on update restrict
      on delete restrict
/


alter table sal.novedades_modelos
   add foreign key fk_novedade_ref_6071_sueldos (legajo)
      references sal.sueldos (legajo)
      on update restrict
      on delete restrict
/


alter table sal.novedades_modelos
   add foreign key fk_novedade_ref_6473_novedade (novedad, planilla, =
planilla)
      references sal.novedades_factores (novedad, planilla, planilla)
      on update restrict
      on delete restrict
/


alter table sal.novedades_proceso
   add foreign key fk_novedade_ref_6478_novedade (novedad, planilla, =
planilla)
      references sal.novedades_factores (novedad, planilla, planilla)
      on update restrict
      on delete restrict
/


alter table sal.novedades_factores
   add foreign key fk_novedade_ref_7997_novedade (novedad)
      references sal.novedades (novedad)
      on update restrict
      on delete cascade
/


alter table sal.otras_informaciones
   add foreign key fk_otras_in_ref_7128_empleado (legajo)
      references sal.empleados (legajo)
      on update restrict
      on delete restrict
/


alter table sal.otros_conocimientos
   add foreign key fk_otros_co_ref_7063_empleado (legajo)
      references sal.empleados (legajo)
      on update restrict
      on delete restrict
/


alter table sal.otros_documentos_empleado
   add foreign key fk_otros_do_ref_6534_tipos_de (tipo)
      references sal.tipos_de_documentos (tipo)
      on update restrict
      on delete restrict
/


alter table sal.otros_documentos_empleado
   add foreign key fk_otros_do_ref_6540_empleado (legajo)
      references sal.empleados (legajo)
      on update restrict
      on delete restrict
/


alter table sal.parientes
   add foreign key fk_pariente_empleados_empleado (legajo)
      references sal.empleados (legajo)
      on update restrict
      on delete cascade
/


alter table sal.parientes
   add foreign key fk_pariente_paises_pa_paises (nacionalidad)
      references sal.paises (pais)
      on update restrict
      on delete restrict
/


alter table sal.parientes
   add foreign key fk_pariente_ref_7117_profesio (profesion)
      references sal.profesiones (profesion)
      on update restrict
      on delete restrict
/


alter table sal.permisos
   add foreign key fk_permisos_ref_7898_empleado (legajo)
      references sal.empleados (legajo)
      on update restrict
      on delete restrict
/


alter table sal.permisos
   add foreign key fk_permisos_ref_7901_empleado (autorizo)
      references sal.empleados (legajo)
      on update restrict
      on delete restrict
/


alter table sal.politicas_vacionales_detalles
   add foreign key fk_politica_ref_5595_politica (politica)
      references sal.politicas_vacacionales (politica)
      on update restrict
      on delete restrict
/


alter table sal.politica_vacacional_empleado
   add foreign key fk_politica_ref_7197_empleado (legajo)
      references sal.empleados (legajo)
      on update restrict
      on delete restrict
/


alter table sal.politica_vacacional_empleado
   add foreign key fk_politica_ref_7200_politica (politica)
      references sal.politicas_vacacionales (politica)
      on update restrict
      on delete restrict
/


alter table sal.reconocimientos_y_premios
   add foreign key fk_reconoci_ref_7155_empleado (legajo)
      references sal.empleados (legajo)
      on update restrict
      on delete restrict
/


alter table sal.referencias
   add foreign key fk_referenc_ref_7076_empleado (legajo)
      references sal.empleados (legajo)
      on update restrict
      on delete restrict
/


alter table sal.relaciones_otros_empleados
   add foreign key fk_relacion_ref_7096_empleado (legajo)
      references sal.empleados (legajo)
      on update restrict
      on delete cascade
/


alter table sal.relaciones_otros_empleados
   add foreign key fk_relacion_ref_7099_empleado (legajo_referencia)
      references sal.empleados (legajo)
      on update restrict
      on delete cascade
/


alter table sal.sanciones
   add foreign key fk_sancione_ref_7165_empleado (legajo)
      references sal.empleados (legajo)
      on update restrict
      on delete restrict
/


alter table sal.sueldos
   add foreign key fk_sueldos_ref_6032_empleado (legajo)
      references sal.empleados (legajo)
      on update restrict
      on delete restrict
/


alter table sal.tareas_realizadas_empresa
   add foreign key fk_tareas_r_ref_7241_empleado (legajo)
      references sal.empleados (legajo)
      on update restrict
      on delete restrict
/


alter table sal.turnos
   add foreign key fk_turnos_ref_7939_turnos (siguiente_turno)
      references sal.turnos (turno)
      on update restrict
      on delete restrict
/


alter table sal.cargos_unidades
   add foreign key fk_ubicaciones (ubicacion)
      references sal.ubicaciones (ubicacion)
      on update restrict
      on delete restrict
/


alter table sal.unidades_organicas
   add foreign key fk_unidades_centros_d_centros_ (centro_de_costo)
      references sal.centros_de_costos (centro_de_costo)
      on update restrict
      on delete restrict
/


alter table sal.vacaciones
   add foreign key fk_vacacion_ref_7211_empleado (legajo)
      references sal.empleados (legajo)
      on update restrict
      on delete restrict
/


alter table sal.cargos_unidades
   add foreign key numeros_patronales_mjt (codigo_numero_mjt)
      references sal.numeros_patronales_mjt (codigo)
      on update restrict
      on delete restrict
/









____________________________________________________
Sandrigo Lezcano Jara             Asunci=F3n, Paraguay
usando______: Ret Hat 7.2 (Enigma) - Kernel 2.4.7-10=20
              PostgreSQL 7.1.3 - psqlODBC 7.02.00.01
migrando____: Sybase 6.5   al   PostgreSQL=20
front end___: PowerBuilder 6.5        =20
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3DICQ:143590717=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
____________________________________________________

------=_NextPart_000_0048_01C32137.96D70E20
Content-Type: text/html;
	charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META content=3D"text/html; charset=3Diso-8859-1" =
http-equiv=3DContent-Type>
<META content=3D"MSHTML 5.00.2614.3500" name=3DGENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=3D#ffffff>
<DIV><FONT face=3DCourier size=3D2>usando <FONT size=3D1>Reverse =
Engineering Database=20
...&nbsp;&nbsp; del </FONT></FONT></DIV>
<DIV><FONT face=3DCourier size=3D2><FONT size=3D1>PowerDisigner 7.0 al =
ODBC del=20
PostgreSQL</FONT></FONT></DIV>
<DIV><FONT face=3DCourier size=3D2>creo que los tipos de datos tienen =
que ser=20
modificados manualmente</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=3DCourier size=3D2>me da un =
archivo:&nbsp;&nbsp;&nbsp;&nbsp;=20
crebas.sql</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=3DCourier=20
size=3D2>/*=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D*/<BR>/*=20
Database name:&nbsp;=20
MODL_1&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&=
nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&n=
bsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nb=
sp;&nbsp;&nbsp;=20
*/<BR>/* DBMS name:&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Sybase AS Anywhere=20
7&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; =

*/<BR>/* Created on:&nbsp;&nbsp;&nbsp;&nbsp; 23/05/03 02:09:21=20
PM&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp=
;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nb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laborales<BR>(<BR>&nbsp;&nbsp;&nbsp;=20
numero_interno&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=20
integer&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; =

not null default autoincrement,<BR>&nbsp;&nbsp;&nbsp;=20
legajo&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&=
nbsp;&nbsp;&nbsp;=20
integer&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; =

not null<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; check =
(legajo=20
&gt;=3D 1),<BR>&nbsp;&nbsp;&nbsp;=20
fecha&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&n=
bsp;&nbsp;&nbsp;&nbsp;=20
date&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nb=
sp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbs=
p;&nbsp;&nbsp;=20
not null,<BR>&nbsp;&nbsp;&nbsp;=20
tipo_accidente&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=20
smallint&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp=
;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=20
not null<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; check =

(tipo_accidente &gt;=3D 1),<BR>&nbsp;&nbsp;&nbsp;=20
descripcion&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=20
varchar(256),<BR>&nbsp;&nbsp;&nbsp;=20
fecha_insercion&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=20
timestamp&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbs=
p;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=20
not null default current timestamp,<BR>&nbsp;&nbsp;&nbsp;=20
usuario_insercion&nbsp;&nbsp;&nbsp;=20
varchar(30)&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&n=
bsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=20
not null default current user,<BR>&nbsp;&nbsp;&nbsp; primary key=20
(numero_interno)<BR>)<BR>/</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=3DCourier size=3D2><BR>comment on column=20
sal.accidentes_laborales.numero_interno is 'N=A3mero =
Interno'<BR>/</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=3DCourier size=3D2><BR>comment on column=20
sal.accidentes_laborales.legajo is 'Legajo'<BR>/</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=3DCourier size=3D2><BR>comment on column=20
sal.accidentes_laborales.fecha is 'Fecha'<BR>/</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=3DCourier size=3D2><BR>comment on column=20
sal.accidentes_laborales.tipo_accidente is 'Tipo =
Accidente'<BR>/</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=3DCourier size=3D2><BR>comment on column=20
sal.accidentes_laborales.descripcion is =
'Descripci=A2n'<BR>/</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=3DCourier size=3D2><BR>comment on column=20
sal.accidentes_laborales.fecha_insercion is 'Fecha =
Inserci=A2n'<BR>/</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=3DCourier size=3D2><BR>comment on column=20
sal.accidentes_laborales.usuario_insercion is 'Usuario=20
Inserci=A2n'<BR>/</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=3DCourier=20
size=3D2><BR>/*=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D*/<BR>/*=20
Table :=20
actividades_ips&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbs=
p;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp=
;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=
&nbsp;&nbsp;&nbsp;=20
*/<BR>/*=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D*/<BR>create=20
table sal.actividades_ips<BR>(<BR>&nbsp;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
&gt;=3D 1),<BR>&nbsp;&nbsp;&nbsp;=20
actividad&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbs=
p;=20
char(2)&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; =

not null,<BR>&nbsp;&nbsp;&nbsp;=20
empresa&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=
&nbsp;&nbsp;=20
integer&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; =

not null,<BR>&nbsp;&nbsp;&nbsp; primary key (anio, mes, legajo,=20
empresa)<BR>)<BR>/</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=3DCourier size=3D2><BR>comment on column =
sal.actividades_ips.anio is=20
'A=A4o'<BR>/</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=3DCourier size=3D2><BR>comment on column =
sal.actividades_ips.mes is=20
'Mes'<BR>/</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=3DCourier size=3D2><BR>comment on column =
sal.actividades_ips.legajo=20
is 'Legajo'<BR>/</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=3DCourier size=3D2><BR>comment on column=20
sal.actividades_ips.actividad is 'Actividad'<BR>/</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=3DCourier=20
size=3D2><BR>/*=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D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
nombre&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&=
nbsp;&nbsp;&nbsp;=20
varchar(40)&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&n=
bsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=20
not null,<BR>&nbsp;&nbsp;&nbsp; primary key =
(banco)<BR>)<BR>/</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=3DCourier size=3D2><BR>comment on column =
sal.bancos.banco is=20
'Banco'<BR>/</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=3DCourier size=3D2><BR>comment on column =
sal.bancos.nombre is=20
'Nombre'<BR>/</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=3DCourier=20
size=3D2><BR>/*=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D*/<BR>/*=20
Table :=20
cargos&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&=
nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&n=
bsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nb=
sp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=20
*/<BR>/*=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3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=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D*/<BR>create=20
table sal.cargos_unidades<BR>(<BR>&nbsp;&nbsp;&nbsp;=20
legajo&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&=
nbsp;&nbsp;&nbsp;=20
integer&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; =

not null<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; check =
(legajo=20
&gt;=3D 1),<BR>&nbsp;&nbsp;&nbsp; =
lugar_de_trabajo&nbsp;&nbsp;&nbsp;&nbsp;=20
smallint&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp=
;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=20
not null<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; check =

(lugar_de_trabajo &gt;=3D 1),<BR>&nbsp;&nbsp;&nbsp;=20
funcion&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=
&nbsp;&nbsp;=20
integer&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; =

not null<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; check =

(funcion &gt;=3D 1),<BR>&nbsp;&nbsp;&nbsp;=20
unidad_organica&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=20
integer&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; =

not null<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; check =

(unidad_organica &gt;=3D 1),<BR>&nbsp;&nbsp;&nbsp;=20
estadia&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=
&nbsp;&nbsp;=20
char&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nb=
sp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbs=
p;&nbsp;&nbsp;=20
not null default =
'F'<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=20
check (estadia in ('''F''<BR>','V')),<BR>&nbsp;&nbsp;&nbsp;=20
tipo_empleado&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=20
char&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nb=
sp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbs=
p;&nbsp;&nbsp;=20
not null default =
'E'<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=20
check (tipo_empleado in ('''E''<BR>','O')),<BR>&nbsp;&nbsp;&nbsp;=20
banco&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&n=
bsp;&nbsp;&nbsp;&nbsp;=20
integer&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; =

not null<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; check =
(banco=20
&gt;=3D 1),<BR>&nbsp;&nbsp;&nbsp; =
cuenta_bancaria&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=20
varchar(40),<BR>&nbsp;&nbsp;&nbsp;=20
observacion&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=20
varchar(40),<BR>&nbsp;&nbsp;&nbsp; =
fecha_insercion&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=20
timestamp&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbs=
p;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=20
not null default current timestamp,<BR>&nbsp;&nbsp;&nbsp;=20
usuario_insercion&nbsp;&nbsp;&nbsp;=20
varchar(30)&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&n=
bsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=20
not null default current user,<BR>&nbsp;&nbsp;&nbsp;=20
fecha_modificacion&nbsp;&nbsp; timestamp,<BR>&nbsp;&nbsp;&nbsp;=20
usuario_modificacion varchar(30),<BR>&nbsp;&nbsp;&nbsp;=20
fecha_ips&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbs=
p;=20
date,<BR>&nbsp;&nbsp;&nbsp;=20
fecha_ingreso&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=20
date&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nb=
sp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbs=
p;&nbsp;&nbsp;=20
not null,<BR>&nbsp;&nbsp;&nbsp;=20
fecha_egreso&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=20
date,<BR>&nbsp;&nbsp;&nbsp;=20
ubicacion&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbs=
p;=20
integer,<BR>&nbsp;&nbsp;&nbsp;=20
sucursal&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp=
;&nbsp;=20
char(2),<BR>&nbsp;&nbsp;&nbsp;=20
tipo_cuenta&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=20
char(2),<BR>&nbsp;&nbsp;&nbsp; codigo_numero_mjt&nbsp;&nbsp;&nbsp;=20
integer,<BR>&nbsp;&nbsp;&nbsp;=20
turno&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&n=
bsp;&nbsp;&nbsp;&nbsp;=20
integer,<BR>&nbsp;&nbsp;&nbsp; primary key =
(legajo)<BR>)<BR>/</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=3DCourier size=3D2><BR>comment on column =
sal.cargos_unidades.legajo=20
is 'Legajo'<BR>/</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=3DCourier size=3D2><BR>comment on column=20
sal.cargos_unidades.lugar_de_trabajo is 'Lugar de =
Trabajo'<BR>/</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=3DCourier size=3D2><BR>comment on column =
sal.cargos_unidades.funcion=20
is 'Funci=A2n'<BR>/</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=3DCourier size=3D2><BR>comment on column=20
sal.cargos_unidades.unidad_organica is 'Unidad =
Org&nbsp;nica'<BR>/</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=3DCourier size=3D2><BR>comment on column =
sal.cargos_unidades.estadia=20
is 'Estad=A1a'<BR>/</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=3DCourier size=3D2><BR>comment on column=20
sal.cargos_unidades.tipo_empleado is 'Tipo Empleado'<BR>/</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=3DCourier size=3D2><BR>comment on column =
sal.cargos_unidades.banco=20
is 'Banco'<BR>/</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=3DCourier size=3D2><BR>comment on column=20
sal.cargos_unidades.cuenta_bancaria is 'Cuenta Bancaria en la que se =
debe pagar=20
el sueldo del empleado'<BR>/</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=3DCourier size=3D2><BR>comment on column=20
sal.cargos_unidades.observacion is 'Observaci=A2n'<BR>/</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=3DCourier size=3D2><BR>comment on column=20
sal.cargos_unidades.fecha_insercion is 'Fecha =
inserci=A2n'<BR>/</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=3DCourier size=3D2><BR>comment on column=20
sal.cargos_unidades.usuario_insercion is 'Usuario =
Inserci=A2n'<BR>/</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=3DCourier size=3D2><BR>comment on column=20
sal.cargos_unidades.fecha_modificacion is 'Fecha =
Modificaci=A2n'<BR>/</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=3DCourier size=3D2><BR>comment on column=20
sal.cargos_unidades.usuario_modificacion is 'Usuario=20
Modificaci=A2n'<BR>/</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=3DCourier=20
size=3D2><BR>/*=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D*/<BR>/*=20
Table :=20
cargos_unidades_auditoria&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&=
nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=20
*/<BR>/*=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D*/<BR>create=20
table sal.cargos_unidades_auditoria<BR>(<BR>&nbsp;&nbsp;&nbsp;=20
numero_interno&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=20
integer&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; =

not null default autoincrement,<BR>&nbsp;&nbsp;&nbsp;=20
legajo&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&=
nbsp;&nbsp;&nbsp;=20
integer&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; =

not null<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; check =
(legajo=20
&gt;=3D 1),<BR>&nbsp;&nbsp;&nbsp; =
lugar_de_trabajo&nbsp;&nbsp;&nbsp;&nbsp;=20
smallint&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp=
;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=20
not null<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; check =

(lugar_de_trabajo &gt;=3D 1),<BR>&nbsp;&nbsp;&nbsp;=20
funcion&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=
&nbsp;&nbsp;=20
integer&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; =

not null<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; check =

(funcion &gt;=3D 1),<BR>&nbsp;&nbsp;&nbsp;=20
unidad_organica&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=20
integer&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; =

not null<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; check =

(unidad_organica &gt;=3D 1),<BR>&nbsp;&nbsp;&nbsp;=20
estadia&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=
&nbsp;&nbsp;=20
char&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nb=
sp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbs=
p;&nbsp;&nbsp;=20
not null default =
'F'<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=20
check (estadia in ('''F''<BR>','V')),<BR>&nbsp;&nbsp;&nbsp;=20
tipo_empleado&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=20
char&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nb=
sp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbs=
p;&nbsp;&nbsp;=20
not null default =
'E'<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=20
check (tipo_empleado in ('''E''<BR>','O')),<BR>&nbsp;&nbsp;&nbsp;=20
banco&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&n=
bsp;&nbsp;&nbsp;&nbsp;=20
integer<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; check =
(banco=20
is null or (banco &gt;=3D 1 )),<BR>&nbsp;&nbsp;&nbsp;=20
cuenta_bancaria&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; =
varchar(40),<BR>&nbsp;&nbsp;&nbsp;=20
observacion&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=20
varchar(40),<BR>&nbsp;&nbsp;&nbsp; =
fecha_insercion&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=20
timestamp,<BR>&nbsp;&nbsp;&nbsp; usuario_insercion&nbsp;&nbsp;&nbsp;=20
varchar(30)&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&n=
bsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=20
not null,<BR>&nbsp;&nbsp;&nbsp; fecha_modificacion&nbsp;&nbsp;=20
timestamp,<BR>&nbsp;&nbsp;&nbsp; usuario_modificacion=20
varchar(30),<BR>&nbsp;&nbsp;&nbsp;=20
fecha_registro&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=20
timestamp&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbs=
p;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=20
not null default current timestamp,<BR>&nbsp;&nbsp;&nbsp;=20
usuario_registro&nbsp;&nbsp;&nbsp;&nbsp;=20
varchar(30)&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&n=
bsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=20
not null,<BR>&nbsp;&nbsp;&nbsp;=20
fecha_ips&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbs=
p;=20
date,<BR>&nbsp;&nbsp;&nbsp;=20
fecha_ingreso&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=20
date,<BR>&nbsp;&nbsp;&nbsp;=20
fecha_egreso&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=20
date,<BR>&nbsp;&nbsp;&nbsp;=20
tipo&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nb=
sp;&nbsp;&nbsp;&nbsp;&nbsp;=20
char&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nb=
sp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbs=
p;&nbsp;&nbsp;=20
not null,<BR>&nbsp;&nbsp;&nbsp;=20
ubicacion&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbs=
p;=20
integer,<BR>&nbsp;&nbsp;&nbsp; codigo_numero_mjt&nbsp;&nbsp;&nbsp;=20
integer,<BR>&nbsp;&nbsp;&nbsp; primary key=20
(numero_interno)<BR>)<BR>/</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=3DCourier size=3D2><BR>comment on column=20
sal.cargos_unidades_auditoria.numero_interno is 'N=A3mero=20
Interno'<BR>/</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=3DCourier size=3D2><BR>comment on column=20
sal.cargos_unidades_auditoria.legajo is 'Legajo'<BR>/</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=3DCourier size=3D2><BR>comment on column=20
sal.cargos_unidades_auditoria.lugar_de_trabajo is 'Lugar de=20
Trabajo'<BR>/</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=3DCourier size=3D2><BR>comment on column=20
sal.cargos_unidades_auditoria.funcion is 'Funci=A2n'<BR>/</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=3DCourier size=3D2><BR>comment on column=20
sal.cargos_unidades_auditoria.unidad_organica is 'Unidad=20
Org&nbsp;nica'<BR>/</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=3DCourier size=3D2><BR>comment on column=20
sal.cargos_unidades_auditoria.estadia is 'Estad=A1a'<BR>/</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=3DCourier size=3D2><BR>comment on column=20
sal.cargos_unidades_auditoria.tipo_empleado is 'Tipo =
Empleado'<BR>/</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=3DCourier size=3D2><BR>comment on column=20
sal.cargos_unidades_auditoria.banco is 'Banco'<BR>/</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=3DCourier size=3D2><BR>comment on column=20
sal.cargos_unidades_auditoria.cuenta_bancaria is 'Cuenta Bancaria en la =
que se=20
debe pagar el sueldo del empleado'<BR>/</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=3DCourier size=3D2><BR>comment on column=20
sal.cargos_unidades_auditoria.observacion is =
'Observaci=A2n'<BR>/</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=3DCourier size=3D2><BR>comment on column=20
sal.cargos_unidades_auditoria.fecha_insercion is 'Fecha=20
inserci=A2n'<BR>/</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=3DCourier size=3D2><BR>comment on column=20
sal.cargos_unidades_auditoria.usuario_insercion is 'Usuario=20
Inserci=A2n'<BR>/</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=3DCourier size=3D2><BR>comment on column=20
sal.cargos_unidades_auditoria.fecha_modificacion is 'Fecha=20
Modificaci=A2n'<BR>/</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=3DCourier size=3D2><BR>comment on column=20
sal.cargos_unidades_auditoria.usuario_modificacion is 'Usuario=20
Modificaci=A2n'<BR>/</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=3DCourier size=3D2><BR>comment on column=20
sal.cargos_unidades_auditoria.fecha_registro is 'Fecha=20
Registro'<BR>/</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=3DCourier size=3D2><BR>comment on column=20
sal.cargos_unidades_auditoria.usuario_registro is 'Usuario=20
Registro'<BR>/</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=3DCourier=20
size=3D2><BR>/*=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D*/<BR>/*=20
Table :=20
centros_de_costos&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&n=
bsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nb=
sp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbs=
p;&nbsp;=20
*/<BR>/*=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D*/<BR>create=20
table sal.centros_de_costos<BR>(<BR>&nbsp;&nbsp;&nbsp;=20
centro_de_costo&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=20
integer&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; =

not null<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; check =

(centro_de_costo &gt;=3D 1),<BR>&nbsp;&nbsp;&nbsp;=20
aclaracion&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=20
varchar(40)&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&n=
bsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=20
not null,<BR>&nbsp;&nbsp;&nbsp; primary key=20
(centro_de_costo)<BR>)<BR>/</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=3DCourier size=3D2><BR>comment on column=20
sal.centros_de_costos.centro_de_costo is =
'centro_de_costo'<BR>/</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=3DCourier size=3D2><BR>comment on column=20
sal.centros_de_costos.aclaracion is 'Aclaraci=A2n'<BR>/</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=3DCourier=20
size=3D2><BR>/*=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D*/<BR>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nbsp;&nbsp;&n=
bsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=20
not null,<BR>&nbsp;&nbsp;&nbsp; primary key =
(ciudad)<BR>)<BR>/</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=3DCourier size=3D2><BR>comment on column =
sal.ciudades.ciudad is=20
'Ciudad'<BR>/</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=3DCourier size=3D2><BR>comment on column =
sal.ciudades.nombre is=20
'Nombre'<BR>/</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=3DCourier=20
size=3D2><BR>/*=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D*/<BR>/*=20
Table :=20
costo_turno&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&n=
bsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nb=
sp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbs=
p;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=20
*/<BR>/*=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D*/<BR>create=20
table sal.costo_turno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bsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&=
nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=20
not null,<BR>&nbsp;&nbsp;&nbsp;=20
novedad&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=
&nbsp;&nbsp;=20
integer&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; =

not null<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; check =

(novedad between 1 and 9999),<BR>&nbsp;&nbsp;&nbsp; primary key (turno, =
desde,=20
hasta)<BR>)<BR>/</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=3DCourier size=3D2><BR>comment on column =
sal.costo_turno.turno is=20
'Turno'<BR>/</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=3DCourier size=3D2><BR>comment on column =
sal.costo_turno.desde is=20
'Desde'<BR>/</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=3DCourier size=3D2><BR>comment on column =
sal.costo_turno.hasta is=20
'Hasta'<BR>/</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=3DCourier size=3D2><BR>comment on column=20
sal.costo_turno.cantidad_horas is 'Cantidad Horas'<BR>/</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=3DCourier size=3D2><BR>comment on column =
sal.costo_turno.novedad is=20
'Novedad'<BR>/</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=3DCourier=20
size=3D2><BR>/*=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3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sp;&nbsp;&nbsp; =

not null<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; check =
(legajo=20
&gt;=3D 1),<BR>&nbsp;&nbsp;&nbsp;=20
fecha&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&n=
bsp;&nbsp;&nbsp;&nbsp;=20
date&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nb=
sp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbs=
p;&nbsp;&nbsp;=20
not null,<BR>&nbsp;&nbsp;&nbsp;=20
nombre&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&=
nbsp;&nbsp;&nbsp;=20
varchar(40),<BR>&nbsp;&nbsp;&nbsp;=20
institucion&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=20
varchar(40),<BR>&nbsp;&nbsp;&nbsp;=20
carga_horaria&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=20
numeric(6,2),<BR>&nbsp;&nbsp;&nbsp;=20
costo_empresa&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=20
numeric(13,2),<BR>&nbsp;&nbsp;&nbsp;=20
descripcion&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=20
varchar(256),<BR>&nbsp;&nbsp;&nbsp;=20
curso_interno&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=20
char&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nb=
sp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbs=
p;&nbsp;&nbsp;=20
not null default =
'S'<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=20
check (curso_interno in ('''S''<BR>','N')),<BR>&nbsp;&nbsp;&nbsp; =
primary key=20
(numero_interno)<BR>)<BR>/</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=3DCourier size=3D2><BR>comment on column=20
sal.cursos_y_seminarios.numero_interno is 'N=A3mero =
Interno'<BR>/</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=3DCourier size=3D2><BR>comment on column=20
sal.cursos_y_seminarios.legajo is 'Legajo'<BR>/</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=3DCourier size=3D2><BR>comment on column=20
sal.cursos_y_seminarios.fecha is 'Fecha'<BR>/</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=3DCourier size=3D2><BR>comment on column=20
sal.cursos_y_seminarios.nombre is 'Nombre'<BR>/</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=3DCourier size=3D2><BR>comment on column=20
sal.cursos_y_seminarios.institucion is 'Instituci=A2n'<BR>/</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=3DCourier size=3D2><BR>comment on column=20
sal.cursos_y_seminarios.carga_horaria is 'Carga =
Horaria'<BR>/</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=3DCourier size=3D2><BR>comment on column=20
sal.cursos_y_seminarios.costo_empresa is 'Costo =
Empresa'<BR>/</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=3DCourier size=3D2><BR>comment on column=20
sal.cursos_y_seminarios.descripcion is 'Descripci=A2n'<BR>/</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=3DCourier size=3D2><BR>comment on column=20
sal.cursos_y_seminarios.cur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sp;=20
check (solo_clave between 1 and 1),<BR>&nbsp;&nbsp;&nbsp;=20
nombre&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&=
nbsp;&nbsp;&nbsp;=20
varchar(40),<BR>&nbsp;&nbsp;&nbsp;=20
direccion&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbs=
p;=20
varchar(40),<BR>&nbsp;&nbsp;&nbsp;=20
telefono&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp=
;&nbsp;=20
varchar(40),<BR>&nbsp;&nbsp;&nbsp; numero_patronal_ips&nbsp;=20
varchar(40),<BR>&nbsp;&nbsp;&nbsp; numero_patronal_mjt&nbsp;=20
varchar(40),<BR>&nbsp;&nbsp;&nbsp; sector_de_trabajo&nbsp;&nbsp;&nbsp;=20
varchar(40),<BR>&nbsp;&nbsp;&nbsp; logotipo_etiqueta&nbsp;&nbsp;&nbsp;=20
varchar(20),<BR>&nbsp;&nbsp;&nbsp; =
logotipo_grafico&nbsp;&nbsp;&nbsp;&nbsp; long=20
binary,<BR>&nbsp;&nbsp;&nbsp; fecha_de_proceso&nbsp;&nbsp;&nbsp;&nbsp;=20
date,<BR>&nbsp;&nbsp;&nbsp; ano_mes_de_proceso&nbsp;&nbsp;=20
char(6)<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; check=20
(ano_mes_de_proceso is null or (ano_mes_de_proceso between '199001' and =
'999912'=20
)),<BR>&nbsp;&nbsp;&nbsp;=20
ruc&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbs=
p;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=20
char(15),<BR>&nbsp;&nbsp;&nbsp; primary key =
(solo_clave)<BR>)<BR>/</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=3DCourier size=3D2><BR>comment on column=20
sal.datos_de_la_empresa.solo_clave is 'Solo_Clave'<BR>/</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=3DCourier size=3D2><BR>comment on column=20
sal.datos_de_la_empresa.nombre is 'Nombre'<BR>/</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=3DCourier size=3D2><BR>comment on column=20
sal.datos_de_la_empresa.direccion is 'Direcci=A2n'<BR>/</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=3DCourier size=3D2><BR>comment on column=20
sal.datos_de_la_empresa.telefono is 'Tel=82fono'<BR>/</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=3DCourier size=3D2><BR>comment on column=20
sal.datos_de_la_empresa.numero_patronal_ips is 'N=A3mero Patronal=20
IPS'<BR>/</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=3DCourier size=3D2><BR>comment on column=20
sal.datos_de_la_empresa.numero_patronal_mjt is 'N=A3mero Patronal=20
BNT'<BR>/</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=3DCourier size=3D2><BR>comment on column=20
sal.datos_de_la_empresa.sector_de_trabajo is 'Sector de=20
Trabajo'<BR>/</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=3DCourier size=3D2><BR>comment on column=20
sal.datos_de_la_empresa.logotipo_etiqueta is 'Logotipo=20
Etiqueta'<BR>/</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=3DCourier size=3D2><BR>comment on column=20
sal.datos_de_la_empresa.logotipo_grafico is 'Logotipo=20
Gr&nbsp;fico'<BR>/</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=3DCourier size=3D2><BR>comment on column=20
sal.datos_de_la_empresa.fecha_de_proceso is 'Fecha de =
Proceso'<BR>/</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=3DCourier size=3D2><BR>comment on column=20
sal.datos_de_la_empresa.ano_mes_de_proceso is 'A=A4o Mes de=20
Proceso'<BR>/</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=3DCourier=20
size=3D2><BR>/*=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D*/<BR>/*=20
Table :=20
descuentos_diferidos&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp=
;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=20
*/<BR>/*=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D*/<BR>create=20
table sal.descuentos_diferidos<BR>(<BR>&nbsp;&nbsp;&nbsp;=20
numero&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&=
nbsp;&nbsp;&nbsp;=20
integer&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;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p;=20
numeric(5,2)&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&=
nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=20
not null,<BR>&nbsp;&nbsp;&nbsp;=20
plazo&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&n=
bsp;&nbsp;&nbsp;&nbsp;=20
smallint,<BR>&nbsp;&nbsp;&nbsp;=20
tipo_planilla&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=20
char&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nb=
sp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbs=
p;&nbsp;&nbsp;=20
not null<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; check =

(tipo_planilla in=20
('''1''<BR>','''2''<BR>','''3''<BR>','''4''<BR>','''5''<BR>','''6''<BR>',=
'''7''<BR>','''8''<BR>','9')),<BR>&nbsp;&nbsp;&nbsp;=20
fecha_inicio_descuento date,<BR>&nbsp;&nbsp;&nbsp;=20
fecha_insercion&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=20
timestamp&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbs=
p;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=20
not null,<BR>&nbsp;&nbsp;&nbsp; usuario_insercion&nbsp;&nbsp;&nbsp;=20
varchar(30)&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&n=
bsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=20
not null,<BR>&nbsp;&nbsp;&nbsp; primary key =
(numero)<BR>)<BR>/</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=3DCourier size=3D2><BR>comment on column=20
sal.descuentos_diferidos.numero is 'N=A3mero'<BR>/</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=3DCourier size=3D2><BR>comment on column=20
sal.descuentos_diferidos.tipo_descuento is 'Tipo =
Descuento'<BR>/</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=3DCourier size=3D2><BR>comment on column=20
sal.descuentos_diferidos.legajo is 'Legajo'<BR>/</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=3DCourier size=3D2><BR>comment on column=20
sal.descuentos_diferidos.fecha is 'Fecha'<BR>/</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=3DCourier size=3D2><BR>comment on column=20
sal.descuentos_diferidos.monto is 'Monto'<BR>/</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=3DCourier size=3D2><BR>comment on column=20
sal.descuentos_diferidos.tasa_interes is 'Tasa =
Inter=82s'<BR>/</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=3DCourier size=3D2><BR>comment on column=20
sal.descuentos_diferidos.plazo is 'Plazo'<BR>/</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=3DCourier size=3D2><BR>comment on column=20
sal.descuentos_diferidos.tipo_planilla is 'Tipo =
Planilla'<BR>/</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=3DCourier size=3D2><BR>comment on column=20
sal.descuentos_diferidos.fecha_inicio_descuento is 'Fecha Inicio=20
Descuento'<BR>/</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=3DCourier size=3D2><BR>comment on column=20
sal.descuentos_diferidos.fecha_insercion is 'Fecha =
Inserci=A2n'<BR>/</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=3DCourier size=3D2><BR>comment on column=20
sal.descuentos_diferidos.usuario_insercion is 'Usuario=20
Inserci=A2n'<BR>/</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=3DCourier=20
size=3D2><BR>/*=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D*/<BR>/*=20
Table :=20
descuentos_diferidos_detalles&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&n=
bsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nb=
sp;&nbsp;&nbsp;&nbsp;=20
*/<BR>/*=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D*/<BR>create=20
table sal.descuentos_diferidos_detalles<BR>(<BR>&nbsp;&nbsp;&nbsp;=20
numero&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&=
nbsp;&nbsp;&nbsp;=20
integer&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; =

not null,<BR>&nbsp;&nbsp;&nbsp;=20
cuota&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&n=
bsp;&nbsp;&nbsp;&nbsp;=20
smallint&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp=
;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=20
not null,<BR>&nbsp;&nbsp;&nbsp; monto_amortizacion&nbsp;&nbsp;=20
numeric(13,2)&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=20
not null,<BR>&nbsp;&nbsp;&nbsp;=20
monto_interes&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=20
numeric(13,2)&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=20
not null,<BR>&nbsp;&nbsp;&nbsp; fecha_prevista_pago&nbsp;=20
date&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nb=
sp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbs=
p;&nbsp;&nbsp;=20
not null,<BR>&nbsp;&nbsp;&nbsp; fecha_calculada_pago=20
date&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nb=
sp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbs=
p;&nbsp;&nbsp;=20
not null,<BR>&nbsp;&nbsp;&nbsp; fecha_real_de_pago&nbsp;&nbsp;=20
date,<BR>&nbsp;&nbsp;&nbsp; primary key (numero, =
cuota),<BR>&nbsp;&nbsp;&nbsp;=20
check (check(fecha_prevista_pago &lt;=3D fecha_calculada_pago=20
and<BR>&nbsp;&nbsp;&nbsp; fecha_prevista_pago &lt;=3D=20
fecha_real_de_pago))<BR>)<BR>/</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=3DCourier size=3D2><BR>comment on column=20
sal.descuentos_diferidos_detalles.numero is 'N=A3mero'<BR>/</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=3DCourier size=3D2><BR>comment on column=20
sal.descuentos_diferidos_detalles.cuota is 'Cuota'<BR>/</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=3DCourier size=3D2><BR>comment on column=20
sal.descuentos_diferidos_detalles.monto_amortizacion is 'Monto=20
Amortizaci=A2n'<BR>/</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=3DCourier size=3D2><BR>comment on column=20
sal.descuentos_diferidos_detalles.monto_interes is 'Monto=20
Inter=82s'<BR>/</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=3DCourier size=3D2><BR>comment on column=20
sal.descuentos_diferidos_detalles.fecha_prevista_pago is 'Fecha Prevista =

Pago'<BR>/</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=3DCourier size=3D2><BR>comment on column=20
sal.descuentos_diferidos_detalles.fecha_calculada_pago is 'Fecha =
Calculada=20
Pago'<BR>/</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=3DCourier size=3D2><BR>comment on column=20
sal.descuentos_diferidos_detalles.fecha_real_de_pago is 'Fecha Real de=20
Pago'<BR>/</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=3DCourier=20
size=3D2><BR>/*=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D*/<BR>/*=20
Table :=20
descuentos_diferidos_tipos&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp=
;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=20
*/<BR>/*=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D*/<BR>create=20
table sal.descuentos_diferidos_tipos<BR>(<BR>&nbsp;&nbsp;&nbsp;=20
tipo_descuento&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=20
integer&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; =

not null,<BR>&nbsp;&nbsp;&nbsp;=20
descripcion&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=20
varchar(40),<BR>&nbsp;&nbsp;&nbsp;=20
plazo_maximo&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=20
smallint,<BR>&nbsp;&nbsp;&nbsp; =
tasa_de_interes&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=20
numeric(5,2)&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&=
nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=20
not null<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; check =

(tasa_de_interes between 0 and 100),<BR>&nbsp;&nbsp;&nbsp;=20
novedad_descuento&nbsp;&nbsp;&nbsp;=20
integer&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; =

not null<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; check =

(novedad_descuento between 1 and 9999),<BR>&nbsp;&nbsp;&nbsp; primary =
key=20
(tipo_descuento)<BR>)<BR>/</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=3DCourier size=3D2><BR>comment on column=20
sal.descuentos_diferidos_tipos.tipo_descuento is 'Tipo=20
Descuento'<BR>/</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=3DCourier size=3D2><BR>comment on column=20
sal.descuentos_diferidos_tipos.descripcion is =
'Descripci=A2n'<BR>/</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=3DCourier size=3D2><BR>comment on column=20
sal.descuentos_diferidos_tipos.plazo_maximo is 'Plazo=20
M&nbsp;ximo'<BR>/</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=3DCourier size=3D2><BR>comment on column=20
sal.descuentos_diferidos_tipos.tasa_de_interes is 'Tasa de=20
Inter=82s'<BR>/</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=3DCourier size=3D2><BR>comment on column=20
sal.descuentos_diferidos_tipos.novedad_descuento is 'Novedad=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&nbsp;&nbsp;&nbsp;&nbsp; check =

(novedad between 1 and 9999),<BR>&nbsp;&nbsp;&nbsp;=20
planilla&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp=
;&nbsp;=20
char&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nb=
sp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbs=
p;&nbsp;&nbsp;=20
not null<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; check =

(planilla in=20
('''1''<BR>','''2''<BR>','''3''<BR>','''4''<BR>','''5''<BR>','''6''<BR>',=
'''7''<BR>','''8''<BR>','9')),<BR>&nbsp;&nbsp;&nbsp;=20
novedad_afectada&nbsp;&nbsp;&nbsp;&nbsp;=20
integer&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; =

not null<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; check =

(novedad_afectada between 1 and 9999),<BR>&nbsp;&nbsp;&nbsp; primary key =

(novedad, planilla, novedad_afectada)<BR>)<BR>/</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=3DCourier size=3D2><BR>comment on column=20
sal.descuentos_fijos.novedad is 'Novedad'<BR>/</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=3DCourier size=3D2><BR>comment on column=20
sal.descuentos_fijos.planilla is 'Planilla'<BR>/</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=3DCourier size=3D2><BR>comment on column=20
sal.descuent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3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D*/<BR>create=20
table sal.domicilios<BR>(<BR>&nbsp;&nbsp;&nbsp;=20
numero_interno&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=20
integer&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; =

not null default autoincrement,<BR>&nbsp;&nbsp;&nbsp;=20
legajo&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&=
nbsp;&nbsp;&nbsp;=20
integer&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; =

not null<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; check =
(legajo=20
&gt;=3D 1),<BR>&nbsp;&nbsp;&nbsp;=20
calle&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&n=
bsp;&nbsp;&nbsp;&nbsp;=20
varchar(40),<BR>&nbsp;&nbsp;&nbsp;=20
telefono&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp=
;&nbsp;=20
varchar(40),<BR>&nbsp;&nbsp;&nbsp;=20
barrio&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&=
nbsp;&nbsp;&nbsp;=20
varchar(40),<BR>&nbsp;&nbsp;&nbsp;=20
ciudad&nbsp;&nbsp;&nb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;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=20
check (tipo_domicilio in=20
('''P''<BR>','''A''<BR>','''F''<BR>','O')),<BR>&nbsp;&nbsp;&nbsp;=20
fecha_referencia&nbsp;&nbsp;&nbsp;&nbsp;=20
date&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nb=
sp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbs=
p;&nbsp;&nbsp;=20
not null,<BR>&nbsp;&nbsp;&nbsp; primary key=20
(numero_interno)<BR>)<BR>/</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=3DCourier size=3D2><BR>comment on column=20
sal.domicilios.numero_interno is 'N=A3mero Interno'<BR>/</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=3DCourier size=3D2><BR>comment on column =
sal.domicilios.legajo is=20
'Legajo'<BR>/</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=3DCourier size=3D2><BR>comment on column =
sal.domicilios.calle is=20
'Calle'<BR>/</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=3DCourier size=3D2><BR>comment on column =
sal.domicilios.telefono is=20
'Tel=82fono'<BR>/</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=3DCourier size=3D2><BR>comment on column =
sal.domicilios.barrio is=20
'Barrio'<BR>/</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=3DCourier size=3D2><BR>comment on column =
sal.domicilios.ciudad is=20
'Ciudad'<BR>/</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=3DCourier size=3D2><BR>comment on column =
sal.domicilios.pais is=20
'Pa=A1s'<BR>/</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=3DCourier size=3D2><BR>comment on column =
sal.domicilios.croquis is=20
'Croquis'<BR>/</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=3DCourier size=3D2><BR>comment on column=20
sal.domicilios.tipo_domicilio is 'Tipo Domicilio'<BR>/</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=3DCourier size=3D2><BR>comment on column=20
sal.domicilios.fecha_referencia is 'Fecha Referencia'<BR>/</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=3DCourier=20
size=3D2><BR>/*=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D*/<BR>/*=20
Table :=20
empleados&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbs=
p;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp=
;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=20
*/<BR>/*=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D*/<BR>create=20
table sal.empleados<BR>(<BR>&nbsp;&nbsp;&nbsp;=20
legajo&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&=
nbsp;&nbsp;&nbsp;=20
integer&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; =

not null<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; check =
(legajo=20
&gt;=3D 1),<BR>&nbsp;&nbsp;&nbsp;=20
primer_nombre&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=20
varchar(20)&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&n=
bsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=20
not null,<BR>&nbsp;&nbsp;&nbsp;=20
segundo_nombre&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=20
varchar(20),<BR>&nbsp;&nbsp;&nbsp; =
apellido_primero&nbsp;&nbsp;&nbsp;&nbsp;=20
varchar(20)&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&n=
bsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=20
not null,<BR>&nbsp;&nbsp;&nbsp; apellido_segundo&nbsp;&nbsp;&nbsp;&nbsp; =

varchar(20),<BR>&nbsp;&nbsp;&nbsp; =
apellido_casada&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=20
varchar(20),<BR>&nbsp;&nbsp;&nbsp;=20
profesion&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbs=
p;=20
integer&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; =

not null<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; check =

(profesion &gt;=3D 1),<BR>&nbsp;&nbsp;&nbsp;=20
telefono_celular&nbsp;&nbsp;&nbsp;&nbsp; =
varchar(40),<BR>&nbsp;&nbsp;&nbsp;=20
busca_persona&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=20
varchar(40),<BR>&nbsp;&nbsp;&nbsp; =
fecha_nacimiento&nbsp;&nbsp;&nbsp;&nbsp;=20
date,<BR>&nbsp;&nbsp;&nbsp; lugar_nacimiento&nbsp;&nbsp;&nbsp;&nbsp;=20
integer<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; check=20
(lugar_nacimiento is null or (lugar_nacimiento &gt;=3D 1 =
)),<BR>&nbsp;&nbsp;&nbsp;=20
estado_civil&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=20
char&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nb=
sp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbs=
p;&nbsp;&nbsp;&nbsp;=20
default 'S'<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; =
check=20
(estado_civil is null or ( estado_civil in=20
('''S''<BR>','''C''<BR>','''D''<BR>','''V''<BR>','O') =
)),<BR>&nbsp;&nbsp;&nbsp;=20
fecha_casamiento&nbsp;&nbsp;&nbsp;&nbsp; date,<BR>&nbsp;&nbsp;&nbsp;=20
nacionalidad&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=20
integer<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; check=20
(nacionalidad is null or (nacionalidad &gt;=3D 1 =
)),<BR>&nbsp;&nbsp;&nbsp;=20
sexo&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nb=
sp;&nbsp;&nbsp;&nbsp;&nbsp;=20
char<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; check =
(sexo is=20
null or (sexo &lt;&gt; '' )),<BR>&nbsp;&nbsp;&nbsp; =
documento_identidad&nbsp;=20
varchar(20),<BR>&nbsp;&nbsp;&nbsp;=20
numero_social&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=20
varchar(20),<BR>&nbsp;&nbsp;&nbsp; =
grupo_sanguineo&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=20
varchar(3)<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; =
check=20
(grupo_sanguineo is null or (@column &lt;&gt; '' =
)),<BR>&nbsp;&nbsp;&nbsp;=20
religion&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp=
;&nbsp;=20
integer,<BR>&nbsp;&nbsp;&nbsp;=20
observacion&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; long=20
varchar,<BR>&nbsp;&nbsp;&nbsp; =
usuario_inserto&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=20
varchar(30)&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&n=
bsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=20
not null default current user,<BR>&nbsp;&nbsp;&nbsp;=20
fecha_insercion&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=20
timestamp&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbs=
p;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=20
not null default current timestamp,<BR>&nbsp;&nbsp;&nbsp;=20
numero_patronal&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; =
smallint,<BR>&nbsp;&nbsp;&nbsp;=20
codigo_alterno&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=20
char(6),<BR>&nbsp;&nbsp;&nbsp; primary key =
(legajo)<BR>)<BR>/</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=3DCourier size=3D2><BR>comment on column =
sal.empleados.legajo is=20
'Legajo'<BR>/</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=3DCourier size=3D2><BR>comment on column =
sal.empleados.primer_nombre=20
is 'Primer Nombre'<BR>/</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=3DCourier size=3D2><BR>comment on column=20
sal.empleados.segundo_nombre is 'Segundo Nombre'<BR>/</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=3DCourier size=3D2><BR>comment on column=20
sal.empleados.apellido_primero is 'Primer Apellido'<BR>/</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=3DCourier size=3D2><BR>comment on column=20
sal.empleados.apellido_segundo is 'Segundo Apellido'<BR>/</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=3DCourier size=3D2><BR>comment on column=20
sal.empleados.apellido_casada is 'Apellido Casada'<BR>/</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=3DCourier size=3D2><BR>comment on column =
sal.empleados.profesion is=20
'Profesi=A2n'<BR>/</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=3DCourier size=3D2><BR>comment on column=20
sal.empleados.telefono_celular is 'Tel=82fono Celular'<BR>/</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=3DCourier size=3D2><BR>comment on column =
sal.empleados.busca_persona=20
is 'Tel=82fono del Proveedor + C=A2digo'<BR>/</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=3DCourier size=3D2><BR>comment on column=20
sal.empleados.fecha_nacimiento is 'Fecha Nacimiento'<BR>/</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=3DCourier size=3D2><BR>comment on column=20
sal.empleados.lugar_nacimiento is 'Lugar Nacimiento'<BR>/</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=3DCourier size=3D2><BR>comment on column =
sal.empleados.estado_civil=20
is 'Estado Civil'<BR>/</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=3DCourier size=3D2><BR>comment on column=20
sal.empleados.fecha_casamiento is 'Fecha Casamiento'<BR>/</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=3DCourier size=3D2><BR>comment on column =
sal.empleados.nacionalidad=20
is 'Nacionalidad'<BR>/</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=3DCourier size=3D2><BR>comment on column =
sal.empleados.sexo is=20
'Sexo'<BR>/</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=3DCourier size=3D2><BR>comment on column=20
sal.empleados.documento_identidad is 'Documento =
Identidad'<BR>/</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=3DCourier size=3D2><BR>comment on column =
sal.empleados.numero_social=20
is 'N=A3mero Social'<BR>/</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=3DCourier size=3D2><BR>comment on column=20
sal.empleados.grupo_sanguineo is 'Grupo Sanguineo'<BR>/</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=3DCourier size=3D2><BR>comment on column =
sal.empleados.religion is=20
'Religi=A2n'<BR>/</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=3DCourier size=3D2><BR>comment on column =
sal.empleados.observacion=20
is 'Observaci=A2n'<BR>/</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=3DCourier size=3D2><BR>comment on column=20
sal.empleados.usuario_inserto is 'Usuario Inserci=A2n'<BR>/</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=3DCourier size=3D2><BR>comment on column=20
sal.empleados.fecha_insercion is 'Fecha Inserci=A2n'<BR>/</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=3DCourier size=3D2><BR>comment on column=20
sal.empleados.numero_patronal is 'Numero Patronal'<BR>/</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=3DCourier=20
size=3D2><BR>/*=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D*/<BR>/*=20
Table :=20
empleados_por_turno&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&=
nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=20
*/<BR>/*=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D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3D 1),<BR>&nbsp;&nbsp;&nbsp; primary key (legajo, fecha,=20
turno)<BR>)<BR>/</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=3DCourier size=3D2><BR>comment on column=20
sal.empleados_por_turno.legajo is 'Legajo'<BR>/</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=3DCourier size=3D2><BR>comment on column=20
sal.empleados_por_turno.fecha is 'Fecha'<BR>/</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=3DCourier size=3D2><BR>comment on column=20
sal.empleados_por_turno.turno is 'Turno'<BR>/</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=3DCourier=20
size=3D2><BR>/*=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D*/<BR>/*=20
Table :=20
experiencia_laboral&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&=
nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=20
*/<BR>/*=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D*/<BR>create=20
table sal.experiencia_laboral<BR>(<BR>&nbsp;&nbsp;&nbsp;=20
numero_interno&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=20
integer&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; =

not null default autoincrement,<BR>&nbsp;&nbsp;&nbsp;=20
legajo&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&=
nbsp;&nbsp;&nbsp;=20
integer&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; =

not null<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; check =
(legajo=20
&gt;=3D 1),<BR>&nbsp;&nbsp;&nbsp;=20
nombre_empresa&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=20
varchar(50),<BR>&nbsp;&nbsp;&nbsp;=20
direccion&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbs=
p;=20
varchar(50),<BR>&nbsp;&nbsp;&nbsp;=20
ciudad&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&=
nbsp;&nbsp;&nbsp;=20
integer&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; =

not null<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; check =
(ciudad=20
&gt;=3D 1),<BR>&nbsp;&nbsp;&nbsp;=20
pais&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nb=
sp;&nbsp;&nbsp;&nbsp;&nbsp;=20
integer&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; =

not null<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; check =
(pais=20
&gt;=3D 1),<BR>&nbsp;&nbsp;&nbsp;=20
telefono&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp=
;&nbsp;=20
varchar(40),<BR>&nbsp;&nbsp;&nbsp;=20
fecha_ingreso&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=20
date,<BR>&nbsp;&nbsp;&nbsp;=20
fecha_egreso&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=20
date,<BR>&nbsp;&nbsp;&nbsp; tarea_desempenada&nbsp;&nbsp;&nbsp;=20
varchar(40),<BR>&nbsp;&nbsp;&nbsp;=20
ultimo_salario&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=20
numeric(13,2),<BR>&nbsp;&nbsp;&nbsp;=20
motivo_egreso&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=20
varchar(40),<BR>&nbsp;&nbsp;&nbsp;=20
observacion&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=20
varchar(80),<BR>&nbsp;&nbsp;&nbsp; primary key=20
(numero_interno)<BR>)<BR>/</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=3DCourier size=3D2><BR>comment on column=20
sal.experiencia_laboral.numero_interno is 'N=A3mero =
Interno'<BR>/</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=3DCourier size=3D2><BR>comment on column=20
sal.experiencia_laboral.legajo is 'Legajo'<BR>/</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=3DCourier size=3D2><BR>comment on column=20
sal.experiencia_laboral.nombre_empresa is 'Nombre =
Empresa'<BR>/</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=3DCourier size=3D2><BR>comment on column=20
sal.experiencia_laboral.direccion is 'Direcci=A2n'<BR>/</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=3DCourier size=3D2><BR>comment on column=20
sal.experiencia_laboral.ciudad is 'Ciudad'<BR>/</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=3DCourier size=3D2><BR>comment on column=20
sal.experiencia_laboral.pais is 'Pa=A1s'<BR>/</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=3DCourier size=3D2><BR>comment on column=20
sal.experiencia_laboral.telefono is 'Tel=82fono'<BR>/</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=3DCourier size=3D2><BR>comment on column=20
sal.experiencia_laboral.fecha_ingreso is 'Fecha =
Ingreso'<BR>/</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=3DCourier size=3D2><BR>comment on column=20
sal.experiencia_laboral.fecha_egreso is 'Fecha Egreso'<BR>/</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=3DCourier size=3D2><BR>comment on column=20
sal.experiencia_laboral.tarea_desempenada is 'Tarea=20
Desempe=A4ada'<BR>/</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=3DCourier size=3D2><BR>comment on column=20
sal.experiencia_laboral.ultimo_salario is 'Ultimo =
Salario'<BR>/</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=3DCourier size=3D2><BR>comment on column=20
sal.experiencia_laboral.motivo_egreso is 'Motivo =
Egreso'<BR>/</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=3DCourier size=3D2><BR>comment on column=20
sal.experiencia_laboral.observacion is 'Observaci=A2n'<BR>/</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=3DCourier=20
size=3D2><BR>/*=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D*/<BR>/*=20
Table :=20
feriados&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp=
;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&=
nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=20
*/<BR>/*=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D*/<BR>create=20
table sal.feriados<BR>(<BR>&nbsp;&nbsp;&nbsp;=20
fecha&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&n=
bsp;&nbsp;&nbsp;&nbsp;=20
date&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nb=
sp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbs=
p;&nbsp;&nbsp;=20
not null,<BR>&nbsp;&nbsp;&nbsp;=20
motivo&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&=
nbsp;&nbsp;&nbsp;=20
varchar(40)&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&n=
bsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=20
not null,<BR>&nbsp;&nbsp;&nbsp; primary key =
(fecha)<BR>)<BR>/</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=3DCourier size=3D2><BR>comment on column =
sal.feriados.fecha is=20
'Fecha'<BR>/</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=3DCourier size=3D2><BR>comment on column =
sal.feriados.motivo is=20
'Motivo'<BR>/</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=3DCourier=20
size=3D2><BR>/*=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D*/<BR>/*=20
Table :=20
formacion_academica&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&=
nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=20
*/<BR>/*=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D*/<BR>create=20
table sal.formacion_academica<BR>(<BR>&nbsp;&nbsp;&nbsp;=20
numero_interno&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=20
integer&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; =

not null default autoincrement,<BR>&nbsp;&nbsp;&nbsp;=20
legajo&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&=
nbsp;&nbsp;&nbsp;=20
integer&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; =

not null<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; check =
(legajo=20
&gt;=3D 1),<BR>&nbsp;&nbsp;&nbsp;=20
tipo_estudio&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=20
char<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; check=20
(tipo_estudio is null or ( tipo_estudio in=20
('''B''<BR>','''S''<BR>','''U''<BR>','''T''<BR>','''P''<BR>','O')=20
)),<BR>&nbsp;&nbsp;&nbsp;=20
fecha_ingreso&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=20
date,<BR>&nbsp;&nbsp;&nbsp;=20
fecha_egreso&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=20
date,<BR>&nbsp;&nbsp;&nbsp;=20
institucion&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=20
varchar(40),<BR>&nbsp;&nbsp;&nbsp;=20
estudio&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=
&nbsp;&nbsp;=20
varchar(40),<BR>&nbsp;&nbsp;&nbsp; =
titulo_obtenido&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=20
varchar(40),<BR>&nbsp;&nbsp;&nbsp; carga_horaria_total&nbsp;=20
varchar(40),<BR>&nbsp;&nbsp;&nbsp; calificacion_general=20
varchar(40),<BR>&nbsp;&nbsp;&nbsp;=20
pais&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nb=
sp;&nbsp;&nbsp;&nbsp;&nbsp;=20
integer&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; =

not null<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; check =
(pais=20
&gt;=3D 1),<BR>&nbsp;&nbsp;&nbsp;=20
observacion&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=20
varchar(40),<BR>&nbsp;&nbsp;&nbsp; costo_para_empresa&nbsp;&nbsp;=20
numeric(13,2),<BR>&nbsp;&nbsp;&nbsp; primary key=20
(numero_interno)<BR>)<BR>/</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=3DCourier size=3D2><BR>comment on column=20
sal.formacion_academica.numero_interno is 'N=A3mero =
Interno'<BR>/</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=3DCourier size=3D2><BR>comment on column=20
sal.formacion_academica.legajo is 'Legajo'<BR>/</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=3DCourier size=3D2><BR>comment on column=20
sal.formacion_academica.tipo_estudio is 'Tipo Estudio'<BR>/</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=3DCourier size=3D2><BR>comment on column=20
sal.formacion_academica.fecha_ingreso is 'Fecha =
Ingreso'<BR>/</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=3DCourier size=3D2><BR>comment on column=20
sal.formacion_academica.fecha_egreso is 'Fecha Egreso'<BR>/</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=3DCourier size=3D2><BR>comment on column=20
sal.formacion_academica.institucion is 'Instituci=A2n'<BR>/</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=3DCourier size=3D2><BR>comment on column=20
sal.formacion_academica.estudio is 'Nombre Estudio'<BR>/</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=3DCourier size=3D2><BR>comment on column=20
sal.formacion_academica.titulo_obtenido is 'T=A1tulo =
Obtenido'<BR>/</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=3DCourier size=3D2><BR>comment on column=20
sal.formacion_academica.carga_horaria_total is 'Carga Horaria=20
Total'<BR>/</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=3DCourier size=3D2><BR>comment on column=20
sal.formacion_academica.calificacion_general is 'Calificaci=A2n=20
General'<BR>/</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=3DCourier size=3D2><BR>comment on column=20
sal.formacion_academica.pais is 'Pa=A1s'<BR>/</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=3DCourier size=3D2><BR>comment on column=20
sal.formacion_academica.observacion is 'Observaci=A2n'<BR>/</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=3DCourier size=3D2><BR>comment on column=20
sal.formacion_academica.costo_para_empresa is 'Costo para=20
Empresa'<BR>/</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=3DCourier=20
size=3D2><BR>/*=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D*/<BR>/*=20
Table :=20
funciones&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbs=
p;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp=
;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=20
*/<BR>/*=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D*/<BR>create=20
table sal.funciones<BR>(<BR>&nbsp;&nbsp;&nbsp;=20
funcion&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=
&nbsp;&nbsp;=20
integer&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; =

not null<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; check =

(funcion &gt;=3D 1),<BR>&nbsp;&nbsp;&nbsp;=20
descripcion&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=20
varchar(40)&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&n=
bsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=20
not null,<BR>&nbsp;&nbsp;&nbsp;=20
tipo_funcion&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=20
char&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nb=
sp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbs=
p;&nbsp;&nbsp;=20
not null default =
'N'<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=20
check (tipo_funcion in ('''J''<BR>','N')),<BR>&nbsp;&nbsp;&nbsp; primary =
key=20
(funcion)<BR>)<BR>/</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=3DCourier size=3D2><BR>comment on column =
sal.funciones.funcion is=20
'Funci=A2n'<BR>/</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=3DCourier size=3D2><BR>comment on column =
sal.funciones.descripcion=20
is 'Descripci=A2n'<BR>/</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=3DCourier size=3D2><BR>comment on column =
sal.funciones.tipo_funcion=20
is 'Tipo Funci=A2n'<BR>/</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=3DCourier=20
size=3D2><BR>/*=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D*/<BR>/*=20
Table :=20
horarios_por_turno&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&=
nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&n=
bsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nb=
sp;=20
*/<BR>/*=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D*/<BR>create=20
table sal.horarios_por_turno<BR>(<BR>&nbsp;&nbsp;&nbsp;=20
turno&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&n=
bsp;&nbsp;&nbsp;&nbsp;=20
smallint&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp=
;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=20
not null<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; check =
(turno=20
&gt;=3D 1),<BR>&nbsp;&nbsp;&nbsp;=20
dia&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbs=
p;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=20
char&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nb=
sp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbs=
p;&nbsp;&nbsp;=20
not null<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; check =
(dia in=20
('''2''<BR>','''3''<BR>','''4''<BR>','''5''<BR>','''6''<BR>','''7''<BR>',=
'1')),<BR>&nbsp;&nbsp;&nbsp;=20
hora_entrada_1&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=20
time&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nb=
sp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbs=
p;&nbsp;&nbsp;=20
not null,<BR>&nbsp;&nbsp;&nbsp;=20
hora_salida_1&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=20
time,<BR>&nbsp;&nbsp;&nbsp; =
hora_entrada_2&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=20
time,<BR>&nbsp;&nbsp;&nbsp;=20
hora_salida_2&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=20
time&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nb=
sp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbs=
p;&nbsp;&nbsp;=20
not null,<BR>&nbsp;&nbsp;&nbsp; total_horas_a_trabajar=20
numeric(6,2)&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&=
nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=20
not null,<BR>&nbsp;&nbsp;&nbsp; total_horas_a_considerar=20
numeric(6,2)&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&=
nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=20
not null,<BR>&nbsp;&nbsp;&nbsp; llegada_tardia_desde=20
time&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nb=
sp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbs=
p;&nbsp;&nbsp;=20
not null,<BR>&nbsp;&nbsp;&nbsp; primary key (turno, =
dia)<BR>)<BR>/</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=3DCourier=20
size=3D2><BR>/*=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3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<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; check =
(turno=20
&gt;=3D 1),<BR>&nbsp;&nbsp;&nbsp;=20
dia&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbs=
p;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=20
char&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nb=
sp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbs=
p;&nbsp;&nbsp;=20
not null<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; check =
(dia in=20
('''2''<BR>','''3''<BR>','''4''<BR>','''5''<BR>','''6''<BR>','''7''<BR>',=
'1')),<BR>&nbsp;&nbsp;&nbsp;=20
hora_entrada_1&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=20
time&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nb=
sp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbs=
p;&nbsp;&nbsp;=20
not null,<BR>&nbsp;&nbsp;&nbsp;=20
hora_salida_1&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=20
time,<BR>&nbsp;&nbsp;&nbsp; =
hora_entrada_2&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=20
time,<BR>&nbsp;&nbsp;&nbsp;=20
hora_salida_2&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=20
time&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nb=
sp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbs=
p;&nbsp;&nbsp;=20
not null,<BR>&nbsp;&nbsp;&nbsp; total_horas_a_trabajar=20
numeric(6,2)&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&=
nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=20
not null,<BR>&nbsp;&nbsp;&nbsp; total_horas_a_considerar=20
numeric(6,2)&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&=
nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=20
not null,<BR>&nbsp;&nbsp;&nbsp; llegada_tardia_desde=20
time&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nb=
sp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbs=
p;&nbsp;&nbsp;=20
not null,<BR>&nbsp;&nbsp;&nbsp; primary key (fecha, turno,=20
dia)<BR>)<BR>/</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=3DCourier=20
size=3D2><BR>/*=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D*/<BR>/*=20
Table :=20
horas_extras_autorizadas&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&=
nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&n=
bsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=20
*/<BR>/*=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D*/<BR>create=20
table sal.horas_extras_autorizadas<BR>(<BR>&nbsp;&nbsp;&nbsp;=20
numero_interno&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=20
integer&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; =

not null default autoincrement,<BR>&nbsp;&nbsp;&nbsp;=20
legajo&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&=
nbsp;&nbsp;&nbsp;=20
integer&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; =

not null<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; check =
(legajo=20
&gt;=3D 1),<BR>&nbsp;&nbsp;&nbsp;=20
desde&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&n=
bsp;&nbsp;&nbsp;&nbsp;=20
timestamp&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nbsp;&nbsp; check =

(autorizo &gt;=3D 1),<BR>&nbsp;&nbsp;&nbsp;=20
fecha_insercion&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=20
timestamp&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbs=
p;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=20
not null default current timestamp,<BR>&nbsp;&nbsp;&nbsp;=20
usuario_insercion&nbsp;&nbsp;&nbsp;=20
varchar(30)&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&n=
bsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=20
not null default current user,<BR>&nbsp;&nbsp;&nbsp;=20
observacion&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=20
varchar(256),<BR>&nbsp;&nbsp;&nbsp; primary key=20
(numero_interno)<BR>)<BR>/</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=3DCourier size=3D2><BR>comment on column=20
sal.horas_extras_autorizadas.numero_interno is 'N=A3mero=20
Interno'<BR>/</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=3DCourier size=3D2><BR>comment on column=20
sal.horas_extras_autorizadas.legajo is 'Legajo'<BR>/</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=3DCourier size=3D2><BR>comment on column=20
sal.horas_extras_autorizadas.desde is 'Desde'<BR>/</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=3DCourier size=3D2><BR>comment on column=20
sal.horas_extras_autorizadas.hasta is 'Hasta'<BR>/</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=3DCourier size=3D2><BR>comment on column=20
sal.horas_extras_autorizadas.novedad is 'Novedad'<BR>/</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=3DCourier size=3D2><BR>comment on column=20
sal.horas_extras_autorizadas.autorizo is 'Autoriz=A2'<BR>/</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=3DCourier size=3D2><BR>comment on column=20
sal.horas_extras_autorizadas.fecha_insercion is 'Fecha=20
Inserci=A2n'<BR>/</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=3DCourier size=3D2><BR>comment on column=20
sal.horas_extras_autorizadas.usuario_insercion is 'Usuario=20
Inserci=A2n'<BR>/</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=3DCourier size=3D2><BR>comment on column=20
sal.horas_extras_autorizadas.observacion is =
'Observaci=A2n'<BR>/</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=3DCourier=20
size=3D2><BR>/*=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D*/<BR>/*=20
Table :=20
idiomas&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&=
nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&n=
bsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=20
*/<BR>/*=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D*/<BR>create=20
table sal.idiomas<BR>(<BR>&nbsp;&nbsp;&nbsp;=20
idioma&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&=
nbsp;&nbsp;&nbsp;=20
smallint&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp=
;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=20
not null<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; check =
(idioma=20
&gt;=3D 1),<BR>&nbsp;&nbsp;&nbsp;=20
nombre&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&=
nbsp;&nbsp;&nbsp;=20
varchar(40)&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&n=
bsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=20
not null,<BR>&nbsp;&nbsp;&nbsp; primary key =
(idioma)<BR>)<BR>/</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=3DCourier size=3D2><BR>comment on column =
sal.idiomas.idioma is=20
'Idioma'<BR>/</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=3DCourier size=3D2><BR>comment on column =
sal.idiomas.nombre is=20
'Nombre'<BR>/</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=3DCourier=20
size=3D2><BR>/*=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=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&nbsp; check =
(lee in=20
('''N''<BR>','''R''<BR>','''B''<BR>','''M''<BR>','''E''<BR>','S')),<BR>&n=
bsp;&nbsp;&nbsp;=20
escribe&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=
&nbsp;&nbsp;=20
char&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nb=
sp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbs=
p;&nbsp;&nbsp;=20
not null<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; check =

(escribe in=20
('''N''<BR>','''R''<BR>','''B''<BR>','''M''<BR>','''E''<BR>','S')),<BR>&n=
bsp;&nbsp;&nbsp;=20
observacion&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=20
varchar(50),<BR>&nbsp;&nbsp;&nbsp; primary key (legajo,=20
idioma)<BR>)<BR>/</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=3DCourier size=3D2><BR>comment on column =
sal.idiomas_empleado.legajo=20
is 'Legajo'<BR>/</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=3DCourier size=3D2><BR>comment on column =
sal.idiomas_empleado.idioma=20
is 'Idioma'<BR>/</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=3DCourier size=3D2><BR>comment on column =
sal.idiomas_empleado.habla=20
is 'Habla'<BR>/</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=3DCourier size=3D2><BR>comment on column =
sal.idiomas_empleado.lee is=20
'Lee'<BR>/</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=3DCourier size=3D2><BR>comment on column=20
sal.idiomas_empleado.escribe is 'Escribe'<BR>/</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=3DCourier size=3D2><BR>comment on column=20
sal.idiomas_empleado.observacion is 'Observaci=A2n'<BR>/</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=3DCourier=20
size=3D2><BR>/*=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D*/<BR>/*=20
Table :=20
imagenes&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp=
;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&=
nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=20
*/<BR>/*=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D*/<BR>create=20
table sal.imagenes<BR>(<BR>&nbsp;&nbsp;&nbsp;=20
numero_interno&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=20
integer&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; =

not null default autoincrement,<BR>&nbsp;&nbsp;&nbsp;=20
legajo&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&=
nbsp;&nbsp;&nbsp;=20
integer&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; =

not null<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; check =
(legajo=20
&gt;=3D 1),<BR>&nbsp;&nbsp;&nbsp;=20
tipo_imagen&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=20
char&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nb=
sp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbs=
p;&nbsp;&nbsp;=20
not null<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; check =

(tipo_imagen in=20
('''1''<BR>','''2''<BR>','''3''<BR>','9')),<BR>&nbsp;&nbsp;&nbsp;=20
imagen&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&=
nbsp;&nbsp;&nbsp;=20
long binary,<BR>&nbsp;&nbsp;&nbsp;=20
observacion&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=20
varchar(256),<BR>&nbsp;&nbsp;&nbsp;=20
fecha&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&n=
bsp;&nbsp;&nbsp;&nbsp;=20
date&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nb=
sp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbs=
p;&nbsp;&nbsp;=20
not null default 'today()',<BR>&nbsp;&nbsp;&nbsp; primary key=20
(numero_interno)<BR>)<BR>/</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=3DCourier size=3D2><BR>comment on column =
sal.imagenes.numero_interno=20
is 'N=A3mero Interno'<BR>/</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=3DCourier size=3D2><BR>comment on column =
sal.imagenes.legajo is=20
'Legajo'<BR>/</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=3DCourier size=3D2><BR>comment on column =
sal.imagenes.tipo_imagen is=20
'Tipo Imagen'<BR>/</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=3DCourier size=3D2><BR>comment on column =
sal.imagenes.imagen is=20
'Imagen'<BR>/</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=3DCourier size=3D2><BR>comment on column =
sal.imagenes.observacion is=20
'Observaci=A2n'<BR>/</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=3DCourier size=3D2><BR>comment on column =
sal.imagenes.fecha is=20
'Fecha'<BR>/</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=3DCourier=20
size=3D2><BR>/*=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D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sp;&nbsp;&nbsp;&nbsp; check =
(legajo=20
&gt;=3D 1),<BR>&nbsp;&nbsp;&nbsp;=20
fecha&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&n=
bsp;&nbsp;&nbsp;&nbsp;=20
date&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nb=
sp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbs=
p;&nbsp;&nbsp;=20
not null,<BR>&nbsp;&nbsp;&nbsp; tipo_inasistencia&nbsp;&nbsp;&nbsp;=20
smallint&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp=
;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=20
not null<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; check =

(tipo_inasistencia &gt;=3D 1),<BR>&nbsp;&nbsp;&nbsp;=20
observacion&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=20
varchar(256)&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&=
nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=20
not null,<BR>&nbsp;&nbsp;&nbsp; =
fecha_insercion&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=20
timestamp&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbs=
p;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=20
not null default current timestamp,<BR>&nbsp;&nbsp;&nbsp;=20
usuario_insercion&nbsp;&nbsp;&nbsp;=20
varchar(30)&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&n=
bsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=20
not null default current user,<BR>&nbsp;&nbsp;&nbsp; primary key=20
(numero_interno)<BR>)<BR>/</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=3DCourier size=3D2><BR>comment on column=20
sal.inasistencias.numero_interno is 'N=A3mero Interno'<BR>/</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=3DCourier size=3D2><BR>comment on column =
sal.inasistencias.legajo is=20
'Legajo'<BR>/</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=3DCourier size=3D2><BR>comment on column =
sal.inasistencias.fecha is=20
'Fecha'<BR>/</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=3DCourier size=3D2><BR>comment on column=20
sal.inasistencias.tipo_inasistencia is 'Tipo =
Inasistencia'<BR>/</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=3DCourier size=3D2><BR>comment on column=20
sal.inasistencias.observacion is 'Observaci=A2n'<BR>/</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=3DCourier size=3D2><BR>comment on column=20
sal.inasistencias.fecha_insercion is 'Fecha =
Inserci=A2n'<BR>/</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=3DCourier size=3D2><BR>comment on column=20
sal.inasistencias.usuario_insercion is 'Usuario =
Inserci=A2n'<BR>/</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=3DCourier=20
size=3D2><BR>/*=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D*/<BR>/*=20
Table :=20
liquidacion&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&n=
bsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nb=
sp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbs=
p;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=20
*/<BR>/*=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D*/<BR>create=20
table sal.liquidacion<BR>(<BR>&nbsp;&nbsp;&nbsp;=20
legajo&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&=
nbsp;&nbsp;&nbsp;=20
integer&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; =

not null<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; check =
(legajo=20
&gt;=3D 1),<BR>&nbsp;&nbsp;&nbsp; primary key =
(legajo)<BR>)<BR>/</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=3DCourier size=3D2><BR>comment on column =
sal.liquidacion.legajo is=20
'Legajo'<BR>/</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=3DCourier=20
size=3D2><BR>/*=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D*/<BR>/*=20
Table :=20
lugares_de_trabajo&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&=
nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&n=
bsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nb=
sp;=20
*/<BR>/*=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D*/<BR>create=20
table sal.lugares_de_trabajo<BR>(<BR>&nbsp;&nbsp;&nbsp;=20
lugar_de_trabajo&nbsp;&nbsp;&nbsp;&nbsp;=20
smallint&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp=
;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=20
not null<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; check =

(lugar_de_trabajo &gt;=3D 1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p;&nbsp;&nbsp;=20
varchar(60)&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&n=
bsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=20
not null,<BR>&nbsp;&nbsp;&nbsp; logotipo_etiqueta&nbsp;&nbsp;&nbsp;=20
varchar(20)&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&n=
bsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=20
not null,<BR>&nbsp;&nbsp;&nbsp; primary key=20
(lugar_de_trabajo)<BR>)<BR>/</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=3DCourier size=3D2><BR>comment on column=20
sal.lugares_de_trabajo.lugar_de_trabajo is 'Lugar de =
Trabajo'<BR>/</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=3DCourier size=3D2><BR>comment on column=20
sal.lugares_de_trabajo.nombre is 'Nombre'<BR>/</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=3DCourier=20
size=3D2><BR>/*=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D*/<BR>/*=20
Table :=20
marcacion_asistencia&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp=
;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&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bsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=20
not null,<BR>&nbsp;&nbsp;&nbsp;=20
tipo_marcacion&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=20
char&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nb=
sp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbs=
p;&nbsp;&nbsp;=20
not null<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; check =

(tipo_marcacion in ('''E''<BR>','S')),<BR>&nbsp;&nbsp;&nbsp;=20
observacion&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=20
varchar(40),<BR>&nbsp;&nbsp;&nbsp; =
forma_marcacion&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=20
char&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nb=
sp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbs=
p;&nbsp;&nbsp;=20
not null<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; check =

(forma_marcacion in ('''A''<BR>','M')),<BR>&nbsp;&nbsp;&nbsp; primary =
key=20
(numero_interno)<BR>)<BR>/</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=3DCourier size=3D2><BR>comment on column=20
sal.marcacion_asistencia.numero_interno is 'N=FAmero =
Interno'<BR>/</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=3DCourier size=3D2><BR>comment on column=20
sal.marcacion_asistencia.legajo is 'Legajo'<BR>/</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=3DCourier size=3D2><BR>comment on column=20
sal.marcacion_asistencia.fecha is 'Fecha'<BR>/</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=3DCourier size=3D2><BR>comment on column=20
sal.marcacion_asistencia.tipo_marcacion is 'Tipo =
Marcaci=F3n'<BR>/</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=3DCourier size=3D2><BR>comment on column=20
sal.marcacion_asistencia.observacion is =
'Observaci=F3n'<BR>/</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=3DCourier size=3D2><BR>comment on column=20
sal.marcacion_asistencia.forma_marcacion is 'Forma =
Marcaci=F3n'<BR>/</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=3DCourier=20
size=3D2><BR>/*=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D*/<BR>/*=20
Table :=20
novedades&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbs=
p;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp=
;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=20
*/<BR>/*=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D*/<BR>create=20
table sal.novedades<BR>(<BR>&nbsp;&nbsp;&nbsp;=20
novedad&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=
&nbsp;&nbsp;=20
integer&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; =

not null<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; check =

(novedad between 1 and 9999),<BR>&nbsp;&nbsp;&nbsp;=20
nombre&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&=
nbsp;&nbsp;&nbsp;=20
varchar(40)&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&n=
bsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=20
not null,<BR>&nbsp;&nbsp;&nbsp;=20
ingreso&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=
&nbsp;&nbsp;=20
char&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nb=
sp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbs=
p;&nbsp;&nbsp;=20
not null default =
'S'<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=20
check (ingreso in ('''S''<BR>','N')),<BR>&nbsp;&nbsp;&nbsp;=20
cargar_base&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=20
char&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nb=
sp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbs=
p;&nbsp;&nbsp;=20
not null default =
'S'<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=20
check (cargar_base in ('''S''<BR>','N')),<BR>&nbsp;&nbsp;&nbsp;=20
cargar_cantidad&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=20
char&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nb=
sp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbs=
p;&nbsp;&nbsp;=20
not null default =
'S'<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=20
check (cargar_cantidad in ('''S''<BR>','N')),<BR>&nbsp;&nbsp;&nbsp;=20
incluir_mjt&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=20
char&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nb=
sp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbs=
p;&nbsp;&nbsp;&nbsp;=20
default 'S'<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; =
check=20
(incluir_mjt is null or ( incluir_mjt in ('''S''<BR>','N')=20
)),<BR>&nbsp;&nbsp;&nbsp; =
incluir_recibo&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=20
char&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nb=
sp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbs=
p;&nbsp;&nbsp;&nbsp;=20
default 'S'<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; =
check=20
(incluir_recibo is null or ( incluir_recibo in ('''S''<BR>','N')=20
)),<BR>&nbsp;&nbsp;&nbsp;=20
ips&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbs=
p;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=20
char&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nb=
sp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbs=
p;&nbsp;&nbsp;&nbsp;=20
default 'S'<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; =
check (ips=20
is null or ( ips in ('''S''<BR>','N') )),<BR>&nbsp;&nbsp;&nbsp; primary =
key=20
(novedad),<BR>&nbsp;&nbsp;&nbsp; check (check((cargar_base =3D 'S' and=20
cargar_cantidad =3D 'N') or<BR>&nbsp;&nbsp;&nbsp; (cargar_base =3D 'N' =
and=20
cargar_cantidad =3D 'S')))<BR>)<BR>/</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=3DCourier size=3D2><BR>comment on column =
sal.novedades.novedad is=20
'Novedad'<BR>/</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=3DCourier size=3D2><BR>comment on column =
sal.novedades.nombre is=20
'Nombre'<BR>/</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=3DCourier size=3D2><BR>comment on column =
sal.novedades.ingreso is=20
'Ingreso'<BR>/</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=3DCourier size=3D2><BR>comment on column =
sal.novedades.cargar_base=20
is 'Cargar Base'<BR>/</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=3DCourier size=3D2><BR>comment on column=20
sal.novedades.cargar_cantidad is 'Cargar Cantidad'<BR>/</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=3DCourier=20
size=3D2><BR>/*=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D*/<BR>/*=20
Table :=20
novedades_factores&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&=
nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&n=
bsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nb=
sp;=20
*/<BR>/*=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D*/<BR>create=20
table sal.novedades_factores<BR>(<BR>&nbsp;&nbsp;&nbsp;=20
novedad&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=
&nbsp;&nbsp;=20
integer&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; =

not null<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; check =

(novedad between 1 and 9999),<BR>&nbsp;&nbsp;&nbsp;=20
planilla&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp=
;&nbsp;=20
char&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nb=
sp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbs=
p;&nbsp;&nbsp;=20
not null<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; check =

(planilla in=20
('''1''<BR>','''2''<BR>','''3''<BR>','''4''<BR>','''5''<BR>','''6''<BR>',=
'''7''<BR>','''8''<BR>','9')),<BR>&nbsp;&nbsp;&nbsp;=20
factor_jornal&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=20
varchar(50)&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&n=
bsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=20
not null,<BR>&nbsp;&nbsp;&nbsp;=20
factor_mensual&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=20
varchar(50)&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&n=
bsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=20
not null,<BR>&nbsp;&nbsp;&nbsp;=20
factor_horista&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=20
varchar(50)&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&n=
bsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=20
not null,<BR>&nbsp;&nbsp;&nbsp;=20
factor_destajo&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=20
varchar(50)&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&n=
bsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=20
not null,<BR>&nbsp;&nbsp;&nbsp;=20
factor_otros&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=20
varchar(50)&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&n=
bsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=20
not null,<BR>&nbsp;&nbsp;&nbsp; factor_jornal_numero=20
double,<BR>&nbsp;&nbsp;&nbsp; factor_mensual_numero=20
double,<BR>&nbsp;&nbsp;&nbsp; factor_horista_numero=20
double,<BR>&nbsp;&nbsp;&nbsp; factor_destajo_numero=20
double,<BR>&nbsp;&nbsp;&nbsp; factor_otros_numero&nbsp;=20
double,<BR>&nbsp;&nbsp;&nbsp;=20
aguinable&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbs=
p;=20
char&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nb=
sp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbs=
p;&nbsp;&nbsp;&nbsp;=20
default 'S'<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; =
check=20
(aguinable is null or ( aguinable in ('''S''<BR>','N') =
)),<BR>&nbsp;&nbsp;&nbsp;=20
primary key (novedad, planilla)<BR>)<BR>/</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=3DCourier size=3D2><BR>comment on column=20
sal.novedades_factores.novedad is 'Novedad'<BR>/</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=3DCourier size=3D2><BR>comment on column=20
sal.novedades_factores.planilla is 'Planilla'<BR>/</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=3DCourier size=3D2><BR>comment on column=20
sal.novedades_factores.factor_jornal is 'Factor =
Jornal'<BR>/</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=3DCourier size=3D2><BR>comment on column=20
sal.novedades_factores.factor_mensual is 'Factor =
Mensual'<BR>/</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=3DCourier size=3D2><BR>comment on column=20
sal.novedades_factores.factor_horista is 'Factor =
Horista'<BR>/</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=3DCourier size=3D2><BR>comment on column=20
sal.novedades_factores.factor_destajo is 'Factor =
Destajo'<BR>/</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=3DCourier size=3D2><BR>comment on column=20
sal.novedades_factores.factor_otros is 'Factor Otros'<BR>/</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=3DCourier size=3D2><BR>comment on column=20
sal.novedades_factores.factor_jornal_numero is 'Factor Jornal=20
N=A3mero'<BR>/</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=3DCourier size=3D2><BR>comment on column=20
sal.novedades_factores.factor_mensual_numero is 'Factor Mensual=20
N=A3mero'<BR>/</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=3DCourier size=3D2><BR>comment on column=20
sal.novedades_factores.factor_horista_numero is 'Factor Horista=20
N=A3mero'<BR>/</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=3DCourier size=3D2><BR>comment on column=20
sal.novedades_factores.factor_destajo_numero is 'Factor Destajo=20
N=A3mero'<BR>/</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=3DCourier size=3D2><BR>comment on column=20
sal.novedades_factores.factor_otros_numero is 'Factor Otro=20
N=A3mero'<BR>/</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=3DCourier=20
size=3D2><BR>/*=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D*/<BR>/*=20
Table :=20
novedades_modelos&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&n=
bsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nb=
sp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbs=
p;&nbsp;=20
*/<BR>/*=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D*/<BR>create=20
table sal.novedades_modelos<BR>(<BR>&nbsp;&nbsp;&nbsp;=20
numero_interno&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=20
integer&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; =

not null default autoincrement,<BR>&nbsp;&nbsp;&nbsp;=20
legajo&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&=
nbsp;&nbsp;&nbsp;=20
integer&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; =

not null<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; check =
(legajo=20
&gt;=3D 1),<BR>&nbsp;&nbsp;&nbsp;=20
novedad&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=
&nbsp;&nbsp;=20
integer&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; =

not null<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; check =

(novedad between 1 and 9999),<BR>&nbsp;&nbsp;&nbsp;=20
planilla&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp=
;&nbsp;=20
char&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nb=
sp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbs=
p;&nbsp;&nbsp;=20
not null<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; check =

(planilla in=20
('''1''<BR>','''2''<BR>','''3''<BR>','''4''<BR>','''5''<BR>','''6''<BR>',=
'''7''<BR>','''8''<BR>','9')),<BR>&nbsp;&nbsp;&nbsp;=20
cantidad&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp=
;&nbsp;=20
numeric(6,2)&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&=
nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=20
not null,<BR>&nbsp;&nbsp;&nbsp;=20
base&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nb=
sp;&nbsp;&nbsp;&nbsp;&nbsp;=20
numeric(13,2)<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; =
check=20
(base is null or (base &gt;=3D 0 )),<BR>&nbsp;&nbsp;&nbsp;=20
factor&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&=
nbsp;&nbsp;&nbsp;=20
double&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&=
nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&n=
bsp;=20
not null<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; check =
(factor=20
&lt;&gt; 0),<BR>&nbsp;&nbsp;&nbsp; primary key=20
(numero_interno),<BR>&nbsp;&nbsp;&nbsp; unique (legajo, novedad,=20
planilla)<BR>)<BR>/</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=3DCourier size=3D2><BR>comment on column=20
sal.novedades_modelos.numero_interno is 'N=A3mero =
Interno'<BR>/</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=3DCourier size=3D2><BR>comment on column=20
sal.novedades_modelos.legajo is 'Legajo'<BR>/</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=3DCourier size=3D2><BR>comment on column=20
sal.novedades_modelos.novedad is 'Novedad'<BR>/</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=3DCourier size=3D2><BR>comment on column=20
sal.novedades_modelos.planilla is 'Planilla'<BR>/</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=3DCourier size=3D2><BR>comment on column=20
sal.novedades_modelos.cantidad is 'Cantidad'<BR>/</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=3DCourier size=3D2><BR>comment on column =
sal.novedades_modelos.base=20
is 'Base'<BR>/</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=3DCourier size=3D2><BR>comment on column=20
sal.novedades_modelos.factor is 'Factor'<BR>/</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=3DCourier=20
size=3D2><BR>/*=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D*/<BR>/*=20
Table :=20
novedades_modelos_auditoria&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbs=
p;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp=
;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=20
*/<BR>/*=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D*/<BR>create=20
table sal.novedades_modelos_auditoria<BR>(<BR>&nbsp;&nbsp;&nbsp;=20
numero_interno&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=20
integer&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; =

not null default autoincrement,<BR>&nbsp;&nbsp;&nbsp;=20
legajo&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&=
nbsp;&nbsp;&nbsp;=20
integer&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; =

not null,<BR>&nbsp;&nbsp;&nbsp;=20
novedad&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&n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p;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&n=
bsp;=20
not null,<BR>&nbsp;&nbsp;&nbsp; =
fecha_insercion&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=20
timestamp&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbs=
p;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=20
default current timestamp,<BR>&nbsp;&nbsp;&nbsp;=20
usuario_insercion&nbsp;&nbsp;&nbsp;=20
varchar(60)&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&n=
bsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=20
default current user,<BR>&nbsp;&nbsp;&nbsp; primary key=20
(numero_interno)<BR>)<BR>/</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=3DCourier=20
size=3D2><BR>/*=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D*/<BR>/*=20
Table :=20
novedades_proceso&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&n=
bsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nb=
sp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbs=
p;&nbsp;=20
*/<BR>/*=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D*/<BR>create=20
table sal.novedades_proceso<BR>(<BR>&nbsp;&nbsp;&nbsp;=20
numero_interno&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=20
integer&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; =

not null default autoincrement,<BR>&nbsp;&nbsp;&nbsp;=20
legajo&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&=
nbsp;&nbsp;&nbsp;=20
integer&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; =

not null<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; check =
(legajo=20
&gt;=3D 1),<BR>&nbsp;&nbsp;&nbsp;=20
novedad&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=
&nbsp;&nbsp;=20
integer&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; =

not null<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; check =

(novedad between 1 and 9999),<BR>&nbsp;&nbsp;&nbsp;=20
planilla&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp=
;&nbsp;=20
char&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nb=
sp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbs=
p;&nbsp;&nbsp;=20
not null<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; check =

(planilla in=20
('''1''<BR>','''2''<BR>','''3''<BR>','''4''<BR>','''5''<BR>','''6''<BR>',=
'''7''<BR>','''8''<BR>','9')),<BR>&nbsp;&nbsp;&nbsp;=20
cantidad&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp=
;&nbsp;=20
numeric(6,2)&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&=
nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=20
not null,<BR>&nbsp;&nbsp;&nbsp;=20
base&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nb=
sp;&nbsp;&nbsp;&nbsp;&nbsp;=20
numeric(13,2)<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; =
check=20
(base is null or (base &gt;=3D 0 )),<BR>&nbsp;&nbsp;&nbsp;=20
factor&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&=
nbsp;&nbsp;&nbsp;=20
double&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&=
nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&n=
bsp;=20
not null<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; check =
(factor=20
&lt;&gt; 0),<BR>&nbsp;&nbsp;&nbsp;=20
numero_proceso&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=20
integer,<BR>&nbsp;&nbsp;&nbsp; primary key=20
(numero_interno)<BR>)<BR>/</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=3DCourier size=3D2><BR>comment on column=20
sal.novedades_proceso.numero_interno is 'N=A3mero =
Interno'<BR>/</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=3DCourier size=3D2><BR>comment on column=20
sal.novedades_proceso.legajo is 'Legajo'<BR>/</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=3DCourier size=3D2><BR>comment on column=20
sal.novedades_proceso.novedad is 'Novedad'<BR>/</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=3DCourier size=3D2><BR>comment on column=20
sal.novedades_proceso.planilla is 'Planilla'<BR>/</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=3DCourier size=3D2><BR>comment on column=20
sal.novedades_proceso.cantidad is 'Cantidad'<BR>/</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=3DCourier size=3D2><BR>comment on column =
sal.novedades_proceso.base=20
is 'Base'<BR>/</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=3DCourier size=3D2><BR>comment on column=20
sal.novedades_proceso.factor is 'Factor'<BR>/</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=3DCourier=20
size=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nbsp;&nbsp;&nbsp;=
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; =

not null<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; check =
(legajo=20
&gt;=3D 1),<BR>&nbsp;&nbsp;&nbsp;=20
novedad&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=
&nbsp;&nbsp;=20
integer&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; =

not null<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; check =

(novedad between 1 and 9999),<BR>&nbsp;&nbsp;&nbsp;=20
planilla&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp=
;&nbsp;=20
char&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nb=
sp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbs=
p;&nbsp;&nbsp;=20
not null<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; check =

(planilla in=20
('''1''<BR>','''2''<BR>','''3''<BR>','''4''<BR>','''5''<BR>','''6''<BR>',=
'''7''<BR>','''8''<BR>','9')),<BR>&nbsp;&nbsp;&nbsp;=20
cantidad&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp=
;&nbsp;=20
decimal(10,4)&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=20
not null,<BR>&nbsp;&nbsp;&nbsp;=20
base&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nb=
sp;&nbsp;&nbsp;&nbsp;&nbsp;=20
numeric(13,2)<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; =
check=20
(base is null or (base &gt;=3D 0 )),<BR>&nbsp;&nbsp;&nbsp;=20
factor&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&=
nbsp;&nbsp;&nbsp;=20
double&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&=
nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&n=
bsp;=20
not null<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; check =
(factor=20
&lt;&gt; 0),<BR>&nbsp;&nbsp;&nbsp;=20
numero_proceso&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=20
integer,<BR>&nbsp;&nbsp;&nbsp;=20
fecha&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&n=
bsp;&nbsp;&nbsp;&nbsp;=20
timestamp&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbs=
p;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=20
default current timestamp,<BR>&nbsp;&nbsp;&nbsp;=20
usuario&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=
&nbsp;&nbsp;=20
varchar(60)&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&n=
bsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=20
default current user,<BR>&nbsp;&nbsp;&nbsp; primary key=20
(numero_interno)<BR>)<BR>/</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=3DCourier=20
size=3D2><BR>/*=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D*/<BR>/*=20
Table :=20
novedades_proceso_copy&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nb=
sp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbs=
p;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=20
*/<BR>/*=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D*/<BR>create=20
table sal.novedades_proceso_copy<BR>(<BR>&nbsp;&nbsp;&nbsp;=20
numero_interno&nbsp;&nbsp;&nb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&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp=
;&nbsp;=20
numeric(6,2)&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&=
nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=20
not null,<BR>&nbsp;&nbsp;&nbsp;=20
base&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nb=
sp;&nbsp;&nbsp;&nbsp;&nbsp;=20
numeric(13,2),<BR>&nbsp;&nbsp;&nbsp;=20
factor&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&=
nbsp;&nbsp;&nbsp;=20
double&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&=
nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&n=
bsp;=20
not null,<BR>&nbsp;&nbsp;&nbsp;=20
numero_proceso&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=20
integer,<BR>&nbsp;&nbsp;&nbsp; primary key (legajo, novedad, planilla,=20
numero_proceso)<BR>)<BR>/</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=3DCourier=20
size=3D2><BR>/*=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D*/<BR>/*=20
Table :=20
novedades_proceso_historico&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&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&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; =

not null<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; check =
(legajo=20
&gt;=3D 1),<BR>&nbsp;&nbsp;&nbsp;=20
novedad&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=
&nbsp;&nbsp;=20
integer&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; =

not null<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; check =

(novedad between 1 and 9999),<BR>&nbsp;&nbsp;&nbsp;=20
planilla&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp=
;&nbsp;=20
char&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nb=
sp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbs=
p;&nbsp;&nbsp;=20
not null<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; check =

(planilla in=20
('''1''<BR>','''2''<BR>','''3''<BR>','''4''<BR>','''5''<BR>','''6''<BR>',=
'''7''<BR>','''8''<BR>','9')),<BR>&nbsp;&nbsp;&nbsp;=20
cantidad&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp=
;&nbsp;=20
numeric(6,2)&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&=
nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=20
not null,<BR>&nbsp;&nbsp;&nbsp;=20
base&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nb=
sp;&nbsp;&nbsp;&nbsp;&nbsp;=20
numeric(13,2)<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; =
check=20
(base is null or (base &gt;=3D 0 )),<BR>&nbsp;&nbsp;&nbsp;=20
anio&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nb=
sp;&nbsp;&nbsp;&nbsp;&nbsp;=20
smallint<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; check =
(anio=20
is null or (anio between 1900 and 2500 )),<BR>&nbsp;&nbsp;&nbsp;=20
mes&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbs=
p;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=20
tinyint<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; check =
(mes is=20
null or (mes between 1 and 12 )),<BR>&nbsp;&nbsp;&nbsp;=20
factor&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&=
nbsp;&nbsp;&nbsp;=20
double&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&=
nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&n=
bsp;=20
not null<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; check =
(factor=20
&lt;&gt; 0),<BR>&nbsp;&nbsp;&nbsp;=20
numero_proceso&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=20
integer,<BR>&nbsp;&nbsp;&nbsp; primary key=20
(numero_interno)<BR>)<BR>/</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=3DCourier size=3D2><BR>comment on column=20
sal.novedades_proceso_historico.numero_interno is 'N=FAmero=20
Interno'<BR>/</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=3DCourier size=3D2><BR>comment on column=20
sal.novedades_proceso_historico.fecha_proceso is 'Fecha=20
Proceso'<BR>/</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=3DCourier size=3D2><BR>comment on column=20
sal.novedades_proceso_historico.legajo is 'Legajo'<BR>/</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=3DCourier size=3D2><BR>comment on column=20
sal.novedades_proceso_historico.novedad is 'Novedad'<BR>/</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=3DCourier size=3D2><BR>comment on column=20
sal.novedades_proceso_historico.planilla is 'Planilla'<BR>/</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=3DCourier size=3D2><BR>comment on column=20
sal.novedades_proceso_historico.cantidad is 'Cantidad'<BR>/</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=3DCourier size=3D2><BR>comment on column=20
sal.novedades_proceso_historico.base is 'Base'<BR>/</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=3DCourier size=3D2><BR>comment on column=20
sal.novedades_proceso_historico.anio is 'A=F1o'<BR>/</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=3DCourier size=3D2><BR>comment on column=20
sal.novedades_proceso_historico.mes is 'Mes'<BR>/</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=3DCourier size=3D2><BR>comment on column=20
sal.novedades_proceso_historico.factor is 'Factor'<BR>/</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=3DCourier=20
size=3D2><BR>/*=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D*/<BR>/*=20
Table :=20
novedades_proceso_historico_copy&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp=
;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=
&nbsp;=20
*/<BR>/*=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D*/<BR>create=20
table sal.novedades_proceso_historico_copy<BR>(<BR>&nbsp;&nbsp;&nbsp;=20
numero_interno&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=20
integer&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; =

not null,<BR>&nbsp;&nbsp;&nbsp;=20
fecha_proceso&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=20
date&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nb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nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&=
nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=20
not null,<BR>&nbsp;&nbsp;&nbsp;=20
base&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nb=
sp;&nbsp;&nbsp;&nbsp;&nbsp;=20
numeric(13,2),<BR>&nbsp;&nbsp;&nbsp;=20
anio&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nb=
sp;&nbsp;&nbsp;&nbsp;&nbsp;=20
smallint,<BR>&nbsp;&nbsp;&nbsp;=20
mes&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbs=
p;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=20
tinyint,<BR>&nbsp;&nbsp;&nbsp;=20
factor&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&=
nbsp;&nbsp;&nbsp;=20
double&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&=
nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&n=
bsp;=20
not null,<BR>&nbsp;&nbsp;&nbsp;=20
numero_proceso&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=20
integer,<BR>&nbsp;&nbsp;&nbsp; primary key=20
(numero_interno)<BR>)<BR>/</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=3DCourier=20
size=3D2><BR>/*=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3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bsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp=
;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=20
not null,<BR>&nbsp;&nbsp;&nbsp; primary key =
(numero)<BR>)<BR>/</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=3DCourier size=3D2><BR>comment on column=20
sal.numeros_patronales.numero_patronal is 'Numero =
Patronal'<BR>/</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=3DCourier size=3D2><BR>comment on column=20
sal.numeros_patronales.aclaracion is 'Aclaraci=A2n'<BR>/</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=3DCourier=20
size=3D2><BR>/*=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D*/<BR>/*=20
Table :=20
numeros_patronales_mjt&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nb=
sp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbs=
p;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=20
*/<BR>/*=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D*/<BR>create=20
table sal.numeros_patronales_mjt<BR>(<BR>&nbsp;&nbsp;&nbsp;=20
codigo&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&=
nbsp;&nbsp;&nbsp;=20
integer&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; =

not null,<BR>&nbsp;&nbsp;&nbsp;=20
descripcion&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=20
varchar(40)&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&n=
bsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=20
not null,<BR>&nbsp;&nbsp;&nbsp;=20
numero_mjt&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=20
varchar(40)&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&n=
bsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=20
not null,<BR>&nbsp;&nbsp;&nbsp;=20
direccion&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbs=
p;=20
varchar(60),<BR>&nbsp;&nbsp;&nbsp;=20
localidad&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbs=
p;=20
varchar(30),<BR>&nbsp;&nbsp;&nbsp;=20
departamento&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=20
varchar(30),<BR>&nbsp;&nbsp;&nbsp; primary key =
(codigo)<BR>)<BR>/</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=3DCourier=20
size=3D2><BR>/*=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D*/<BR>/*=20
Table :=20
otras_informaciones&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&=
nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=20
*/<BR>/*=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D*/<BR>create=20
table sal.otras_informaciones<BR>(<BR>&nbsp;&nbsp;&nbsp;=20
numero_interno&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=20
integer&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; =

not null default autoincrement,<BR>&nbsp;&nbsp;&nbsp;=20
legajo&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&=
nbsp;&nbsp;&nbsp;=20
integer&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; =

not null<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; check =
(legajo=20
&gt;=3D 1),<BR>&nbsp;&nbsp;&nbsp; =
tipo_informacion&nbsp;&nbsp;&nbsp;&nbsp;=20
char<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; check=20
(tipo_informacion is null or ( tipo_informacion in=20
('''D''<BR>','''P''<BR>','''E''<BR>','O') )),<BR>&nbsp;&nbsp;&nbsp;=20
aclaracion&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=20
varchar(256)&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&=
nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=20
not null,<BR>&nbsp;&nbsp;&nbsp; primary key=20
(numero_interno)<BR>)<BR>/</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=3DCourier size=3D2><BR>comment on column=20
sal.otras_informaciones.numero_interno is 'N=A3mero =
Interno'<BR>/</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=3DCourier size=3D2><BR>comment on column=20
sal.otras_informaciones.legajo is 'Legajo'<BR>/</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=3DCourier size=3D2><BR>comment on column=20
sal.otras_informaciones.tipo_informacion is 'Tipo =
Informaci=A2n'<BR>/</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=3DCourier size=3D2><BR>comment on column=20
sal.otras_informaciones.aclaracion is 'Aclaraci=A2n'<BR>/</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=3DCourier=20
size=3D2><BR>/*=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D*/<BR>/*=20
Table :=20
otros_conocimientos&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&=
nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=20
*/<BR>/*=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D*/<BR>create=20
table sal.otros_conocimientos<BR>(<BR>&nbsp;&nbsp;&nbsp;=20
numero_interno&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=20
integer&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; =

not null default autoincrement,<BR>&nbsp;&nbsp;&nbsp;=20
legajo&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&=
nbsp;&nbsp;&nbsp;=20
integer&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; =

not null<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; check =
(legajo=20
&gt;=3D 1),<BR>&nbsp;&nbsp;&nbsp;=20
conocimiento&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=20
varchar(40),<BR>&nbsp;&nbsp;&nbsp;=20
observacion&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=20
varchar(50),<BR>&nbsp;&nbsp;&nbsp; primary key=20
(numero_interno)<BR>)<BR>/</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=3DCourier size=3D2><BR>comment on column=20
sal.otros_conocimientos.numero_interno is 'N=A3mero =
Interno'<BR>/</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=3DCourier size=3D2><BR>comment on column=20
sal.otros_conocimientos.legajo is 'Legajo'<BR>/</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=3DCourier size=3D2><BR>comment on column=20
sal.otros_conocimientos.conocimiento is 'Conocimiento'<BR>/</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=3DCourier size=3D2><BR>comment on column=20
sal.otros_conocimientos.observacion is 'Observaci=A2n'<BR>/</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=3DCourier=20
size=3D2><BR>/*=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D*/<BR>/*=20
Table :=20
otros_documentos_empleado&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&=
nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=20
*/<BR>/*=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D*/<BR>create=20
table sal.otros_documentos_empleado<BR>(<BR>&nbsp;&nbsp;&nbsp;=20
numero_interno&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=20
integer&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; =

not null default autoincrement,<BR>&nbsp;&nbsp;&nbsp;=20
legajo&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&=
nbsp;&nbsp;&nbsp;=20
integer&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; =

not null<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; check =
(legajo=20
&gt;=3D 1),<BR>&nbsp;&nbsp;&nbsp;=20
tipo&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nb=
sp;&nbsp;&nbsp;&nbsp;&nbsp;=20
integer&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; =

not null,<BR>&nbsp;&nbsp;&nbsp;=20
identificador&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=20
varchar(20),<BR>&nbsp;&nbsp;&nbsp;=20
observacion&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=20
varchar(50),<BR>&nbsp;&nbsp;&nbsp; primary key=20
(numero_interno)<BR>)<BR>/</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=3DCourier size=3D2><BR>comment on column=20
sal.otros_documentos_empleado.numero_interno is 'N=A3mero=20
Interno'<BR>/</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=3DCourier size=3D2><BR>comment on column=20
sal.otros_documentos_empleado.legajo is 'Legajo'<BR>/</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=3DCourier size=3D2><BR>comment on column=20
sal.otros_documentos_empleado.tipo is 'Tipo'<BR>/</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=3DCourier size=3D2><BR>comment on column=20
sal.otros_documentos_empleado.identificador is =
'Identificador'<BR>/</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=3DCourier size=3D2><BR>comment on column=20
sal.otros_documentos_empleado.observacion is =
'Observaci=A2n'<BR>/</FONT></DIV>
<DIV>&nbs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<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; check =
(pais=20
&gt;=3D 1),<BR>&nbsp;&nbsp;&nbsp;=20
nombre&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&=
nbsp;&nbsp;&nbsp;=20
varchar(40)&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&n=
bsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=20
not null,<BR>&nbsp;&nbsp;&nbsp;=20
nacionalidad&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=20
varchar(40)&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&n=
bsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=20
not null,<BR>&nbsp;&nbsp;&nbsp; primary key =
(pais)<BR>)<BR>/</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=3DCourier size=3D2><BR>comment on column sal.paises.pais =
is=20
'Pa=A1s'<BR>/</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=3DCourier size=3D2><BR>comment on column =
sal.paises.nombre is=20
'Nombre'<BR>/</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=3DCourier size=3D2><BR>comment on column =
sal.paises.nacionalidad is=20
'Nacionalidad'<BR>/</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=3DCourier=20
size=3D2><BR>/*=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D*/<BR>/*=20
Table :=20
parametros_asistencia&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbs=
p;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp=
;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=20
*/<BR>/*=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D*/<BR>create=20
table sal.parametros_asistencia<BR>(<BR>&nbsp;&nbsp;&nbsp;=20
solo_clave&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=20
smallint&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp=
;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=20
not null<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; check =

(solo_clave between 1 and 1),<BR>&nbsp;&nbsp;&nbsp; =
lapso_entre_marcaciones=20
numeric(2)&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nb=
sp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=20
not null,<BR>&nbsp;&nbsp;&nbsp; imprimir_auditoria&nbsp;&nbsp;=20
char&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nb=
sp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbs=
p;&nbsp;&nbsp;=20
not null default =
'S'<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=20
check (imprimir_auditoria in ('''S''<BR>','N')),<BR>&nbsp;&nbsp;&nbsp;=20
tiempo_conexion&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; =
smallint,<BR>&nbsp;&nbsp;&nbsp;=20
monto_multa&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=20
numeric(19,4),<BR>&nbsp;&nbsp;&nbsp; primary key=20
(solo_clave)<BR>)<BR>/</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=3DCourier size=3D2><BR>comment on column=20
sal.parametros_asistencia.solo_clave is 'Solo Clave'<BR>/</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=3DCourier size=3D2><BR>comment on column=20
sal.parametros_asistencia.lapso_entre_marcaciones is 'Lapso Entre=20
Marcaciones'<BR>/</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=3DCourier size=3D2><BR>comment on column=20
sal.parametros_asistencia.imprimir_auditoria is 'Imprimir=20
Auditor=EDa'<BR>/</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=3DCourier=20
size=3D2><BR>/*=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D*/<BR>/*=20
Table :=20
parametros_codigos&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&=
nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&n=
bsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nb=
sp;=20
*/<BR>/*=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D*/<BR>create=20
table sal.parametros_codigos<BR>(<BR>&nbsp;&nbsp;&nbsp;=20
solo_clave&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=20
smallint&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp=
;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=20
not null<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; check =

(solo_clave between 1 and 1),<BR>&nbsp;&nbsp;&nbsp;=20
salario_minimo&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=20
numeric(13,2),<BR>&nbsp;&nbsp;&nbsp; codigo_novedad_ips&nbsp;&nbsp;=20
integer<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; check=20
(codigo_novedad_ips is null or (codigo_novedad_ips between 1 and 9999=20
)),<BR>&nbsp;&nbsp;&nbsp; codigo_novedad_bf&nbsp;&nbsp;&nbsp;=20
integer<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; check=20
(codigo_novedad_bf is null or (codigo_novedad_bf between 1 and 9999=20
)),<BR>&nbsp;&nbsp;&nbsp; =
maxima_edad_bf&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=20
tinyint<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; check=20
(maxima_edad_bf is null or (maxima_edad_bf between 1 and 150=20
)),<BR>&nbsp;&nbsp;&nbsp; maximo_salario_bf&nbsp;&nbsp;&nbsp;=20
numeric(13,2),<BR>&nbsp;&nbsp;&nbsp; codigo_novedad_hn&nbsp;&nbsp;&nbsp; =

integer<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; check=20
(codigo_novedad_hn is null or (codigo_novedad_hn between 1 and 9999=20
)),<BR>&nbsp;&nbsp;&nbsp; codigo_novedad_he30&nbsp;=20
integer<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; check=20
(codigo_novedad_he30 is null or (codigo_novedad_he30 between 1 and 9999=20
)),<BR>&nbsp;&nbsp;&nbsp; codigo_novedad_he50&nbsp;=20
integer<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; check=20
(codigo_novedad_he50 is null or (codigo_novedad_he50 between 1 and 9999=20
)),<BR>&nbsp;&nbsp;&nbsp; codigo_novedad_he100=20
integer<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; check=20
(codigo_novedad_he100 is null or (codigo_novedad_he100 between 1 and =
9999=20
)),<BR>&nbsp;&nbsp;&nbsp; codigo_novedad_vacaciones=20
integer<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; check=20
(codigo_novedad_vacaciones is null or (codigo_novedad_vacaciones between =
1 and=20
9999 )),<BR>&nbsp;&nbsp;&nbsp; codigo_novedad_dt&nbsp;&nbsp;&nbsp;=20
integer<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; check=20
(codigo_novedad_dt is null or (codigo_novedad_dt between 1 and 9999=20
)),<BR>&nbsp;&nbsp;&nbsp; porcentaje_patronal_ips=20
numeric(6,2),<BR>&nbsp;&nbsp;&nbsp; porcentaje_obrero_ips=20
numeric(6,2),<BR>&nbsp;&nbsp;&nbsp; codigo_novedad_ap&nbsp;&nbsp;&nbsp;=20
integer<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; check=20
(codigo_novedad_ap is null or (codigo_novedad_ap between 1 and 9999=20
)),<BR>&nbsp;&nbsp;&nbsp;=20
redondeo&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp=
;&nbsp;=20
numeric(2),<BR>&nbsp;&nbsp;&nbsp;=20
mayor_de_edad&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=20
tinyint<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; check=20
(mayor_de_edad is null or (mayor_de_edad between 1 and 150=20
)),<BR>&nbsp;&nbsp;&nbsp; adelanto_aguinaldo&nbsp;&nbsp;=20
integer<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; check=20
(adelanto_aguinaldo is null or (adelanto_aguinaldo between 1 and 9999=20
)),<BR>&nbsp;&nbsp;&nbsp; codigo_novedad_indemnizacion=20
integer<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; check=20
(codigo_novedad_indemnizacion is null or (codigo_novedad_indemnizacion =
between 1=20
and 9999 )),<BR>&nbsp;&nbsp;&nbsp; codigo_novedad_reposo=20
integer<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; check=20
(codigo_novedad_reposo is null or (codigo_novedad_reposo between 1 and =
9999=20
)),<BR>&nbsp;&nbsp;&nbsp;=20
nro_de_cuenta&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=20
varchar(11),<BR>&nbsp;&nbsp;&nbsp;=20
cod_de_empresa&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=20
varchar(2),<BR>&nbsp;&nbsp;&nbsp;=20
supervisor&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=20
varchar(40),<BR>&nbsp;&nbsp;&nbsp;=20
gerente&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=
&nbsp;&nbsp;=20
varchar(40),<BR>&nbsp;&nbsp;&nbsp;=20
cargo&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&n=
bsp;&nbsp;&nbsp;&nbsp;=20
varchar(30),<BR>&nbsp;&nbsp;&nbsp; primary key=20
(solo_clave)<BR>)<BR>/</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=3DCourier size=3D2><BR>comment on column=20
sal.parametros_codigos.solo_clave is 'Solo Clave'<BR>/</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=3DCourier size=3D2><BR>comment on column=20
sal.parametros_codigos.salario_minimo is 'Salario =
Minimo'<BR>/</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=3DCourier size=3D2><BR>comment on column=20
sal.parametros_codigos.codigo_novedad_ips is 'IPS'<BR>/</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=3DCourier size=3D2><BR>comment on column=20
sal.parametros_codigos.codigo_novedad_bf is 'Bonificaci=A2n=20
Familiar'<BR>/</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=3DCourier size=3D2><BR>comment on column=20
sal.parametros_codigos.maxima_edad_bf is 'Maxima edad =
BF'<BR>/</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=3DCourier size=3D2><BR>comment on column=20
sal.parametros_codigos.maximo_salario_bf is 'Maximo Salario=20
BF'<BR>/</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=3DCourier size=3D2><BR>comment on column=20
sal.parametros_codigos.codigo_novedad_hn is 'Horas =
Normales'<BR>/</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=3DCourier size=3D2><BR>comment on column=20
sal.parametros_codigos.codigo_novedad_he30 is 'Horas Extras 30=20
%'<BR>/</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=3DCourier size=3D2><BR>comment on column=20
sal.parametros_codigos.codigo_novedad_he50 is 'Horas Extras 50=20
%'<BR>/</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=3DCourier size=3D2><BR>comment on column=20
sal.parametros_codigos.codigo_novedad_he100 is 'Horas Extras 100=20
%'<BR>/</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=3DCourier size=3D2><BR>comment on column=20
sal.parametros_codigos.codigo_novedad_vacaciones is 'C=A2digo Novedad=20
Vacaciones'<BR>/</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=3DCourier size=3D2><BR>comment on column=20
sal.parametros_codigos.codigo_novedad_dt is 'D=A1as =
Trabajados'<BR>/</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=3DCourier size=3D2><BR>comment on column=20
sal.parametros_codigos.porcentaje_patronal_ips is 'Porcentaje Patronal=20
IPS'<BR>/</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=3DCourier size=3D2><BR>comment on column=20
sal.parametros_codigos.porcentaje_obrero_ips is 'Porcentaje Obrero=20
IPS'<BR>/</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=3DCourier size=3D2><BR>comment on column=20
sal.parametros_codigos.codigo_novedad_ap is 'Aguinaldo=20
Proporcional'<BR>/</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=3DCourier size=3D2><BR>comment on column=20
sal.parametros_codigos.redondeo is 'Redondeo'<BR>/</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=3DCourier size=3D2><BR>comment on column=20
sal.parametros_codigos.mayor_de_edad is 'Mayor de =
Edad'<BR>/</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=3DCourier=20
size=3D2><BR>/*=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D*/<BR>/*=20
Table :=20
parientes&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbs=
p;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp=
;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=20
*/<BR>/*=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D*/<BR>create=20
table sal.parientes<BR>(<BR>&nbsp;&nbsp;&nbsp;=20
numero_interno&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=20
integer&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; =

not null default autoincrement,<BR>&nbsp;&nbsp;&nbsp;=20
legajo&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&=
nbsp;&nbsp;&nbsp;=20
integer&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; =

not null<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; check =
(legajo=20
&gt;=3D 1),<BR>&nbsp;&nbsp;&nbsp;=20
apellido&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp=
;&nbsp;=20
varchar(20)&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&n=
bsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=20
not null,<BR>&nbsp;&nbsp;&nbsp;=20
nombre&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&=
nbsp;&nbsp;&nbsp;=20
varchar(20)&nbsp;&nbsp;&nbsp;&nbsp;&nbsp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co in=20
('''P''<BR>','''M''<BR>','''C''<BR>','''H''<BR>','O')),<BR>&nbsp;&nbsp;&n=
bsp;=20
estado_civil&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=20
char&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nb=
sp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbs=
p;&nbsp;&nbsp;=20
not null default =
'S'<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=20
check (estado_civil in=20
('''S''<BR>','''C''<BR>','''D''<BR>','''V''<BR>','O')),<BR>&nbsp;&nbsp;&n=
bsp;=20
dependiente&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=20
char&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nb=
sp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbs=
p;&nbsp;&nbsp;=20
not null default =
'S'<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=20
check (dependiente in ('''S''<BR>','N')),<BR>&nbsp;&nbsp;&nbsp;=20
profesion&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbs=
p;=20
integer&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; =

not null<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; check =

(profesion &gt;=3D 1),<BR>&nbsp;&nbsp;&nbsp;=20
actividad&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbs=
p;=20
varchar(40),<BR>&nbsp;&nbsp;&nbsp;=20
nacionalidad&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=20
integer&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; =

not null<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; check =

(nacionalidad &gt;=3D 1),<BR>&nbsp;&nbsp;&nbsp;=20
observacion&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=20
varchar(50),<BR>&nbsp;&nbsp;&nbsp; primary key=20
(numero_interno)<BR>)<BR>/</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=3DCourier size=3D2><BR>comment on column=20
sal.parientes.numero_interno is 'N=A3mero interno'<BR>/</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=3DCourier size=3D2><BR>comment on column =
sal.parientes.legajo is=20
'Legajo'<BR>/</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=3DCourier size=3D2><BR>comment on column =
sal.parientes.apellido is=20
'Apellido'<BR>/</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=3DCourier size=3D2><BR>comment on column =
sal.parientes.nombre is=20
'Nombre'<BR>/</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=3DCourier size=3D2><BR>comment on column=20
sal.parientes.fecha_nacimiento is 'Fecha Nacimiento'<BR>/</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=3DCourier size=3D2><BR>comment on column =
sal.parientes.sexo is=20
'Sexo'<BR>/</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=3DCourier size=3D2><BR>comment on column =
sal.parientes.parentezco is=20
'Parentezco'<BR>/</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=3DCourier size=3D2><BR>comment on column =
sal.parientes.estado_civil=20
is 'Estado Civil'<BR>/</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=3DCourier size=3D2><BR>comment on column =
sal.parientes.dependiente=20
is 'Dependiente'<BR>/</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=3DCourier size=3D2><BR>comment on column =
sal.parientes.profesion is=20
'Profesi=A2n'<BR>/</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=3DCourier size=3D2><BR>comment on column =
sal.parientes.actividad is=20
'Actividad'<BR>/</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=3DCourier size=3D2><BR>comment on column =
sal.parientes.nacionalidad=20
is 'Nacionalidad'<BR>/</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=3DCourier size=3D2><BR>comment on column =
sal.parientes.observacion=20
is 'Observaci=A2n'<BR>/</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=3DCourier=20
size=3D2><BR>/*=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D*/<BR>/*=20
Table :=20
pbcatcol&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp=
;&nbsp;&nbsp;&nb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nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=20
not null,<BR>&nbsp;&nbsp;&nbsp;=20
pbe_edit&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp=
;&nbsp;=20
char(254),<BR>&nbsp;&nbsp;&nbsp;=20
pbe_type&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp=
;&nbsp;=20
smallint,<BR>&nbsp;&nbsp;&nbsp;=20
pbe_cntr&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp=
;&nbsp;=20
integer,<BR>&nbsp;&nbsp;&nbsp;=20
pbe_seqn&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp=
;&nbsp;=20
smallint&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp=
;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=20
not null,<BR>&nbsp;&nbsp;&nbsp;=20
pbe_flag&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp=
;&nbsp;=20
integer,<BR>&nbsp;&nbsp;&nbsp;=20
pbe_work&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp=
;&nbsp;=20
char(32),<BR>&nbsp;&nbsp;&nbsp; primary key (pbe_name,=20
pbe_seqn)<BR>)<BR>/</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=3DCourier=20
size=3D2><BR>/*=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3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sp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbs=
p;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=20
not null,<BR>&nbsp;&nbsp;&nbsp;=20
hasta&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&n=
bsp;&nbsp;&nbsp;&nbsp;=20
timestamp&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbs=
p;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=20
not null,<BR>&nbsp;&nbsp;&nbsp;=20
observacion&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=20
varchar(40),<BR>&nbsp;&nbsp;&nbsp;=20
autorizo&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp=
;&nbsp;=20
integer&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; =

not null<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; check =

(autorizo &gt;=3D 1),<BR>&nbsp;&nbsp;&nbsp;=20
fecha_insercion&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=20
timestamp&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbs=
p;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=20
not null default current timestamp,<BR>&nbsp;&nbsp;&nbsp;=20
usuario_insercion&nbsp;&nbsp;&nbsp;=20
varchar(30)&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&n=
bsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=20
not null default current user,<BR>&nbsp;&nbsp;&nbsp; primary key=20
(numero_interno)<BR>)<BR>/</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=3DCourier size=3D2><BR>comment on column =
sal.permisos.numero_interno=20
is 'N=A3mero Interno'<BR>/</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=3DCourier size=3D2><BR>comment on column =
sal.permisos.legajo is=20
'Legajo'<BR>/</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=3DCourier size=3D2><BR>comment on column =
sal.permisos.desde is=20
'Desde'<BR>/</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=3DCourier size=3D2><BR>comment on column =
sal.permisos.hasta is=20
'Hasta'<BR>/</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=3DCourier size=3D2><BR>comment on column =
sal.permisos.observacion is=20
'Observaci=A2n'<BR>/</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=3DCourier size=3D2><BR>comment on column =
sal.permisos.autorizo is=20
'Autoriz=A2'<BR>/</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=3DCourier size=3D2><BR>comment on column=20
sal.permisos.fecha_insercion is 'Fecha Inserci=A2n'<BR>/</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=3DCourier size=3D2><BR>comment on column=20
sal.permisos.usuario_insercion is 'Usuario =
Inserci=A2n'<BR>/</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=3DCourier=20
size=3D2><BR>/*=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D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sp;&nbsp;&nbsp;&nbsp;&nbsp=
;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=20
not null<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; check =

(politica &gt;=3D 1),<BR>&nbsp;&nbsp;&nbsp;=20
desde_fecha&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=20
date&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nb=
sp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbs=
p;&nbsp;&nbsp;=20
not null,<BR>&nbsp;&nbsp;&nbsp;=20
observacion&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=20
varchar(256),<BR>&nbsp;&nbsp;&nbsp;=20
fecha_insercion&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=20
timestamp&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbs=
p;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=20
not null default current timestamp,<BR>&nbsp;&nbsp;&nbsp;=20
usuario_insercion&nbsp;&nbsp;&nbsp;=20
varchar(30)&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&n=
bsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=20
not null default current user,<BR>&nbsp;&nbsp;&nbsp; primary key =
(legajo,=20
politica)<BR>)<BR>/</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=3DCourier size=3D2><BR>comment on column=20
sal.politica_vacacional_empleado.legajo is 'Legajo'<BR>/</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=3DCourier size=3D2><BR>comment on column=20
sal.politica_vacacional_empleado.politica is =
'Pol=A1tica'<BR>/</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=3DCourier size=3D2><BR>comment on column=20
sal.politica_vacacional_empleado.desde_fecha is 'Desde =
Fecha'<BR>/</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=3DCourier size=3D2><BR>comment on column=20
sal.politica_vacacional_empleado.observacion is =
'Observaci=A2n'<BR>/</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=3DCourier size=3D2><BR>comment on column=20
sal.politica_vacacional_empleado.fecha_insercion is 'Fecha=20
Inserci=A2n'<BR>/</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=3DCourier size=3D2><BR>comment on column=20
sal.politica_vacacional_empleado.usuario_insercion is 'Usuario=20
Inserci=A2n'<BR>/</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=3DCourier=20
size=3D2><BR>/*=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D*/<BR>/*=20
Table :=20
politicas_vacacionales&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nb=
sp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbs=
p;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=20
*/<BR>/*=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D*/<BR>create=20
table sal.politicas_vacacionales<BR>(<BR>&nbsp;&nbsp;&nbsp;=20
politica&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp=
;&nbsp;=20
smallint&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp=
;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=20
not null<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; check =

(politica &gt;=3D 1),<BR>&nbsp;&nbsp;&nbsp;=20
nombre&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&=
nbsp;&nbsp;&nbsp;=20
varchar(40),<BR>&nbsp;&nbsp;&nbsp; primary key =
(politica)<BR>)<BR>/</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=3DCourier size=3D2><BR>comment on column=20
sal.politicas_vacacionales.politica is 'Pol=A1tica'<BR>/</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=3DCourier size=3D2><BR>comment on column=20
sal.politicas_vacacionales.nombre is 'Nombre'<BR>/</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=3DCourier=20
size=3D2><BR>/*=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D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nbsp;&nbsp;&nbsp;=20
not null<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; check =
(anos=20
between 1 and 99),<BR>&nbsp;&nbsp;&nbsp; dias_de_vacaciones&nbsp;&nbsp;=20
tinyint,<BR>&nbsp;&nbsp;&nbsp; primary key (politica,=20
anos)<BR>)<BR>/</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=3DCourier size=3D2><BR>comment on column=20
sal.politicas_vacionales_detalles.politica is =
'Pol=EDtica'<BR>/</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=3DCourier size=3D2><BR>comment on column=20
sal.politicas_vacionales_detalles.anos is 'A=F1os'<BR>/</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=3DCourier size=3D2><BR>comment on column=20
sal.politicas_vacionales_detalles.dias_de_vacaciones is 'D=EDas de=20
Vacaciones'<BR>/</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=3DCourier=20
size=3D2><BR>/*=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D*/<BR>/*=20
Table :=20
problemas&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbs=
p;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp=
;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=20
*/<BR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sp;&nbsp;&nbsp;&nbsp;&=
nbsp;&nbsp;&nbsp;&nbsp;=20
*/<BR>/*=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D*/<BR>create=20
table sal.proceso_fechas<BR>(<BR>&nbsp;&nbsp;&nbsp;=20
solo_clave&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=20
smallint&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp=
;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=20
not null<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; check =

(solo_clave between 1 and 9),<BR>&nbsp;&nbsp;&nbsp;=20
fecha_proceso&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=20
date,<BR>&nbsp;&nbsp;&nbsp;=20
anio&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nb=
sp;&nbsp;&nbsp;&nbsp;&nbsp;=20
smallint<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; check =
(anio=20
is null or (anio between 1900 and 2500 )),<BR>&nbsp;&nbsp;&nbsp;=20
mes&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbs=
p;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=20
tinyint<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; check =
(mes is=20
null or (mes between 1 and 12 )),<BR>&nbsp;&nbsp;&nbsp;=20
descripcion&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=20
varchar(40),<BR>&nbsp;&nbsp;&nbsp; primary key=20
(solo_clave)<BR>)<BR>/</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=3DCourier size=3D2><BR>comment on column=20
sal.proceso_fechas.solo_clave is 'Solo Clave'<BR>/</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=3DCourier size=3D2><BR>comment on column=20
sal.proceso_fechas.fecha_proceso is 'Fecha Proceso'<BR>/</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=3DCourier size=3D2><BR>comment on column =
sal.proceso_fechas.anio is=20
'A=A4o'<BR>/</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=3DCourier size=3D2><BR>comment on column =
sal.proceso_fechas.mes is=20
'Mes'<BR>/</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=3DCourier=20
size=3D2><BR>/*=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D*/<BR>/*=20
Table :=20
profesiones&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&n=
bsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nb=
sp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbs=
p;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=20
*/<BR>/*=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D*/<BR>create=20
table sal.profesiones<BR>(<BR>&nbsp;&nbsp;&nbsp;=20
profesion&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbs=
p;=20
integer&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; =

not null<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; check =

(profesion &gt;=3D 1),<BR>&nbsp;&nbsp;&nbsp;=20
nombre&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&=
nbsp;&nbsp;&nbsp;=20
varchar(40),<BR>&nbsp;&nbsp;&nbsp; primary key=20
(profesion)<BR>)<BR>/</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=3DCourier size=3D2><BR>comment on column =
sal.profesiones.profesion=20
is 'Profesi=A2n'<BR>/</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=3DCourier size=3D2><BR>comment on column =
sal.profesiones.nombre is=20
'Nombre'<BR>/</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=3DCourier=20
size=3D2><BR>/*=3D=3D=3D=3D=3D=3D=3D=3D=3D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p;&nbsp;&nbsp;=20
not null default current timestamp,<BR>&nbsp;&nbsp;&nbsp;=20
usuario_insercion&nbsp;&nbsp;&nbsp;=20
varchar(30)&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&n=
bsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=20
not null default current user,<BR>&nbsp;&nbsp;&nbsp; primary key=20
(numero_interno)<BR>)<BR>/</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=3DCourier size=3D2><BR>comment on column=20
sal.reconocimientos_y_premios.numero_interno is 'N=A3mero=20
Interno'<BR>/</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=3DCourier size=3D2><BR>comment on column=20
sal.reconocimientos_y_premios.legajo is 'Legajo'<BR>/</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=3DCourier size=3D2><BR>comment on column=20
sal.reconocimientos_y_premios.fecha is 'Fecha'<BR>/</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=3DCourier size=3D2><BR>comment on column=20
sal.reconocimientos_y_premios.motivo is 'Motivo'<BR>/</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=3DCourier size=3D2><BR>comment on column=20
sal.reconocimientos_y_premios.otorgado_por is 'Otorgado =
Por'<BR>/</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=3DCourier size=3D2><BR>comment on column=20
sal.reconocimientos_y_premios.premio is 'Premio'<BR>/</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=3DCourier size=3D2><BR>comment on column=20
sal.reconocimientos_y_premios.observacion is =
'Observaci=A2n'<BR>/</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=3DCourier size=3D2><BR>comment on column=20
sal.reconocimientos_y_premios.fecha_insercion is 'Fecha=20
Inserci=A2n'<BR>/</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=3DCourier size=3D2><BR>comment on column=20
sal.reconocimientos_y_premios.usuario_insercion is 'Usuario=20
Inserci=A2n'<BR>/</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=3DCourier=20
size=3D2><BR>/*=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D*/<BR>/*=20
Table :=20
referencias&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&n=
bsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nb=
sp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbs=
p;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=20
*/<BR>/*=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D*/<BR>create=20
table sal.referencias<BR>(<BR>&nbsp;&nbsp;&nbsp;=20
numero_interno&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=20
integer&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; =

not null default autoincrement,<BR>&nbsp;&nbsp;&nbsp;=20
legajo&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&=
nbsp;&nbsp;&nbsp;=20
integer&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; =

not null<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; check =
(legajo=20
&gt;=3D 1),<BR>&nbsp;&nbsp;&nbsp;=20
referenciante&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=20
varchar(40),<BR>&nbsp;&nbsp;&nbsp; nombre_referencia&nbsp;&nbsp;&nbsp;=20
char&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nb=
sp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbs=
p;&nbsp;&nbsp;=20
not null default =
'H'<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=20
check (nombre_referencia in=20
('''P''<BR>','''M''<BR>','''C''<BR>','''H''<BR>','O')),<BR>&nbsp;&nbsp;&n=
bsp;=20
direccion&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbs=
p;=20
varchar(50),<BR>&nbsp;&nbsp;&nbsp;=20
telefono&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp=
;&nbsp;=20
varchar(40),<BR>&nbsp;&nbsp;&nbsp;=20
resultado&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbs=
p;=20
varchar(80),<BR>&nbsp;&nbsp;&nbsp; primary key=20
(numero_interno)<BR>)<BR>/</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=3DCourier size=3D2><BR>comment on column=20
sal.referencias.numero_interno is 'N=A3mero Interno'<BR>/</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=3DCourier size=3D2><BR>comment on column =
sal.referencias.legajo is=20
'Legajo'<BR>/</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=3DCourier size=3D2><BR>comment on column=20
sal.referencias.referenciante is 'Referenciante'<BR>/</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=3DCourier size=3D2><BR>comment on column=20
sal.referencias.nombre_referencia is 'Parentezco'<BR>/</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=3DCourier size=3D2><BR>comment on column =
sal.referencias.direccion=20
is 'Direcci=A2n'<BR>/</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=3DCourier size=3D2><BR>comment on column =
sal.referencias.telefono is=20
'Tel=82fono'<BR>/</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=3DCourier size=3D2><BR>comment on column =
sal.referencias.resultado=20
is 'Resultado'<BR>/</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=3DCourier=20
size=3D2><BR>/*=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D*/<BR>/*=20
Table :=20
relaciones_otros_empleados&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp=
;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=20
*/<BR>/*=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D*/<BR>create=20
table sal.relaciones_otros_empleados<BR>(<BR>&nbsp;&nbsp;&nbsp;=20
legajo&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&=
nbsp;&nbsp;&nbsp;=20
integer&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; =

not null<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; check =
(legajo=20
&gt;=3D 1),<BR>&nbsp;&nbsp;&nbsp; legajo_referencia&nbsp;&nbsp;&nbsp;=20
integer&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; =

not null<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; check =

(legajo_referencia &gt;=3D 1),<BR>&nbsp;&nbsp;&nbsp;=20
observacion&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=20
varchar(50),<BR>&nbsp;&nbsp;&nbsp; primary key (legajo,=20
legajo_referencia)<BR>)<BR>/</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=3DCourier size=3D2><BR>comment on column=20
sal.relaciones_otros_empleados.legajo is 'Legajo'<BR>/</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=3DCourier size=3D2><BR>comment on column=20
sal.relaciones_otros_empleados.legajo_referencia is 'Legajo=20
Relaci=A2n'<BR>/</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=3DCourier size=3D2><BR>comment on column=20
sal.relaciones_otros_empleados.observacion is =
'Observaci=A2n'<BR>/</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=3DCourier=20
size=3D2><BR>/*=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D*/<BR>/*=20
Table :=20
religiones&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nb=
sp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbs=
p;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp=
;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=20
*/<BR>/*=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D*/<BR>create=20
table sal.religiones<BR>(<BR>&nbsp;&nbsp;&nbsp;=20
religion&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp=
;&nbsp;=20
integer&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; =

not null,<BR>&nbsp;&nbsp;&nbsp;=20
nombre&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&=
nbsp;&nbsp;&nbsp;=20
varchar(40)&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&n=
bsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=20
not null,<BR>&nbsp;&nbsp;&nbsp; primary key =
(religion)<BR>)<BR>/</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=3DCourier size=3D2><BR>comment on column =
sal.religiones.religion is=20
'Religi=A2n'<BR>/</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=3DCourier size=3D2><BR>comment on column =
sal.religiones.nombre is=20
'Nombre'<BR>/</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=3DCourier=20
size=3D2><BR>/*=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=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sp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; check =
(legajo=20
&gt;=3D 1),<BR>&nbsp;&nbsp;&nbsp;=20
fecha&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&n=
bsp;&nbsp;&nbsp;&nbsp;=20
date&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nb=
sp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbs=
p;&nbsp;&nbsp;=20
not null,<BR>&nbsp;&nbsp;&nbsp;=20
motivo&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&=
nbsp;&nbsp;&nbsp;=20
varchar(40),<BR>&nbsp;&nbsp;&nbsp; =
suspencion_desde&nbsp;&nbsp;&nbsp;&nbsp;=20
timestamp,<BR>&nbsp;&nbsp;&nbsp; =
suspencion_hasta&nbsp;&nbsp;&nbsp;&nbsp;=20
timestamp,<BR>&nbsp;&nbsp;&nbsp;=20
observacion&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=20
varchar(256),<BR>&nbsp;&nbsp;&nbsp;=20
fecha_insercion&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=20
timestamp&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbs=
p;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=20
not null default current timestamp,<BR>&nbsp;&nbsp;&nbsp;=20
usuario_insercion&nbsp;&nbsp;&nbsp;=20
varchar(30)&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&n=
bsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=20
not null default current user,<BR>&nbsp;&nbsp;&nbsp; primary key=20
(numero_interno)<BR>)<BR>/</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=3DCourier size=3D2><BR>comment on column=20
sal.sanciones.numero_interno is 'N=A3mero Interno'<BR>/</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=3DCourier size=3D2><BR>comment on column =
sal.sanciones.legajo is=20
'Legajo'<BR>/</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=3DCourier size=3D2><BR>comment on column =
sal.sanciones.fecha is=20
'Fecha'<BR>/</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=3DCourier size=3D2><BR>comment on column =
sal.sanciones.motivo is=20
'Motivo'<BR>/</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=3DCourier size=3D2><BR>comment on column=20
sal.sanciones.suspencion_desde is 'Suspenci=A2n Desde'<BR>/</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=3DCourier size=3D2><BR>comment on column=20
sal.sanciones.suspencion_hasta is 'Suspenci=A2n Hasta'<BR>/</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=3DCourier size=3D2><BR>comment on column =
sal.sanciones.observacion=20
is 'Observaci=A2n'<BR>/</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=3DCourier size=3D2><BR>comment on column=20
sal.sanciones.fecha_insercion is 'Fecha Inserci=A2n'<BR>/</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=3DCourier size=3D2><BR>comment on column=20
sal.sanciones.usuario_insercion is 'Usuario =
Inserci=A2n'<BR>/</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=3DCourier=20
size=3D2><BR>/*=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=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bsp;=20
planilla&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp=
;&nbsp;=20
char&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nb=
sp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbs=
p;&nbsp;&nbsp;=20
not null<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; check =

(planilla in=20
('''1''<BR>','''2''<BR>','''3''<BR>','''4''<BR>','''5''<BR>','''6''<BR>',=
'''7''<BR>','''8''<BR>','9')),<BR>&nbsp;&nbsp;&nbsp;=20
fecha_vigencia&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=20
date&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nb=
sp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbs=
p;&nbsp;&nbsp;=20
not null,<BR>&nbsp;&nbsp;&nbsp;=20
tipo_sueldo&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=20
char&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nb=
sp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbs=
p;&nbsp;&nbsp;=20
not null<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; check =

(tipo_sueldo in=20
('''M''<BR>','''J''<BR>','''H''<BR>','''D''<BR>','O')),<BR>&nbsp;&nbsp;&n=
bsp;=20
salario&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=
&nbsp;&nbsp;=20
numeric(13,2)&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=20
not null,<BR>&nbsp;&nbsp;&nbsp;=20
monto_adelanto&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=20
numeric(13,2),<BR>&nbsp;&nbsp;&nbsp; usuario_insercion&nbsp;&nbsp;&nbsp; =

varchar(30)&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&n=
bsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=20
not null default current user,<BR>&nbsp;&nbsp;&nbsp;=20
fecha_insercion&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; =
timestamp,<BR>&nbsp;&nbsp;&nbsp;=20
usuario_modificacion=20
varchar(30)&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&n=
bsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=20
default current user,<BR>&nbsp;&nbsp;&nbsp; =
fecha_modificacion&nbsp;&nbsp;=20
timestamp,<BR>&nbsp;&nbsp;&nbsp; primary key (legajo,=20
planilla)<BR>)<BR>/</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=3DCourier size=3D2><BR>comment on column =
sal.sueldos.legajo is=20
'Legajo'<BR>/</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=3DCourier size=3D2><BR>comment on column =
sal.sueldos.planilla is=20
'Planilla'<BR>/</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=3DCourier size=3D2><BR>comment on column =
sal.sueldos.fecha_vigencia=20
is 'Fecha Vigencia'<BR>/</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=3DCourier size=3D2><BR>comment on column =
sal.sueldos.tipo_sueldo is=20
'Tipo Sueldo'<BR>/</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=3DCourier size=3D2><BR>comment on column =
sal.sueldos.salario is=20
'Monto'<BR>/</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=3DCourier size=3D2><BR>comment on column =
sal.sueldos.monto_adelanto=20
is 'Monto Adelanto'<BR>/</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=3DCourier size=3D2><BR>comment on column=20
sal.sueldos.usuario_insercion is 'Usuario Inserci=A2n'<BR>/</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=3DCourier size=3D2><BR>comment on column =
sal.sueldos.fecha_insercion=20
is 'Fecha Inserci=A2n'<BR>/</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=3DCourier size=3D2><BR>comment on column=20
sal.sueldos.usuario_modificacion is 'Usuario =
Modificaci=A2n'<BR>/</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=3DCourier size=3D2><BR>comment on column=20
sal.sueldos.fecha_modificacion is 'Fecha =
Modificaci=A2n'<BR>/</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=3DCourier=20
size=3D2><BR>/*=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D*/<BR>/*=20
Table :=20
sueldos_auditoria&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&n=
bsp;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bsp;&nbsp;&nbsp=
;&nbsp;=20
char&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nb=
sp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbs=
p;&nbsp;&nbsp;=20
not null<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; check =

(planilla in=20
('''1''<BR>','''2''<BR>','''3''<BR>','''4''<BR>','''5''<BR>','''6''<BR>',=
'''7''<BR>','''8''<BR>','9')),<BR>&nbsp;&nbsp;&nbsp;=20
fecha_vigencia&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=20
date&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nb=
sp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbs=
p;&nbsp;&nbsp;=20
not null,<BR>&nbsp;&nbsp;&nbsp;=20
tipo_sueldo&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=20
char&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nb=
sp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbs=
p;&nbsp;&nbsp;=20
not null<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; check =

(tipo_sueldo in=20
('''M''<BR>','''J''<BR>','''H''<BR>','''D''<BR>','O')),<BR>&nbsp;&nbsp;&n=
bsp;=20
salario&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=
&nbsp;&nbsp;=20
numeric(13,2),<BR>&nbsp;&nbsp;&nbsp;=20
monto_adelanto&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=20
numeric(13,2),<BR>&nbsp;&nbsp;&nbsp; usuario_insercion&nbsp;&nbsp;&nbsp; =

varchar(30)&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&n=
bsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=20
not null,<BR>&nbsp;&nbsp;&nbsp; =
fecha_insercion&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=20
timestamp,<BR>&nbsp;&nbsp;&nbsp; usuario_modificacion=20
varchar(30),<BR>&nbsp;&nbsp;&nbsp; fecha_modificacion&nbsp;&nbsp;=20
timestamp,<BR>&nbsp;&nbsp;&nbsp;=20
fecha_registro&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=20
timestamp&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbs=
p;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=20
default current timestamp,<BR>&nbsp;&nbsp;&nbsp;=20
usuario_registro&nbsp;&nbsp;&nbsp;&nbsp; =
varchar(30),<BR>&nbsp;&nbsp;&nbsp;=20
primary key (numero_interno)<BR>)<BR>/</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=3DCourier size=3D2><BR>comment on column=20
sal.sueldos_auditoria.numero_interno is =
'numero_interno'<BR>/</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=3DCourier size=3D2><BR>comment on column=20
sal.sueldos_auditoria.legajo is 'Legajo'<BR>/</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=3DCourier size=3D2><BR>comment on column=20
sal.sueldos_auditoria.planilla is 'Planilla'<BR>/</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=3DCourier size=3D2><BR>comment on column=20
sal.sueldos_auditoria.fecha_vigencia is 'Fecha =
Vigencia'<BR>/</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=3DCourier size=3D2><BR>comment on column=20
sal.sueldos_auditoria.tipo_sueldo is 'Tipo Sueldo'<BR>/</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=3DCourier size=3D2><BR>comment on column=20
sal.sueldos_auditoria.salario is 'Monto'<BR>/</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=3DCourier size=3D2><BR>comment on column=20
sal.sueldos_auditoria.monto_adelanto is 'Monto =
Adelanto'<BR>/</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=3DCourier size=3D2><BR>comment on column=20
sal.sueldos_auditoria.usuario_insercion is 'Usuario =
Inserci=A2n'<BR>/</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=3DCourier size=3D2><BR>comment on column=20
sal.sueldos_auditoria.fecha_insercion is 'Fecha =
Inserci=A2n'<BR>/</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=3DCourier size=3D2><BR>comment on column=20
sal.sueldos_auditoria.usuario_modificacion is 'Usuario=20
Modificaci=A2n'<BR>/</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=3DCourier size=3D2><BR>comment on column=20
sal.sueldos_auditoria.fecha_modificacion is 'Fecha=20
Modificaci=A2n'<BR>/</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=3DCourier size=3D2><BR>comment on column=20
sal.sueldos_auditoria.fecha_registro is 'Fecha =
Registro'<BR>/</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=3DCourier size=3D2><BR>comment on column=20
sal.sueldos_auditoria.usuario_registro is 'Usuario =
Registro'<BR>/</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=3DCourier=20
size=3D2><BR>/*=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D*/<BR>/*=20
Table :=20
tareas_realizadas_empresa&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&=
nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=20
*/<BR>/*=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D*/<BR>create=20
table sal.tareas_realizadas_empresa<BR>(<BR>&nbsp;&nbsp;&nbsp;=20
numero_interno&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=20
integer&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; =

not null default autoincrement,<BR>&nbsp;&nbsp;&nbsp;=20
legajo&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&=
nbsp;&nbsp;&nbsp;=20
integer&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; =

not null<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; check =
(legajo=20
&gt;=3D 1),<BR>&nbsp;&nbsp;&nbsp;=20
fecha&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&n=
bsp;&nbsp;&nbsp;&nbsp;=20
date&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nb=
sp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbs=
p;&nbsp;&nbsp;=20
not null,<BR>&nbsp;&nbsp;&nbsp;=20
observacion&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=20
varchar(256)&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&=
nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=20
not null,<BR>&nbsp;&nbsp;&nbsp; =
fecha_insercion&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=20
timestamp&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbs=
p;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=20
not null default current timestamp,<BR>&nbsp;&nbsp;&nbsp;=20
usuario_insercion&nbsp;&nbsp;&nbsp;=20
varchar(30)&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&n=
bsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=20
not null default current user,<BR>&nbsp;&nbsp;&nbsp; primary key=20
(numero_interno)<BR>)<BR>/</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=3DCourier size=3D2><BR>comment on column=20
sal.tareas_realizadas_empresa.numero_interno is 'N=A3mero=20
Interno'<BR>/</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=3DCourier size=3D2><BR>comment on column=20
sal.tareas_realizadas_empresa.legajo is 'Legajo'<BR>/</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=3DCourier size=3D2><BR>comment on column=20
sal.tareas_realizadas_empresa.fecha is 'Fecha'<BR>/</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=3DCourier size=3D2><BR>comment on column=20
sal.tareas_realizadas_empresa.observacion is =
'Observaci=A2n'<BR>/</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=3DCourier size=3D2><BR>comment on column=20
sal.tareas_realizadas_empresa.fecha_insercion is 'Fecha=20
Inserci=A2n'<BR>/</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=3DCourier size=3D2><BR>comment on column=20
sal.tareas_realizadas_empresa.usuario_insercion is 'Usuario=20
Inserci=A2n'<BR>/</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=3DCourier=20
size=3D2><BR>/*=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D*/<BR>/*=20
Table :=20
tipos_accidentes&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nb=
sp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbs=
p;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp=
;&nbsp;&nbsp;=20
*/<BR>/*=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D*/<BR>create=20
table sal.tipos_accidentes<BR>(<BR>&nbsp;&nbsp;&nbsp;=20
tipo_accidente&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=20
smallint&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp=
;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=20
not null<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; check =

(tipo_accidente &gt;=3D 1),<BR>&nbsp;&nbsp;&nbsp;=20
nombre&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&=
nbsp;&nbsp;&nbsp;=20
varchar(40)&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&n=
bsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=20
not null,<BR>&nbsp;&nbsp;&nbsp; primary key=20
(tipo_accidente)<BR>)<BR>/</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=3DCourier size=3D2><BR>comment on column=20
sal.tipos_accidentes.tipo_accidente is 'Tipo =
Accidente'<BR>/</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=3DCourier size=3D2><BR>comment on column =
sal.tipos_accidentes.nombre=20
is 'Nombre'<BR>/</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=3DCourier=20
size=3D2><BR>/*=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D*/<BR>/*=20
Table :=20
tipos_de_documentos&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&=
nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=20
*/<BR>/*=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D*/<BR>create=20
table sal.tipos_de_documentos<BR>(<BR>&nbsp;&nbsp;&nbsp;=20
tipo&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nb=
sp;&nbsp;&nbsp;&nbsp;&nbsp;=20
integer&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; =

not null,<BR>&nbsp;&nbsp;&nbsp;=20
nombre&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&=
nbsp;&nbsp;&nbsp;=20
varchar(40)&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&n=
bsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=20
not null,<BR>&nbsp;&nbsp;&nbsp; primary key =
(tipo)<BR>)<BR>/</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=3DCourier size=3D2><BR>comment on column=20
sal.tipos_de_documentos.tipo is 'Tipo'<BR>/</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=3DCourier size=3D2><BR>comment on column=20
sal.tipos_de_documentos.nombre is 'Nombre'<BR>/</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=3DCourier=20
size=3D2><BR>/*=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D*/<BR>/*=20
Table :=20
tipos_inasistencias&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&=
nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=20
*/<BR>/*=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D*/<BR>create=20
table sal.tipos_inasistencias<BR>(<BR>&nbsp;&nbsp;&nbsp;=20
tipo&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nb=
sp;&nbsp;&nbsp;&nbsp;&nbsp;=20
smallint&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp=
;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=20
not null<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; check =
(tipo=20
&gt;=3D 1),<BR>&nbsp;&nbsp;&nbsp;=20
nombre&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&=
nbsp;&nbsp;&nbsp;=20
varchar(40)&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&n=
bsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=20
not null,<BR>&nbsp;&nbsp;&nbsp; primary key =
(tipo)<BR>)<BR>/</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=3DCourier size=3D2><BR>comment on column=20
sal.tipos_inasistencias.tipo is 'Tipo'<BR>/</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=3DCourier size=3D2><BR>comment on column=20
sal.tipos_inasistencias.nombre is 'Nombre'<BR>/</F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bsp;=20
not null<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; check =
(turno=20
&gt;=3D 1),<BR>&nbsp;&nbsp;&nbsp;=20
nombre&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&=
nbsp;&nbsp;&nbsp;=20
varchar(40),<BR>&nbsp;&nbsp;&nbsp; =
siguiente_turno&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=20
smallint<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; check =

(siguiente_turno is null or (siguiente_turno &gt;=3D 1 =
)),<BR>&nbsp;&nbsp;&nbsp;=20
observacion&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=20
varchar(256),<BR>&nbsp;&nbsp;&nbsp; primary key =
(turno)<BR>)<BR>/</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=3DCourier size=3D2><BR>comment on column =
sal.turnos.turno is=20
'Turno'<BR>/</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=3DCourier size=3D2><BR>comment on column =
sal.turnos.nombre is=20
'Nombre'<BR>/</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=3DCourier size=3D2><BR>comment on column =
sal.turnos.siguiente_turno=20
is 'Siguiente Turno'<BR>/</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=3DCourier size=3D2><BR>comment on column =
sal.turnos.observacion is=20
'Observaci=F3n'<BR>/</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=3DCourier=20
size=3D2><BR>/*=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3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null,<BR>&nbsp;&nbsp;&nbsp; primary key =
(ubicacion)<BR>)<BR>/</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=3DCourier=20
size=3D2><BR>/*=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D*/<BR>/*=20
Table :=20
unidades_organicas&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&=
nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&n=
bsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nb=
sp;=20
*/<BR>/*=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D*/<BR>create=20
table sal.unidades_organicas<BR>(<BR>&nbsp;&nbsp;&nbsp;=20
unidad_organica&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=20
integer&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; =

not null<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; check =

(unidad_organica &gt;=3D 1),<BR>&nbsp;&nbsp;&nbsp;=20
nombre&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&=
nbsp;&nbsp;&nbsp;=20
varchar(40),<BR>&nbsp;&nbsp;&nbsp; =
centro_de_costo&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=20
integer&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; =

not null<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; check =

(centro_de_costo &gt;=3D 1),<BR>&nbsp;&nbsp;&nbsp; primary key=20
(unidad_organica)<BR>)<BR>/</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=3DCourier size=3D2><BR>comment on column=20
sal.unidades_organicas.unidad_organica is 'Unidad=20
Org&nbsp;nica'<BR>/</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=3DCourier size=3D2><BR>comment on column=20
sal.unidades_organicas.nombre is 'Nombre'<BR>/</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=3DCourier size=3D2><BR>comment on column=20
sal.unidades_organicas.centro_de_costo is 'Centro de =
Costo'<BR>/</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=3DCourier=20
size=3D2><BR>/*=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D*/<BR>/*=20
Table :=20
vacaciones&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; check =
(legajo=20
&gt;=3D 1),<BR>&nbsp;&nbsp;&nbsp; periodo_adquisitivo_desde=20
date&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nb=
sp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbs=
p;&nbsp;&nbsp;=20
not null,<BR>&nbsp;&nbsp;&nbsp; periodo_adquisitivo_hasta=20
date&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nb=
sp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbs=
p;&nbsp;&nbsp;=20
not null,<BR>&nbsp;&nbsp;&nbsp;=20
vacacion_desde&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=20
date&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nb=
sp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbs=
p;&nbsp;&nbsp;=20
not null,<BR>&nbsp;&nbsp;&nbsp;=20
vacacion_hasta&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=20
date&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nb=
sp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbs=
p;&nbsp;&nbsp;=20
not null,<BR>&nbsp;&nbsp;&nbsp;=20
dias_tomados&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=20
numeric(6,2)&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&=
nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=20
not null,<BR>&nbsp;&nbsp;&nbsp;=20
observacion&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=20
varchar(256),<BR>&nbsp;&nbsp;&nbsp;=20
fecha_insercion&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=20
timestamp&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbs=
p;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=20
not null default current timestamp,<BR>&nbsp;&nbsp;&nbsp;=20
usuario_insercion&nbsp;&nbsp;&nbsp;=20
varchar(30)&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&n=
bsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=20
not null default current user,<BR>&nbsp;&nbsp;&nbsp; =
fecha_reintegracion&nbsp;=20
date,<BR>&nbsp;&nbsp;&nbsp; primary key =
(numero_interno)<BR>)<BR>/</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=3DCourier size=3D2><BR>comment on column=20
sal.vacaciones.numero_interno is 'N=A3mero Interno'<BR>/</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=3DCourier size=3D2><BR>comment on column =
sal.vacaciones.legajo is=20
'Legajo'<BR>/</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=3DCourier size=3D2><BR>comment on column=20
sal.vacaciones.periodo_adquisitivo_desde is 'Per=A1odo Adquisitivo=20
Desde'<BR>/</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=3DCourier size=3D2><BR>comment on column=20
sal.vacaciones.periodo_adquisitivo_hasta is 'Per=A1odo Adquisitivo=20
Hasta'<BR>/</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=3DCourier size=3D2><BR>comment on column=20
sal.vacaciones.vacacion_desde is 'Vacaci=A2n Desde'<BR>/</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=3DCourier size=3D2><BR>comment on column=20
sal.vacaciones.vacacion_hasta is 'Vacaci=A2n Hasta'<BR>/</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=3DCourier size=3D2><BR>comment on column =
sal.vacaciones.dias_tomados=20
is 'Dias Tomados'<BR>/</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=3DCourier size=3D2><BR>comment on column =
sal.vacaciones.observacion=20
is 'Observaci=A2n'<BR>/</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=3DCourier size=3D2><BR>comment on column=20
sal.vacaciones.fecha_insercion is 'Fecha Inserci=A2n'<BR>/</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=3DCourier size=3D2><BR>comment on column=20
sal.vacaciones.usuario_insercion is 'Usuario =
Inserci=A2n'<BR>/</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=3DCourier size=3D2><BR>alter table=20
sal.accidentes_laborales<BR>&nbsp;&nbsp; add primary key=20
(numero_interno)<BR>/</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=3DCourier size=3D2><BR>alter table=20
sal.actividades_ips<BR>&nbsp;&nbsp; add primary key (anio, mes, legajo,=20
empresa)<BR>/</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=3DCourier size=3D2><BR>alter table =
sal.bancos<BR>&nbsp;&nbsp; add=20
primary key (banco)<BR>/</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=3DCourier size=3D2><BR>alter table=20
sal.cargos_unidades<BR>&nbsp;&nbsp; add primary key =
(legajo)<BR>/</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=3DCourier size=3D2><BR>alter table=20
sal.cargos_unidades_auditoria<BR>&nbsp;&nbsp; add primary key=20
(numero_interno)<BR>/</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=3DCourier size=3D2><BR>alter table=20
sal.centros_de_costos<BR>&nbsp;&nbsp; add primary key=20
(centro_de_costo)<BR>/</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=3DCourier size=3D2><BR>alter table =
sal.ciudades<BR>&nbsp;&nbsp; add=20
primary key (ciudad)<BR>/</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=3DCourier size=3D2><BR>alter table =
sal.costo_turno<BR>&nbsp;&nbsp;=20
add primary key (turno, desde, hasta)<BR>/</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=3DCourier size=3D2><BR>alter table=20
sal.cursos_y_seminarios<BR>&nbsp;&nbsp; add primary key=20
(numero_interno)<BR>/</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=3DCourier size=3D2><BR>alter table=20
sal.datos_de_la_empresa<BR>&nbsp;&nbsp; add primary key=20
(solo_clave)<BR>/</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=3DCourier size=3D2><BR>alter table=20
sal.descuentos_diferidos<BR>&nbsp;&nbsp; add primary key=20
(numero)<BR>/</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=3DCourier size=3D2><BR>alter table=20
sal.descuentos_diferidos_detalles<BR>&nbsp;&nbsp; add primary key =
(numero,=20
cuota)<BR>/</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=3DCourier size=3D2><BR>alter table=20
sal.descuentos_diferidos_tipos<BR>&nbsp;&nbsp; add primary key=20
(tipo_descuento)<BR>/</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=3DCourier size=3D2><BR>alter table=20
sal.descuentos_fijos<BR>&nbsp;&nbsp; add primary key (novedad, planilla, =

novedad_afectada)<BR>/</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=3DCourier size=3D2><BR>alter table=20
sal.dias_trabajados<BR>&nbsp;&nbsp; add primary key =
(mes)<BR>/</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=3DCourier size=3D2><BR>alter table =
sal.domicilios<BR>&nbsp;&nbsp;=20
add primary key (numero_interno)<BR>/</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=3DCourier size=3D2><BR>alter table =
sal.empleados<BR>&nbsp;&nbsp; add=20
primary key (legajo)<BR>/</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=3DCourier size=3D2><BR>alter table=20
sal.empleados_por_turno<BR>&nbsp;&nbsp; add primary key (legajo, fecha,=20
turno)<BR>/</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=3DCourier size=3D2><BR>alter table=20
sal.experiencia_laboral<BR>&nbsp;&nbsp; add primary key=20
(numero_interno)<BR>/</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=3DCourier size=3D2><BR>alter table =
sal.feriados<BR>&nbsp;&nbsp; add=20
primary key (fecha)<BR>/</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=3DCourier size=3D2><BR>alter table=20
sal.formacion_academica<BR>&nbsp;&nbsp; add primary key=20
(numero_interno)<BR>/</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=3DCourier size=3D2><BR>alter table =
sal.funciones<BR>&nbsp;&nbsp; add=20
primary key (funcion)<BR>/</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=3DCourier size=3D2><BR>alter table=20
sal.horarios_por_turno<BR>&nbsp;&nbsp; add primary key (turno,=20
dia)<BR>/</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=3DCourier size=3D2><BR>alter table=20
sal.horarios_por_turno_historico<BR>&nbsp;&nbsp; add primary key (fecha, =
turno,=20
dia)<BR>/</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=3DCourier size=3D2><BR>alter table=20
sal.horas_extras_autorizadas<BR>&nbsp;&nbsp; add primary key=20
(numero_interno)<BR>/</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=3DCourier size=3D2><BR>alter table =
sal.idiomas<BR>&nbsp;&nbsp; add=20
primary key (idioma)<BR>/</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=3DCourier size=3D2><BR>alter table=20
sal.idiomas_empleado<BR>&nbsp;&nbsp; add primary key (legajo,=20
idioma)<BR>/</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=3DCourier size=3D2><BR>alter table =
sal.imagenes<BR>&nbsp;&nbsp; add=20
primary key (numero_interno)<BR>/</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=3DCourier size=3D2><BR>alter table =
sal.inasistencias<BR>&nbsp;&nbsp;=20
add primary key (numero_interno)<BR>/</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=3DCourier size=3D2><BR>alter table =
sal.liquidacion<BR>&nbsp;&nbsp;=20
add primary key (legajo)<BR>/</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=3DCourier size=3D2><BR>alter table=20
sal.lugares_de_trabajo<BR>&nbsp;&nbsp; add primary key=20
(lugar_de_trabajo)<BR>/</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=3DCourier size=3D2><BR>alter table=20
sal.marcacion_asistencia<BR>&nbsp;&nbsp; add primary key=20
(numero_interno)<BR>/</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=3DCourier size=3D2><BR>alter table =
sal.novedades<BR>&nbsp;&nbsp; add=20
primary key (novedad)<BR>/</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=3DCourier size=3D2><BR>alter table=20
sal.novedades_factores<BR>&nbsp;&nbsp; add primary key (novedad,=20
planilla)<BR>/</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=3DCourier size=3D2><BR>alter table=20
sal.novedades_modelos<BR>&nbsp;&nbsp; add primary key=20
(numero_interno)<BR>/</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=3DCourier size=3D2><BR>alter table=20
sal.novedades_modelos_auditoria<BR>&nbsp;&nbsp; add primary key=20
(numero_interno)<BR>/</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=3DCourier size=3D2><BR>alter table=20
sal.novedades_proceso<BR>&nbsp;&nbsp; add primary key=20
(numero_interno)<BR>/</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=3DCourier size=3D2><BR>alter table=20
sal.novedades_proceso_audit<BR>&nbsp;&nbsp; add primary key=20
(numero_interno)<BR>/</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=3DCourier size=3D2><BR>alter table=20
sal.novedades_proceso_copy<BR>&nbsp;&nbsp; add primary key (legajo, =
novedad,=20
planilla, numero_proceso)<BR>/</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=3DCourier size=3D2><BR>alter table=20
sal.novedades_proceso_historico<BR>&nbsp;&nbsp; add primary key=20
(numero_interno)<BR>/</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=3DCourier size=3D2><BR>alter table=20
sal.novedades_proceso_historico_copy<BR>&nbsp;&nbsp; add primary key=20
(numero_interno)<BR>/</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=3DCourier size=3D2><BR>alter table=20
sal.numeros_patronales<BR>&nbsp;&nbsp; add primary key=20
(numero)<BR>/</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=3DCourier size=3D2><BR>alter table=20
sal.numeros_patronales_mjt<BR>&nbsp;&nbsp; add primary key=20
(codigo)<BR>/</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=3DCourier size=3D2><BR>alter table=20
sal.otras_informaciones<BR>&nbsp;&nbsp; add primary key=20
(numero_interno)<BR>/</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=3DCourier size=3D2><BR>alter table=20
sal.otros_conocimientos<BR>&nbsp;&nbsp; add primary key=20
(numero_interno)<BR>/</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=3DCourier size=3D2><BR>alter table=20
sal.otros_documentos_empleado<BR>&nbsp;&nbsp; add primary key=20
(numero_interno)<BR>/</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=3DCourier size=3D2><BR>alter table =
sal.paises<BR>&nbsp;&nbsp; add=20
primary key (pais)<BR>/</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=3DCourier size=3D2><BR>alter table=20
sal.parametros_asistencia<BR>&nbsp;&nbsp; add primary key=20
(solo_clave)<BR>/</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=3DCourier size=3D2><BR>alter table=20
sal.parametros_codigos<BR>&nbsp;&nbsp; add primary key=20
(solo_clave)<BR>/</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=3DCourier size=3D2><BR>alter table =
sal.parientes<BR>&nbsp;&nbsp; add=20
primary key (numero_interno)<BR>/</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=3DCourier size=3D2><BR>alter table =
sal.pbcatcol<BR>&nbsp;&nbsp; add=20
primary key (pbc_tnam, pbc_ownr, pbc_cnam)<BR>/</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=3DCourier size=3D2><BR>alter table =
sal.pbcatedt<BR>&nbsp;&nbsp; add=20
primary key (pbe_name, pbe_seqn)<BR>/</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=3DCourier size=3D2><BR>alter table =
sal.pbcatfmt<BR>&nbsp;&nbsp; add=20
primary key (pbf_name)<BR>/</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=3DCourier size=3D2><BR>alter table =
sal.pbcattbl<BR>&nbsp;&nbsp; add=20
primary key (pbt_tnam, pbt_ownr)<BR>/</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=3DCourier size=3D2><BR>alter table =
sal.pbcatvld<BR>&nbsp;&nbsp; add=20
primary key (pbv_name)<BR>/</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=3DCourier size=3D2><BR>alter table =
sal.permisos<BR>&nbsp;&nbsp; add=20
primary key (numero_interno)<BR>/</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=3DCourier size=3D2><BR>alter table=20
sal.politica_vacacional_empleado<BR>&nbsp;&nbsp; add primary key =
(legajo,=20
politica)<BR>/</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=3DCourier size=3D2><BR>alter table=20
sal.politicas_vacacionales<BR>&nbsp;&nbsp; add primary key=20
(politica)<BR>/</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=3DCourier size=3D2><BR>alter table=20
sal.politicas_vacionales_detalles<BR>&nbsp;&nbsp; add primary key =
(politica,=20
anos)<BR>/</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=3DCourier size=3D2><BR>alter table=20
sal.proceso_fechas<BR>&nbsp;&nbsp; add primary key=20
(solo_clave)<BR>/</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=3DCourier size=3D2><BR>alter table =
sal.profesiones<BR>&nbsp;&nbsp;=20
add primary key (profesion)<BR>/</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=3DCourier size=3D2><BR>alter table=20
sal.reconocimientos_y_premios<BR>&nbsp;&nbsp; add primary key=20
(numero_interno)<BR>/</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=3DCourier size=3D2><BR>alter table =
sal.referencias<BR>&nbsp;&nbsp;=20
add primary key (numero_interno)<BR>/</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=3DCourier size=3D2><BR>alter table=20
sal.relaciones_otros_empleados<BR>&nbsp;&nbsp; add primary key (legajo,=20
legajo_referencia)<BR>/</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=3DCourier size=3D2><BR>alter table =
sal.religiones<BR>&nbsp;&nbsp;=20
add primary key (religion)<BR>/</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=3DCourier size=3D2><BR>alter table =
sal.sanciones<BR>&nbsp;&nbsp; add=20
primary key (numero_interno)<BR>/</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=3DCourier size=3D2><BR>alter table =
sal.sueldos<BR>&nbsp;&nbsp; add=20
primary key (legajo, planilla)<BR>/</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=3DCourier size=3D2><BR>alter table=20
sal.sueldos_auditoria<BR>&nbsp;&nbsp; add primary key=20
(numero_interno)<BR>/</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=3DCourier size=3D2><BR>alter table=20
sal.tareas_realizadas_empresa<BR>&nbsp;&nbsp; add primary key=20
(numero_interno)<BR>/</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=3DCourier size=3D2><BR>alter table=20
sal.tipos_accidentes<BR>&nbsp;&nbsp; add primary key=20
(tipo_accidente)<BR>/</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=3DCourier size=3D2><BR>alter table=20
sal.tipos_de_documentos<BR>&nbsp;&nbsp; add primary key =
(tipo)<BR>/</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=3DCourier size=3D2><BR>alter table=20
sal.tipos_inasistencias<BR>&nbsp;&nbsp; add primary key =
(tipo)<BR>/</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=3DCourier size=3D2><BR>alter table =
sal.turnos<BR>&nbsp;&nbsp; add=20
primary key (turno)<BR>/</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=3DCourier size=3D2><BR>alter table =
sal.ubicaciones<BR>&nbsp;&nbsp;=20
add primary key (ubicacion)<BR>/</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=3DCourier size=3D2><BR>alter table=20
sal.unidades_organicas<BR>&nbsp;&nbsp; add primary key=20
(unidad_organica)<BR>/</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=3DCourier size=3D2><BR>alter table =
sal.vacaciones<BR>&nbsp;&nbsp;=20
add primary key (numero_interno)<BR>/</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=3DCourier size=3D2><BR>alter table=20
sal.accidentes_laborales<BR>&nbsp;&nbsp; add foreign key=20
fk_accident_ref_7223_tipos_ac =
(tipo_accidente)<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=20
references sal.tipos_accidentes=20
(tipo_accidente)<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; on update=20
restrict<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; on delete =
restrict<BR>/</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=3DCourier size=3D2><BR>alter table=20
sal.accidentes_laborales<BR>&nbsp;&nbsp; add foreign key=20
fk_accident_ref_7230_empleado (legajo)<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; =

references sal.empleados (legajo)<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; on =
update=20
restrict<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; on delete =
restrict<BR>/</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=3DCourier size=3D2><BR>alter table=20
sal.actividades_ips<BR>&nbsp;&nbsp; add foreign key=20
fk_activida_ref_18360_empleado =
(legajo)<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=20
references sal.empleados (legajo)<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; on =
update=20
restrict<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; on delete =
restrict<BR>/</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=3DCourier size=3D2><BR>alter table=20
sal.cargos_unidades<BR>&nbsp;&nbsp; add foreign key =
fk_cargos_u_bancos_su_bancos=20
(banco)<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; references sal.bancos=20
(banco)<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; on update=20
restrict<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; on delete =
restrict<BR>/</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=3DCourier size=3D2><BR>alter table=20
sal.cargos_unidades<BR>&nbsp;&nbsp; add foreign key=20
fk_cargos_u_empleados_empleado =
(legajo)<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=20
references sal.empleados (legajo)<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; on =
update=20
restrict<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; on delete =
cascade<BR>/</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=3DCourier size=3D2><BR>alter table=20
sal.cargos_unidades<BR>&nbsp;&nbsp; add foreign key=20
fk_cargos_u_funciones_funcione =
(funcion)<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=20
references sal.funciones (funcion)<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; on =
update=20
restrict<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; on delete =
restrict<BR>/</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=3DCourier size=3D2><BR>alter table=20
sal.cargos_unidades<BR>&nbsp;&nbsp; add foreign key=20
fk_cargos_u_ref_6109_lugares_=20
(lugar_de_trabajo)<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; references=20
sal.lugares_de_trabajo =
(lugar_de_trabajo)<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; on=20
update restrict<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; on delete=20
restrict<BR>/</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=3DCourier size=3D2><BR>alter table=20
sal.cargos_unidades<BR>&nbsp;&nbsp; add foreign key=20
fk_cargos_u_unidades__unidades=20
(unidad_organica)<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; references=20
sal.unidades_organicas =
(unidad_organica)<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; on=20
update restrict<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; on delete=20
restrict<BR>/</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=3DCourier size=3D2><BR>alter table =
sal.costo_turno<BR>&nbsp;&nbsp;=20
add foreign key fk_costo_tu_ref_8012_novedade=20
(novedad)<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; references sal.novedades=20
(novedad)<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; on update=20
restrict<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; on delete =
restrict<BR>/</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=3DCourier size=3D2><BR>alter table=20
sal.cursos_y_seminarios<BR>&nbsp;&nbsp; add foreign key=20
fk_cursos_y_ref_7139_empleado (legajo)<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; =

references sal.empleados (legajo)<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; on =
update=20
restrict<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; on delete =
restrict<BR>/</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=3DCourier size=3D2><BR>alter table=20
sal.descuentos_diferidos_detalles<BR>&nbsp;&nbsp; add foreign key=20
fk_descuent_descuento_descuent =
(numero)<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=20
references sal.descuentos_diferidos =
(numero)<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=20
on update restrict<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; on delete=20
restrict<BR>/</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=3DCourier size=3D2><BR>alter table=20
sal.descuentos_diferidos<BR>&nbsp;&nbsp; add foreign key=20
fk_descuent_descuento_descuent=20
(tipo_descuento)<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; references=20
sal.descuentos_diferidos_tipos=20
(tipo_descuento)<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; on update=20
restrict<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; on delete =
restrict<BR>/</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=3DCourier size=3D2><BR>alter table=20
sal.descuentos_diferidos<BR>&nbsp;&nbsp; add foreign key=20
fk_descuent_empleados_empleado =
(legajo)<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=20
references sal.empleados (legajo)<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; on =
update=20
restrict<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; on delete =
restrict<BR>/</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=3DCourier size=3D2><BR>alter table=20
sal.descuentos_diferidos_tipos<BR>&nbsp;&nbsp; add foreign key=20
fk_descuent_ref_6492_novedade=20
(novedad_descuento)<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; references =
sal.novedades=20
(novedad)<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; on update=20
restrict<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; on delete =
restrict<BR>/</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=3DCourier size=3D2><BR>alter table=20
sal.descuentos_fijos<BR>&nbsp;&nbsp; add foreign key=20
fk_descuent_ref_6506_novedade =
(novedad)<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=20
references sal.novedades_factores =
(novedad)<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; on=20
update restrict<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; on delete=20
restrict<BR>/</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=3DCourier size=3D2><BR>alter table=20
sal.descuentos_fijos<BR>&nbsp;&nbsp; add foreign key=20
fk_descuent_ref_6511_novedade (novedad_afectada,=20
planilla)<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; references =
sal.novedades_factores=20
(novedad, planilla)<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; on update=20
restrict<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; on delete =
restrict<BR>/</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=3DCourier size=3D2><BR>alter table =
sal.domicilios<BR>&nbsp;&nbsp;=20
add foreign key fk_domicili_ref_6104_empleado=20
(legajo)<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; references sal.empleados=20
(legajo)<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; on update=20
restrict<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; on delete =
restrict<BR>/</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=3DCourier size=3D2><BR>alter table =
sal.domicilios<BR>&nbsp;&nbsp;=20
add foreign key fk_domicili_ref_7036_ciudades=20
(ciudad)<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; references sal.ciudades=20
(ciudad)<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; on update=20
restrict<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; on delete =
restrict<BR>/</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=3DCourier size=3D2><BR>alter table =
sal.domicilios<BR>&nbsp;&nbsp;=20
add foreign key fk_domicili_ref_7039_paises=20
(pais)<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; references sal.paises=20
(pais)<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; on update=20
restrict<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; on delete =
restrict<BR>/</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=3DCourier size=3D2><BR>alter table =
sal.empleados<BR>&nbsp;&nbsp; add=20
foreign key fk_empleado_ciudades__ciudades=20
(lugar_nacimiento)<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; references =
sal.ciudades=20
(ciudad)<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; on update=20
restrict<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; on delete =
restrict<BR>/</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=3DCourier size=3D2><BR>alter table =
sal.empleados<BR>&nbsp;&nbsp; add=20
foreign key fk_empleado_paises_em_paises=20
(nacionalidad)<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; references sal.paises=20
(pais)<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; on update=20
restrict<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; on delete =
restrict<BR>/</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=3DCourier size=3D2><BR>alter table =
sal.empleados<BR>&nbsp;&nbsp; add=20
foreign key fk_empleado_profesion_profesio=20
(profesion)<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; references sal.profesiones =

(profesion)<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; on update=20
restrict<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; on delete =
restrict<BR>/</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=3DCourier size=3D2><BR>alter table =
sal.empleados<BR>&nbsp;&nbsp; add=20
foreign key fk_empleado_ref_7113_religion=20
(religion)<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; references sal.religiones=20
(religion)<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; on update=20
restrict<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; on delete =
restrict<BR>/</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=3DCourier size=3D2><BR>alter table=20
sal.empleados_por_turno<BR>&nbsp;&nbsp; add foreign key=20
fk_empleado_ref_7949_turnos (turno)<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; =
references=20
sal.turnos (turno)<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; on update=20
restrict<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; on delete =
restrict<BR>/</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=3DCourier size=3D2><BR>alter table=20
sal.empleados_por_turno<BR>&nbsp;&nbsp; add foreign key=20
fk_empleado_ref_7952_empleado (legajo)<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; =

references sal.empleados (legajo)<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; on =
update=20
restrict<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; on delete =
restrict<BR>/</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=3DCourier size=3D2><BR>alter table=20
sal.experiencia_laboral<BR>&nbsp;&nbsp; add foreign key=20
fk_experien_ref_7031_empleado (legajo)<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; =

references sal.empleados (legajo)<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; on =
update=20
restrict<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; on delete =
restrict<BR>/</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=3DCourier size=3D2><BR>alter table=20
sal.experiencia_laboral<BR>&nbsp;&nbsp; add foreign key=20
fk_experien_ref_7042_paises (pais)<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; =
references=20
sal.paises (pais)<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; on update=20
restrict<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; on delete =
restrict<BR>/</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=3DCourier size=3D2><BR>alter table=20
sal.experiencia_laboral<BR>&nbsp;&nbsp; add foreign key=20
fk_experien_ref_7046_ciudades (ciudad)<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; =

references sal.ciudades (ciudad)<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; on =
update=20
restrict<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; on delete =
restrict<BR>/</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=3DCourier size=3D2><BR>alter table=20
sal.formacion_academica<BR>&nbsp;&nbsp; add foreign key=20
fk_formacio_ref_7052_empleado (legajo)<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; =

references sal.empleados (legajo)<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; on =
update=20
restrict<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; on delete =
restrict<BR>/</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=3DCourier size=3D2><BR>alter table=20
sal.formacion_academica<BR>&nbsp;&nbsp; add foreign key=20
fk_formacio_ref_7055_paises (pais)<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; =
references=20
sal.paises (pais)<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; on update=20
restrict<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; on delete =
restrict<BR>/</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=3DCourier size=3D2><BR>alter table=20
sal.horarios_por_turno<BR>&nbsp;&nbsp; add foreign key=20
fk_horarios_ref_23335_turnos (turno)<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=20
references sal.turnos (turno)<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; on =
update=20
restrict<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; on delete =
restrict<BR>/</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=3DCourier size=3D2><BR>alter table=20
sal.horas_extras_autorizadas<BR>&nbsp;&nbsp; add foreign key=20
fk_horas_ex_ref_7965_empleado (legajo)<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; =

references sal.empleados (legajo)<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; on =
update=20
restrict<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; on delete =
restrict<BR>/</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=3DCourier size=3D2><BR>alter table=20
sal.horas_extras_autorizadas<BR>&nbsp;&nbsp; add foreign key=20
fk_horas_ex_ref_7968_empleado =
(autorizo)<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=20
references sal.empleados (legajo)<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; on =
update=20
restrict<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; on delete =
restrict<BR>/</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=3DCourier size=3D2><BR>alter table=20
sal.horas_extras_autorizadas<BR>&nbsp;&nbsp; add foreign key=20
fk_horas_ex_ref_8000_novedade =
(novedad)<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=20
references sal.novedades (novedad)<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; on =
update=20
restrict<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; on delete =
restrict<BR>/</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=3DCourier size=3D2><BR>alter table=20
sal.idiomas_empleado<BR>&nbsp;&nbsp; add foreign key=20
fk_idiomas__ref_6098_idiomas (idioma)<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=20
references sal.idiomas (idioma)<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; on =
update=20
restrict<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; on delete =
restrict<BR>/</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=3DCourier size=3D2><BR>alter table=20
sal.idiomas_empleado<BR>&nbsp;&nbsp; add foreign key=20
fk_idiomas__ref_6101_empleado (legajo)<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; =

references sal.empleados (legajo)<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; on =
update=20
restrict<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; on delete =
restrict<BR>/</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=3DCourier size=3D2><BR>alter table =
sal.imagenes<BR>&nbsp;&nbsp; add=20
foreign key fk_imagenes_ref_10494_empleado=20
(legajo)<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; references sal.empleados=20
(legajo)<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; on update=20
restrict<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; on delete =
restrict<BR>/</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=3DCourier size=3D2><BR>alter table =
sal.inasistencias<BR>&nbsp;&nbsp;=20
add foreign key fk_inasiste_ref_7183_empleado=20
(legajo)<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; references sal.empleados=20
(legajo)<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; on update=20
restrict<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; on delete =
restrict<BR>/</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=3DCourier size=3D2><BR>alter table =
sal.inasistencias<BR>&nbsp;&nbsp;=20
add foreign key fk_inasiste_ref_7227_tipos_in=20
(tipo_inasistencia)<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; references=20
sal.tipos_inasistencias (tipo)<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; on =
update=20
restrict<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; on delete =
restrict<BR>/</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=3DCourier size=3D2><BR>alter table=20
sal.novedades_proceso<BR>&nbsp;&nbsp; add foreign key=20
fk_novedade_ref_6066_sueldos (legajo)<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=20
references sal.sueldos (legajo)<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; on =
update=20
restrict<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; on delete =
restrict<BR>/</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=3DCourier size=3D2><BR>alter table=20
sal.novedades_modelos<BR>&nbsp;&nbsp; add foreign key=20
fk_novedade_ref_6071_sueldos (legajo)<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=20
references sal.sueldos (legajo)<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; on =
update=20
restrict<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; on delete =
restrict<BR>/</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=3DCourier size=3D2><BR>alter table=20
sal.novedades_modelos<BR>&nbsp;&nbsp; add foreign key=20
fk_novedade_ref_6473_novedade (novedad, planilla,=20
planilla)<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; references =
sal.novedades_factores=20
(novedad, planilla, planilla)<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; on =
update=20
restrict<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; on delete =
restrict<BR>/</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=3DCourier size=3D2><BR>alter table=20
sal.novedades_proceso<BR>&nbsp;&nbsp; add foreign key=20
fk_novedade_ref_6478_novedade (novedad, planilla,=20
planilla)<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; references =
sal.novedades_factores=20
(novedad, planilla, planilla)<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; on =
update=20
restrict<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; on delete =
restrict<BR>/</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=3DCourier size=3D2><BR>alter table=20
sal.novedades_factores<BR>&nbsp;&nbsp; add foreign key=20
fk_novedade_ref_7997_novedade =
(novedad)<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=20
references sal.novedades (novedad)<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; on =
update=20
restrict<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; on delete =
cascade<BR>/</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=3DCourier size=3D2><BR>alter table=20
sal.otras_informaciones<BR>&nbsp;&nbsp; add foreign key=20
fk_otras_in_ref_7128_empleado (legajo)<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; =

references sal.empleados (legajo)<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; on =
update=20
restrict<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; on delete =
restrict<BR>/</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=3DCourier size=3D2><BR>alter table=20
sal.otros_conocimientos<BR>&nbsp;&nbsp; add foreign key=20
fk_otros_co_ref_7063_empleado (legajo)<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; =

references sal.empleados (legajo)<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; on =
update=20
restrict<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; on delete =
restrict<BR>/</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=3DCourier size=3D2><BR>alter table=20
sal.otros_documentos_empleado<BR>&nbsp;&nbsp; add foreign key=20
fk_otros_do_ref_6534_tipos_de (tipo)<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=20
references sal.tipos_de_documentos =
(tipo)<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; on=20
update restrict<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; on delete=20
restrict<BR>/</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=3DCourier size=3D2><BR>alter table=20
sal.otros_documentos_empleado<BR>&nbsp;&nbsp; add foreign key=20
fk_otros_do_ref_6540_empleado (legajo)<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; =

references sal.empleados (legajo)<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; on =
update=20
restrict<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; on delete =
restrict<BR>/</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=3DCourier size=3D2><BR>alter table =
sal.parientes<BR>&nbsp;&nbsp; add=20
foreign key fk_pariente_empleados_empleado=20
(legajo)<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; references sal.empleados=20
(legajo)<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; on update=20
restrict<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; on delete =
cascade<BR>/</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=3DCourier size=3D2><BR>alter table =
sal.parientes<BR>&nbsp;&nbsp; add=20
foreign key fk_pariente_paises_pa_paises=20
(nacionalidad)<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; references sal.paises=20
(pais)<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; on update=20
restrict<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; on delete =
restrict<BR>/</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=3DCourier size=3D2><BR>alter table =
sal.parientes<BR>&nbsp;&nbsp; add=20
foreign key fk_pariente_ref_7117_profesio=20
(profesion)<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; references sal.profesiones =

(profesion)<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; on update=20
restrict<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; on delete =
restrict<BR>/</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=3DCourier size=3D2><BR>alter table =
sal.permisos<BR>&nbsp;&nbsp; add=20
foreign key fk_permisos_ref_7898_empleado=20
(legajo)<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; references sal.empleados=20
(legajo)<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; on update=20
restrict<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; on delete =
restrict<BR>/</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=3DCourier size=3D2><BR>alter table =
sal.permisos<BR>&nbsp;&nbsp; add=20
foreign key fk_permisos_ref_7901_empleado=20
(autorizo)<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; references sal.empleados=20
(legajo)<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; on update=20
restrict<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; on delete =
restrict<BR>/</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=3DCourier size=3D2><BR>alter table=20
sal.politicas_vacionales_detalles<BR>&nbsp;&nbsp; add foreign key=20
fk_politica_ref_5595_politica =
(politica)<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=20
references sal.politicas_vacacionales=20
(politica)<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; on update=20
restrict<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; on delete =
restrict<BR>/</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=3DCourier size=3D2><BR>alter table=20
sal.politica_vacacional_empleado<BR>&nbsp;&nbsp; add foreign key=20
fk_politica_ref_7197_empleado (legajo)<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; =

references sal.empleados (legajo)<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; on =
update=20
restrict<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; on delete =
restrict<BR>/</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=3DCourier size=3D2><BR>alter table=20
sal.politica_vacacional_empleado<BR>&nbsp;&nbsp; add foreign key=20
fk_politica_ref_7200_politica =
(politica)<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=20
references sal.politicas_vacacionales=20
(politica)<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; on update=20
restrict<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; on delete =
restrict<BR>/</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=3DCourier size=3D2><BR>alter table=20
sal.reconocimientos_y_premios<BR>&nbsp;&nbsp; add foreign key=20
fk_reconoci_ref_7155_empleado (legajo)<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; =

references sal.empleados (legajo)<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; on =
update=20
restrict<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; on delete =
restrict<BR>/</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=3DCourier size=3D2><BR>alter table =
sal.referencias<BR>&nbsp;&nbsp;=20
add foreign key fk_referenc_ref_7076_empleado=20
(legajo)<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; references sal.empleados=20
(legajo)<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; on update=20
restrict<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; on delete =
restrict<BR>/</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=3DCourier size=3D2><BR>alter table=20
sal.relaciones_otros_empleados<BR>&nbsp;&nbsp; add foreign key=20
fk_relacion_ref_7096_empleado (legajo)<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; =

references sal.empleados (legajo)<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; on =
update=20
restrict<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; on delete =
cascade<BR>/</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=3DCourier size=3D2><BR>alter table=20
sal.relaciones_otros_empleados<BR>&nbsp;&nbsp; add foreign key=20
fk_relacion_ref_7099_empleado=20
(legajo_referencia)<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; references =
sal.empleados=20
(legajo)<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; on update=20
restrict<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; on delete =
cascade<BR>/</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=3DCourier size=3D2><BR>alter table =
sal.sanciones<BR>&nbsp;&nbsp; add=20
foreign key fk_sancione_ref_7165_empleado=20
(legajo)<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; references sal.empleados=20
(legajo)<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; on update=20
restrict<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; on delete =
restrict<BR>/</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=3DCourier size=3D2><BR>alter table =
sal.sueldos<BR>&nbsp;&nbsp; add=20
foreign key fk_sueldos_ref_6032_empleado=20
(legajo)<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; references sal.empleados=20
(legajo)<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; on update=20
restrict<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; on delete =
restrict<BR>/</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=3DCourier size=3D2><BR>alter table=20
sal.tareas_realizadas_empresa<BR>&nbsp;&nbsp; add foreign key=20
fk_tareas_r_ref_7241_empleado (legajo)<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; =

references sal.empleados (legajo)<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; on =
update=20
restrict<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; on delete =
restrict<BR>/</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=3DCourier size=3D2><BR>alter table =
sal.turnos<BR>&nbsp;&nbsp; add=20
foreign key fk_turnos_ref_7939_turnos=20
(siguiente_turno)<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; references =
sal.turnos=20
(turno)<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; on update=20
restrict<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; on delete =
restrict<BR>/</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=3DCourier size=3D2><BR>alter table=20
sal.cargos_unidades<BR>&nbsp;&nbsp; add foreign key fk_ubicaciones=20
(ubicacion)<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; references sal.ubicaciones =

(ubicacion)<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; on update=20
restrict<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; on delete =
restrict<BR>/</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=3DCourier size=3D2><BR>alter table=20
sal.unidades_organicas<BR>&nbsp;&nbsp; add foreign key=20
fk_unidades_centros_d_centros_=20
(centro_de_costo)<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; references=20
sal.centros_de_costos =
(centro_de_costo)<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; on=20
update restrict<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; on delete=20
restrict<BR>/</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=3DCourier size=3D2><BR>alter table =
sal.vacaciones<BR>&nbsp;&nbsp;=20
add foreign key fk_vacacion_ref_7211_empleado=20
(legajo)<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; references sal.empleados=20
(legajo)<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; on update=20
restrict<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; on delete =
restrict<BR>/</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=3DCourier size=3D2><BR>alter table=20
sal.cargos_unidades<BR>&nbsp;&nbsp; add foreign key =
numeros_patronales_mjt=20
(codigo_numero_mjt)<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; references=20
sal.numeros_patronales_mjt (codigo)<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; on =
update=20
restrict<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; on delete =
restrict<BR>/</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=3DCourier size=3D2></FONT>&nbsp;</DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=3DCourier size=3D2></FONT>&nbsp;</DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=3DCourier size=3D2></FONT>&nbsp;</DIV>
<DIV>&nbsp;</DIV>
<DIV>&nbsp;</DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=3DCourier=20
size=3D2>____________________________________________________<BR>Sandrigo=
 Lezcano=20
Jara&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nb=
sp;=20
Asunci=F3n, Paraguay<BR>usando______: Ret Hat 7.2 (Enigma) - Kernel =
2.4.7-10=20
<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nb=
sp;&nbsp;=20
PostgreSQL 7.1.3 - psqlODBC 7.02.00.01<BR>migrando____: Sybase =
6.5&nbsp;&nbsp;=20
al&nbsp;&nbsp; PostgreSQL <BR>front end___: PowerBuilder=20
6.5&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=20
<BR>=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3DICQ:143590717=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D<BR>_________=
___________________________________________</FONT></DIV></BODY></HTML>

------=_NextPart_000_0048_01C32137.96D70E20--