Welcome, guest! Login / Register - Why register?
Psst.. new poll here.
Psst.. new forums here.
Microsoft is blocking us again (TY IP Reputation!) so dont bother with any of their useless mail servers here and just use oauth login instead. Thank the nice Russians for causing that. :)

Paste

Pasted as SQL by obalcazar ( 2 years ago )
SELECT D.Numero_Documento_Desc RUC
               , A.Dni_Desc                           DNI
               , A.Telefono_Desc                   CELULAR
               , B.Email_Desc                       CORREO 
FROM E_DW_VIEWS.V_MST_VPC_CIMA_USER A 
LEFT JOIN E_DW_VIEWS.V_MST_VPC_CIMA_ACCOUNT B                ON A.Usuario_Id=B.Usuario_Id 
LEFT JOIN E_DW_VIEWS.V_MST_VPC_CIMA_ACCOUNT_BNESS C ON B.Cuenta_Id=C.Cuenta_Id 
LEFT JOIN E_DW_VIEWS.V_MST_VPC_CIMA_BUSINESS D               ON D.Negocio_Id=C.Negocio_Id 
LEFT JOIN E_DW_VIEWS.V_MST_VPC_CIMA_CATALOG E                 ON E.Negocio_Id=D.Negocio_Id 
LEFT JOIN E_DW_VIEWS.V_MST_VPC_CIMA_CATALOG_ITEM F      ON E.Catalogo_Id=F.Catologo_Id 
LEFT JOIN E_DW_VIEWS.V_MST_VPC_CIMA_OFFER G                     ON F.Catologo_Item_Id=G.Catologo_Item_Id 
LEFT JOIN E_DW_VIEWS.V_MST_VPC_CIMA_PRODUCT H                ON F.Producto_Id=H.Producto_Id 
WHERE H.Codigo_Producto_Cd IN ('VENDEMAS','IZIPAY') 
AND G.Estado_Desc='OFFERED' 
AND G.Fecha_Aceptacion_Dt IS NULL

 

Revise this Paste

Parent: 127562
Your Name: Code Language: