SPB_SRV_PRV1_VW

(SQL View)
Index Back

Service Provider View

Service Provider View

SELECT A.VENDOR_SETID , A.VENDOR_ID , A.PERSON_ID , B.NAME , A.PROVIDER_CONTACT , D.NAME AS SP_PERS_NAME FROM PS_SPB_SERVICE_PRV A , PS_SPB_PERSON_TBL B , PS_SPB_PERSON_TBL D WHERE A.PERSON_ID = B.PERSON_ID AND D.PERSON_ID = A.PROVIDER_CONTACT AND (A.SP_FUNCTION_TYPE = 'PROV' OR A.SP_FUNCTION_TYPE = 'INDP') AND A.EFFDT = ( SELECT MAX(D.EFFDT) FROM PS_SPB_SERVICE_PRV D WHERE D.PERSON_ID = A.PERSON_ID AND D.SP_FUNCTION_TYPE = A.SP_FUNCTION_TYPE AND D.EFFDT <= %CurrentDateIn) AND B.USER_ACC_STATUS = '1'

# 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
5 PROVIDER_CONTACT Character(15) VARCHAR2(15) NOT NULL PROVIDER CONTACT
6 SP_PERS_NAME Character(50) VARCHAR2(50) NOT NULL person name field