EX_RANGE_VW1

(SQL View)
Index Back

Expenses Per Diem Range View


SELECT DISTINCT b.SETID , a.COUNTRY , b.RANGE_ID , b.RANGE_TYPE 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) AND b.EFFDT = ( SELECT MAX(D.EFFDT) FROM PS_EX_RANGE_TBL D WHERE D.SETID = b.SETID AND D.RANGE_ID = b.RANGE_ID AND D.RANGE_CATEGORY = b.RANGE_CATEGORY AND D.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_TYPE Character(1) VARCHAR2(1) NOT NULL Range Type
D=Daily
H=Hourly