You are on page 1of 2

select * from conceptos_modalidades_sindical cmsi

where cmsi.emp_codigo = 5
and cmsi.msi_numero = 227
--AND cms_vigente = 'S'
and cmsi.cto_numero in
(8091,
5578,
5580,
5721,
6670,
7130,
8090,
6336,
8030,
5745,
5700,
6497,
5755,
5654,
5664,
5665,
7362,
5600,
5676,
5695,
5726,
5727,
6390,
6313,
5729
)FOR UPDATE;
select CTO.CTO_CODIGO,cto.cto_descripcion,cmsi.* from conceptos_modalidades_sind
ical cmsi, tipos_conceptos_sueldos cto
where cmsi.emp_codigo = 5
and cmsi.msi_numero = 227
and cmsi.cto_numero = cto.cto_numero
and cmsi.cms_vigente_hasta is null
AND cms_vigente = 'N'
and cmsi.cto_numero in
(8091,
5578,
5580,
5721,
6670,
7130,
8090,
6336,
8030,
5745,
5700,
6497,
5755,
5654,
5664,
5665,
7362,
5600,
5676,

5695,
5726,
5727,
6390,
6313,
5729
);