Documentos de Académico
Documentos de Profesional
Documentos de Cultura
marca, sgd_mvto_contadores_pda.serie, sgd_irregularidades_pda.id_irregularidad, SGD_PARAM_IRREGULARIDADES_PDA.DESCRIPCION, upper(substr(sgd_inconsistencia_pda.v alor, instr(sgd_inconsistencia_pda.valor, '_') + 1, 1000)) estado_fraude, sgd_ordenes_trabajo_pda.estado, sgd_ordenes_trabajo_pda.Id_Contrato from sgd_ordenes_trabajo_pda, sgd_actas_pda, sgd_mvto_contadores_pda, sgd_irregularidades_pda, SGD_PARAM_IRREGULARIDADES_PDA, SGD_GRUPOS_TRABAJOS, SGD_DIRECCIONAMIENTO, sgd_inconsistencia_pda where sgd_ordenes_trabajo_pda.id_orden = sgd_actas_pda.id_orden and sgd_ordenes_trabajo_pda.id_orden = sgd_mvto_contadores_pda.id_orden and sgd_ordenes_trabajo_pda.id_orden = sgd_irregularidades_pda.id_orden(+) AND sgd_irregularidades_pda.id_irregularidad = SGD_PARAM_IRREGULARIDADES_PDA.ID_IRREGULARIDAD(+) AND sgd_ordenes_trabajo_pda.id_orden = SGD_DIRECCIONAMIENTO.ID_ORDEN(+) AND SGD_DIRECCIONAMIENTO.GRUPO_TRABAJO = SGD_GRUPOS_TRABAJOS.ID_GRUPO_TRABAJO(+) and sgd_ordenes_trabajo_pda.id_orden=sgd_inconsistencia_pda.id_orden and sgd_inconsistencia_pda.cod_inconsistencia='ACT4' --and sgd_ordenes_trabajo_pda.id_Orden IN (SELECT DISTINCT ID_ORDEN FROM SGD_ENV IO_SOLICITUDES WHERE CONSECUTIVO_GEN=250) and sgd_ordenes_trabajo_pda.id_Orden IN (SELECT DISTINCT NUMERO_REV FROM SGD_ENV IO_REVISIONES WHERE CONSECUTIVO=302) ---PARA REVISIONES ORDER BY sgd_ordenes_trabajo_pda.CUENTA