EX_RANGE_VW

(SQL View)
Index Back

Expenses Per Diem Range View


SELECT a.SETID , a.COUNTRY , a.RANGE_ID , a.RANGE_CATEGORY , b.RANGE_TYPE , b.DESCR FROM PS_EX_RANGE_DTL a , PS_EX_RANGE_TBL b WHERE a.SETID = b.SETID AND a.RANGE_ID = b.RANGE_ID AND a.RANGE_CATEGORY = b.RANGE_CATEGORY AND a.EFFDT = ( SELECT MAX(c.EFFDT) FROM PS_EX_RANGE_DTL c WHERE c.SETID = a.SETID AND c.RANGE_ID = a.RANGE_ID AND c.RANGE_CATEGORY = a.RANGE_CATEGORY AND c.EFFDT <= %CurrentDateIn)

# PeopleSoft Field Name PeopleSoft Field Type Database Column Type Description
1 SETID Character(5) VARCHAR2(5) NOT NULL SetID
2 COUNTRY Character(3) VARCHAR2(3) NOT NULL Country
3 RANGE_ID Character(5) VARCHAR2(5) NOT NULL Range ID
4 RANGE_CATEGORY Character(5) VARCHAR2(5) NOT NULL Range Category
5 RANGE_TYPE Character(1) VARCHAR2(1) NOT NULL Range Type
D=Daily
H=Hourly
6 DESCR Character(30) VARCHAR2(30) NOT NULL Description