select CURRENCY.currencyname, currency.currencysymbol, COUNTRYNAME.currencycode,
currency.exchangerate
from CURRENCY,COUNTRYNAME
where currency.currencycode=COUNTRYNAME.currencycode
having currency.exchangerate >= max(currency.exchangerate)
group by CURRENCY.currencyname, currency.currencysymbol,
COUNTRYNAME.currencycode, currency.exchangerate;
这是我得到的输出,我知道这是错误的,因为我试图只显示最大汇率。因此,任何解决此查询的帮助将不胜感激。我是 oracle sql 开发者
CURRENCYNAME CURRENCYSYMBOL CURRENCYCODE EXCHANGERATE
-------------------- -------------------- ------------ ------------
British Pound £ GBP 1,
US Dollar $ USD 1.9626 ,
Danish Krone kr DKK 9.9918 ,
Malaysian Ringgit RM MYR 6.35392 ,
Euro € EUR 1.34076 ,
Indian Rupee Rs INR 77.3265 ,
Japanese Yen ¥ JPY 209.881,