GPBR_EID_EST_VW(SQL View) |
Index Back |
---|---|
Establishment ID ViewUsed by SEFIP Autonomous to display Establishment ID and its related Establishment data. |
SELECT %Substring(b.estab_id_bra,1,14) , a.estabid , a.descr FROM PS_ESTAB_TBL a , ps_estab_id_bra b WHERE a.country = 'BRA' AND a.effdt = ( SELECT MAX(effdt) FROM PS_ESTAB_TBL WHERE estabid = a.estabid AND country = a.country AND effdt <= %CurrentDateIn) AND b.estabid = a.estabid AND b.effdt = a.effdt AND b.country = a.country AND b.estab_id_type_bra IN('CEI', 'CNPJ') |
# | PeopleSoft Field Name | PeopleSoft Field Type | Database Column Type | Description |
---|---|---|---|---|
1 | GPBR_INSCR | Character(14) | VARCHAR2(14) NOT NULL | Company Inscription Brazil |
2 | ESTABID | Character(12) | VARCHAR2(12) NOT NULL | Establishment ID |
3 | DESCR | Character(30) | VARCHAR2(30) NOT NULL | Description |