OPI_CURR_EFF_MV

(SQL View)
Index Back

Currency Effective Dated View

Effective dated currency view

SELECT CURRENCY_CD , EFFDT AS EFFDT_FROM , CASE WHEN LEAD(CURRENCY_CD ,1 ,NULL) OVER ( ORDER BY CURRENCY_CD ,EFFDT) <> CURRENCY_CD THEN %DateIn('9999-12-31') ELSE CASE WHEN LEAD(EFFDT ,1 ,NULL) OVER ( ORDER BY CURRENCY_CD ,EFFDT) = EFFDT THEN EFFDT ELSE LEAD(EFFDT-1 ,1 ,%DateIn('9999-12-31')) OVER ( ORDER BY CURRENCY_CD ,EFFDT) END END AS EFFDT_TO , EFF_STATUS ,DESCR ,DESCRSHORT ,DECIMAL_POSITIONS , SCALE_POSITIONS FROM PS_CURRENCY_CD_TBL ORDER BY 1 , 2

# PeopleSoft Field Name PeopleSoft Field Type Database Column Type Description
1 CURRENCY_CD Character(3) VARCHAR2(3) NOT NULL Currency Code
2 EFFDT_FROM Date(10) DATE Effective Date From
3 EFFDT_TO Date(10) DATE Effective Date To
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 DESCRSHORT Character(10) VARCHAR2(10) NOT NULL Short Description
7 DECIMAL_POSITIONS Number(2,0) SMALLINT NOT NULL Decimal Positions
8 SCALE_POSITIONS Number(1,0) SMALLINT NOT NULL Scale Positions