FO_DEPT_VW(SQL View) |
Index Back |
---|---|
Depts regardless of SetID |
SELECT a.setid , a.deptid , a.effdt , a.eff_status ,a.descr ,a.company ,a.location FROM PS_DEPT_TBL a WHERE a.effdt = ( SELECT MAX(b.effdt) FROM PS_DEPT_TBL b WHERE a.setid = b.setid AND a.deptid = b.deptid AND b.effdt <= %CurrentDateIn) AND a.eff_status = 'A' AND a.company <> ' ' AND a.location <> ' ' |
# | PeopleSoft Field Name | PeopleSoft Field Type | Database Column Type | Description |
---|---|---|---|---|
1 | Character(5) | VARCHAR2(5) NOT NULL | SetID Value | |
2 | Character(10) | VARCHAR2(10) NOT NULL | Department | |
3 | Date(10) | DATE |
Effective Date
Default Value: %date |
|
4 | EFF_STATUS | Character(1) | VARCHAR2(1) NOT NULL |
Effective Status
A=Active I=Inactive |
5 | DESCR | Character(30) | VARCHAR2(30) NOT NULL | Description |
6 | COMPANY | Character(3) | VARCHAR2(3) NOT NULL | Company |
7 | LOCATION | Character(10) | VARCHAR2(10) NOT NULL | Location Code |