ACA_SS_OPT_VW

(SQL View)
Index Back

ACA Self-Service Options

ACA Self-Service Options

SELECT DISTINCT A.EMPLID ,B.COMPANY ,D.ACA_ALE_MEMBER ,D.ACA_ONLINE_OPT FROM PS_PERSON A , PS_JOB B , PS_ACA_CMPY_TBL C , PS_ACA_FORM_OPTS D WHERE B.EMPLID=A.EMPLID AND B.EFFDT = ( SELECT MAX (B1.EFFDT) FROM PS_JOB B1 WHERE B1.EMPLID = B.EMPLID AND B1.EMPL_RCD = B.EMPL_RCD AND B1.COMPANY = B.COMPANY AND ((B1.EFFDT <= %CurrentDateIn) OR (B.EFFDT > %CurrentDateIn AND %CurrentDateIn < ( SELECT MIN(J2.EFFDT) FROM PS_JOB J2 WHERE J2.EMPLID = B.EMPLID AND J2.EMPL_RCD = B.EMPL_RCD AND J2.COMPANY = B.COMPANY) ) )) AND B.EFFSEQ = ( SELECT MAX(B2.EFFSEQ) FROM PS_JOB B2 WHERE B2.EMPLID = B.EMPLID AND B2.EMPL_RCD = B.EMPL_RCD AND B2.EFFDT = B.EFFDT AND B2.COMPANY = B.COMPANY) AND C.COMPANY=B.COMPANY AND C.EFFDT = ( SELECT MAX (C1.EFFDT) FROM PS_ACA_CMPY_TBL C1 WHERE C1.COMPANY = C.COMPANY AND C1.EFFDT <= %CurrentDateIn) AND C.ACA_ALE_MEMBER = D.ACA_ALE_MEMBER AND D.ACA_ONLINE_OPT = 'Y' AND D.ACA_CALENDAR_YEAR = ( SELECT MAX(D1.ACA_CALENDAR_YEAR) FROM PS_ACA_FORM_OPTS D1 WHERE D1.ACA_ALE_MEMBER = D.ACA_ALE_MEMBER AND %DateIn((%NumtoChar(D1.ACA_CALENDAR_YEAR) %Concat '-01-01')) <= %CurrentDateIn)

# PeopleSoft Field Name PeopleSoft Field Type Database Column Type Description
1 EMPLID Character(11) VARCHAR2(11) NOT NULL Employee ID
2 COMPANY Character(3) VARCHAR2(3) NOT NULL Company
3 ACA_ALE_MEMBER Character(3) VARCHAR2(3) NOT NULL Used to contain value of ALE Member name
4 ACA_ONLINE_OPT Character(1) VARCHAR2(1) NOT NULL Enable Electronic ACA Form in Self Service (Y/N). This option indicates whether or not the employees are able to view their ACA forms from the Self-Service.