SPF_PROV_PCT_VW

(SQL View)
Index Back

Provider and Provider Contact

Provider and Provider Contact View

SELECT DISTINCT B.VENDOR_SETID AS SETID ,B.VENDOR_ID ,D.PERSON_ID ,A.NAME FROM PS_SPB_PERSON_TBL A , PS_SPB_SERVICE_PRV B , PS_SPF_WORDERREC C , PSOPRALIAS D WHERE A.PERSON_ID = B.PERSON_ID AND A.PERSON_ID = C.WO_CONID AND A.PERSON_ID = D.PERSON_ID AND (B.SP_FUNCTION_TYPE IN ('INDP','PROV')) AND B.ACTIVE_FLG = 'Y' AND (A.SPRO_PERSON_TYPE = 'SP' OR A.SPRO_PERSON_TYPE = 'PC') AND D.OPRALIASTYPE = 'SPP' AND B.EFFDT = ( SELECT MAX(E.EFFDT) FROM PS_SPB_SERVICE_PRV E WHERE E.PERSON_ID = B.PERSON_ID AND E.SP_FUNCTION_TYPE = B.SP_FUNCTION_TYPE AND E.EFFDT <= %CurrentDateIn) AND A.USER_ACC_STATUS <> '0'

# PeopleSoft Field Name PeopleSoft Field Type Database Column Type Description
1 SETID Character(5) VARCHAR2(5) NOT NULL SetID
2 VENDOR_ID Character(10) VARCHAR2(10) NOT NULL Vendor Identifier
3 PERSON_ID Character(15) VARCHAR2(15) NOT NULL Person ID
4 NAME Character(50) VARCHAR2(50) NOT NULL Name