国名の長さが通貨名の長さよりも長い場合、フィールド文字を大文字に変換しようとすると、以下のエラーが発生します。
ORA-00923: FROM keyword not found where expected
00923. 00000 - "FROM keyword not found where expected"
これは私が使用したSQLステートメントです:
select
countryname.country, countryname.currencycode, currency.currencyname
case(
when length(countryname.country)> length (currency.currencyname)
then UCASE(countryname.country)
else
LCASE(countryname.country)
)end
from currency,countryname
where currency.currencycode=COUNTRYNAME.currencycode;