BUSINESS_NUM_VW

(SQL View)
Index Back

Business number for BPS

This view stores the first 9 digits of the business number for companies.

SELECT DISTINCT A.COMPANY ,%SUBSTRING(A.CANADA_BN,1,9) FROM PS_WAGELS_PLAN_TBL A WHERE A.EFF_STATUS = 'A' AND A.EFFDT = (SELECT MAX(B.EFFDT) FROM PS_WAGELS_PLAN_TBL B WHERE B.COMPANY = A.COMPANY AND B.EFF_STATUS = A.EFF_STATUS AND B.EFFDT <= %CURRENTDATEIN)

# PeopleSoft Field Name PeopleSoft Field Type Database Column Type Description
1 COMPANY Character(3) VARCHAR2(3) NOT NULL Company
2 BPS_BUSINESS_NO Character(9) VARCHAR2(9) NOT NULL Business Number