17,377
社区成员
发帖
与我相关
我的任务
分享
select *
from prpdexch
where exchdate = (select max(exchdate)
from prpdexch
where basecurrency = 'HKD'
and exchcurrency = 'CNY'
and validstatus = '1')
and basecurrency = 'HKD'
and exchcurrency = 'CNY'
and validstatus = '1'
SELECT * FROM
(SELECT * FROM prpdexch
WHERE basecurrency = 'HKD'
AND exchcurrency = 'CNY'
AND validstatus = '1'
ORDER BY exchdate DESC)
WHERE ROWNUM = 1;
select * from
(select *
from prpdexch
where basecurrency = 'HKD'
and exchcurrency = 'CNY'
and validstatus = '1'
order by exchdate desc)
where rownum=1