FPAS_E02_BRA_VW(SQL View) |
Index Back |
---|---|
FPAS Jud vs FPAS 3rd by EstabFPAS Judicial Gatherings crossed with FPAS/Third party Codes by Establishments BRA. |
SELECT A.ESTABID , A.EFFDT , A.FPAS_CD_BRA , A.THIRD_PARTY_CD_BRA , CASE WHEN B.ENT_CODE_BRA IS NOT NULL THEN B.ENT_CODE_BRA ELSE A.ENT_CODE_BRA END , CASE WHEN B.ENT_PCT_BRA IS NOT NULL THEN B.ENT_PCT_BRA ELSE A.ENT_PCT_BRA END , CASE WHEN B.JUD_NBR_BRA IS NOT NULL THEN 'Y' ELSE 'N' END , CASE WHEN B.JUD_NBR_BRA IS NOT NULL THEN B.JUD_NBR_BRA ELSE A.JUD_NBR_BRA END , CASE WHEN B.CD_SUSP_FPAS_BRA IS NOT NULL THEN B.CD_SUSP_FPAS_BRA ELSE A.CD_SUSP_FPAS_BRA END FROM PS_FPAS_E01_BRA_VW A LEFT OUTER JOIN PS_FPAS_JUD_C_BRA B ON B.ESTABID = A.ESTABID AND B.EFFDT = A.EFFDT AND B.COUNTY_CD_BRA = A.COUNTY_CD_BRA AND B.FPAS_CD_BRA = A.FPAS_CD_BRA AND B.THIRD_PARTY_CD_BRA = A.THIRD_PARTY_CD_BRA AND B.ENT_CODE_BRA = A.ENT_CODE_BRA |
# | PeopleSoft Field Name | PeopleSoft Field Type | Database Column Type | Description |
---|---|---|---|---|
1 | ESTABID | Character(12) | VARCHAR2(12) NOT NULL | Establishment ID |
2 | EFFDT | Date(10) | DATE NOT NULL | Effective Date |
3 | FPAS_CD_BRA | Number(3,0) | SMALLINT NOT NULL | FPAS Social Assistant & Prevision Code |
4 | THIRD_PARTY_CD_BRA | Number(4,0) | SMALLINT NOT NULL | Third Party Code |
5 | ENT_CODE_BRA | Character(4) | VARCHAR2(4) NOT NULL | Entity Code. |
6 | ENT_PCT_BRA | Number(6,2) | DECIMAL(5,2) NOT NULL | Entity Percentage |
7 | JUD_COLL_BRA | Character(1) | VARCHAR2(1) NOT NULL | Judicial Gathering. |
8 | JUD_NBR_BRA | Character(21) | VARCHAR2(21) NOT NULL | Proceeding Number |
9 | CD_SUSP_FPAS_BRA | Number(14,0) | DECIMAL(14) NOT NULL | Susp Code FPAS |