SCC_SI_ORG_VW

(SQL View)
Index Back

Service Indicator External Org

Service Indicator External Org view sorted with the most recent effective date.

SELECT A.EXT_ORG_ID , A.EFFDT , A.EFF_STATUS , A.DESCR , A.DESCR50 , A.OTH_NAME_SORT_SRCH , A.EXT_ORG_TYPE , A.ORG_CONTACT , A.ORG_LOCATION , A.ORG_DEPARTMENT , A.PROPRIETORSHIP , A.SETID , A.VENDOR_ID , A.TAXPAYER_ID_NO FROM PS_EXT_ORG_TBL A WHERE A.EFFDT = ( SELECT MAX(A1.EFFDT) FROM PS_EXT_ORG_TBL A1 WHERE A.EXT_ORG_ID = A1.EXT_ORG_ID AND A1.EFFDT <= %CurrentDateIn)

# PeopleSoft Field Name PeopleSoft Field Type Database Column Type Description
1 EXT_ORG_ID Character(11) VARCHAR2(11) NOT NULL External Org ID
2 EFFDT Date(10) DATE Effective Date

Default Value: %date

3 EFF_STATUS Character(1) VARCHAR2(1) NOT NULL Effective Status
A=Active
I=Inactive
4 DESCR Character(30) VARCHAR2(30) NOT NULL Description
5 DESCR50 Character(50) VARCHAR2(50) NOT NULL Description of length 50
6 OTH_NAME_SORT_SRCH Character(50) VARCHAR2(50) NOT NULL Search Name
7 EXT_ORG_TYPE Character(4) VARCHAR2(4) NOT NULL Organization Type

Prompt Table: SCC_ORG_TYP_TBL

8 ORG_CONTACT Number(4,0) SMALLINT NOT NULL Contact Nbr
9 ORG_LOCATION Number(3,0) SMALLINT NOT NULL Location Nbr
10 ORG_DEPARTMENT Number(3,0) SMALLINT NOT NULL Department Nbr
11 PROPRIETORSHIP Character(4) VARCHAR2(4) NOT NULL Proprietorship
OTHR=Other
PRIV=Private
PUBL=Public
RELG=Religious
12 SETID Character(5) VARCHAR2(5) NOT NULL SetID
13 VENDOR_ID Character(10) VARCHAR2(10) NOT NULL Vendor Identifier
14 TAXPAYER_ID_NO Character(9) VARCHAR2(9) NOT NULL Taxpayer ID Number