SPB_SP_BU_VW

(SQL View)
Index Back

Service Provider View

Service Provider View for Business Unit

SELECT B.VENDOR_SETID , F.BUSINESS_UNIT ,A.PERSON_ID ,A.NAME ,B.VENDOR_ID FROM PS_SPB_PERSON_TBL A , PS_SPB_SERVICE_PRV B ,PS_SPM_BU_SNW_VW F WHERE A.PERSON_ID IN ( SELECT PERSON_ID FROM PS_SPB_SERVICE_PRV) AND A.PERSON_ID = B.PERSON_ID AND (B.SP_FUNCTION_TYPE = 'PROV' OR B.SP_FUNCTION_TYPE = 'INDP') AND B.EFFDT = ( SELECT MAX(D.EFFDT) FROM PS_SPB_SERVICE_PRV D WHERE D.PERSON_ID = B.PERSON_ID AND D.SP_FUNCTION_TYPE = B.SP_FUNCTION_TYPE AND D.EFFDT <= %CurrentDateIn) AND A.USER_ACC_STATUS <> '0' AND B.VENDOR_ID = F.VENDOR_ID

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