RBT_PHN_ATTR_VW
View containing Service Phone numbers for Comm customer
SELECT DISTINCT A.BO_ID
, A.ROLE_TYPE_ID
, B.BO_ID_CNTCT
, B.ROLE_TYPE_ID_CNTCT
, J.ATTRIBUTE_VALUE
, %subrec(RB_AUDIT_SBR,A)
FROM PS_BO_ROLE A LEFT OUTER JOIN PS_RBT_CNT_SRCH_VW B ON B.BO_ID_CUST = A.BO_ID
AND B.ROLE_TYPE_ID_CUST = A.ROLE_TYPE_ID LEFT OUTER JOIN PS_RF_INST_PROD I ON I.BO_ID_CUST = A.BO_ID
AND I.ROLE_TYPE_ID_CUST = A.ROLE_TYPE_ID
,PS_RF_ATTR_INSP J
WHERE J.INST_PROD_ID = I.INST_PROD_ID
AND J.SETID = I.SETID
AND J.ATTRIBUTE_ID = 'PS_PHONE_NUM' |