Psst.. new poll here.
[email protected] web/email now available. Want one? Go here.
Cannot use outlook/hotmail/live here to register as they blocking our mail servers. #microsoftdeez
Obey the Epel!
Paste
Pasted as SQL by registered user vvillacorta ( 1 year ago )
SELECT A.CODMES PERIODO_CAMPANIA,
A.PRODUCTO,
A.SUBPRODUCTO,
A.TIPO_CARGA,
A.TIPO_PRODUCTO,
T.key_value NUM_DOC,
M.key_value NUM_RUC,
A.OFERTA,
A.PLAZO,
A.TASA,
A.TASA_PISO,
A.SCOREFINAL_BUCKET,
A.CANAL_TLV,
A.celular1,
A.celular2,
A.telefono1,
A.telefono2,
A.celular_cne,
A.celular_cne_2,
A.celular_cne_3,
A.celular_cne_4,
A.celular_cne_5
FROM DLAB_PROGRAMADATOSVPC.TMP_VMVP_DESPLIEGUE_CAMPANIAS A
LEFT JOIN E_DW_VIEWS.V_MST_ENCRIP_NRO_DOC_MDL_HISTDIA M
ON A.NUM_RUC = M.NRO_DOC
LEFT JOIN E_DW_VIEWS.V_MST_ENCRIP_NRO_DOC_MDL_HISTDIA T
ON A.NUM_DOC = T.NRO_DOC AND A.NUM_DOC <> '.' AND A.NUM_DOC IS NOT NULL AND A.NUM_DOC NOT LIKE ''
WHERE 1 = 1
AND A.NUM_RUC <> '.'
AND A.NUM_RUC IS NOT NULL
AND A.NUM_RUC NOT LIKE ''
AND A.CODMES = (SELECT MAX(CODMES) FROM DLAB_PROGRAMADATOSVPC.TMP_VMVP_DESPLIEGUE_CAMPANIAS)
Revise this Paste