COUNTRY_CUR_VW

(SQL View)
Index Back

Currency Codes by Country

The COUNTRY_CUR_TBL matches a country code with its currency codes. This view is used as prompt table to just show those currency codes for a specific country.

SELECT C.COUNTRY ,B.CURRENCY_CD ,B.EFFDT ,B.EFF_STATUS ,B.DESCRSHORT FROM PS_COUNTRY_TBL C , PS_CURRENCY_CD_TBL B WHERE ( ( C.COUNTRY = B.COUNTRY AND B.EFFDT = ( SELECT MAX(E.EFFDT) FROM PS_CURRENCY_CD_TBL E WHERE E.CURRENCY_CD=B.CURRENCY_CD) ) OR ( C.COUNTRY IN ('AUT','FIN','IRL','LUX','PRT','BEL','ITA','ESP','NLD','DEU','FRA','GRC','MLT','CYP','SVK','SVN','EST') AND (B.CURRENCY_CD = 'EUR' AND B.EFFDT = ( SELECT MAX(D.EFFDT) FROM PS_CURRENCY_CD_TBL D WHERE D.CURRENCY_CD=B.CURRENCY_CD)) ) )

# PeopleSoft Field Name PeopleSoft Field Type Database Column Type Description
1 COUNTRY Character(3) VARCHAR2(3) NOT NULL Country

Prompt Table: COUNTRY_TBL

2 CURRENCY_CD Character(3) VARCHAR2(3) NOT NULL Currency Code
3 EFFDT Date(10) DATE NOT NULL Effective Date
4 EFF_STATUS Character(1) VARCHAR2(1) NOT NULL Effective Status
A=Active
I=Inactive
5 DESCRSHORT Character(10) VARCHAR2(10) NOT NULL Short Description