FPAS_ENT_BRA_VW(SQL View) |
Index Back |
---|---|
FPAS Details by Estab.FPAS Details by Establishments. |
SELECT B.ESTABID ,B.EFFDT ,B.FPAS_CD_BRA ,B.THIRD_PARTY_CD_BRA ,B.ENT_CODE_BRA ,B.ENT_PCT_BRA ,A.JUD_COLL_BRA ,C.JUD_NBR_BRA ,C.CD_SUSP_FPAS_BRA FROM %Table(E_JUD_R_BRA_VW) A , %Table(EST_FPAS_BRA_VW) B , %Table(FPAS_JUD_C_BRA) C WHERE A.ESTABID = B.ESTABID AND A.FPAS_CD_BRA = B.FPAS_CD_BRA AND A.THIRD_PARTY_CD_BRA = B.THIRD_PARTY_CD_BRA AND A.ENT_CODE_BRA = B.ENT_CODE_BRA AND B.EFFDT >= A.START_DATE AND B.EFFDT < A.END_DATE AND C.ESTABID = B.ESTABID AND C.FPAS_CD_BRA = B.FPAS_CD_BRA AND C.THIRD_PARTY_CD_BRA = B.THIRD_PARTY_CD_BRA AND C.ENT_CODE_BRA = B.ENT_CODE_BRA AND C.EFFDT >= a.start_date AND C.EFFDT < a.end_date AND A.JUD_COLL_BRA = 'Y' UNION SELECT B.ESTABID ,B.EFFDT ,B.FPAS_CD_BRA ,B.THIRD_PARTY_CD_BRA ,B.ENT_CODE_BRA ,B.ENT_PCT_BRA ,'N' ,C.JUD_NBR_BRA ,C.CD_SUSP_FPAS_BRA FROM %Table(EST_FPAS_BRA_VW) B , %Table(FPAS_JUD_C_BRA) C WHERE NOT EXISTS ( SELECT 'X' FROM %Table(E_JUD_R_BRA_VW) A WHERE A.ESTABID = B.ESTABID AND A.FPAS_CD_BRA = B.FPAS_CD_BRA AND A.THIRD_PARTY_CD_BRA = B.THIRD_PARTY_CD_BRA AND A.ENT_CODE_BRA = B.ENT_CODE_BRA AND B.EFFDT >= A.START_DATE AND B.EFFDT < A.END_DATE AND A.JUD_COLL_BRA = 'Y') AND C.FPAS_CD_BRA = B.FPAS_CD_BRA AND C.THIRD_PARTY_CD_BRA = B.THIRD_PARTY_CD_BRA AND C.ENT_CODE_BRA = B.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
Default Value: %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.
Prompt Table: ENT_CD_TBL_BRA |
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.
Y/N Table Edit |
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 |