Ⅰ 求一句Select 語句
這個問題有一個難點,就是要篩選某一個日期的前一天的數據。
代碼我已經調試出來了,假設這張基金凈值表叫做fund,只用一句話就可以實現樓主想要的功能:
假設是要查詢7月1號到8月1號每隻基金的增長率:
select r.基金代碼,(r.復權凈值-t.復權凈值)/t.復權凈值 as 基金增長率 from
(select * from (select a.基金代碼 as temp_fund,max(a.凈值日期) as temp_day from fund a where a.凈值日期<='2011-8-1' group by a.基金代碼) inner join fund b
on temp_fund=b.基金代碼 and temp_day=b.凈值日期) r,
(select * from(select c.基金代碼 as temp_fund,max(c.凈值日期) as temp_day from fund c where c.凈值日期<='2011-7-1' group by c.基金代碼) inner join fund d
on temp_fund=d.基金代碼 and temp_day=d.凈值日期) t
where r.基金代碼=t.基金代碼
樓主快去試試吧~我可是調了2個小時哦~能用記得給分哈~
Ⅱ 004224基金凈值查詢
招商銀行復有代銷該支基金,請打制開網頁鏈接查看歷史凈值。
基金採用未知價原則,無法查看實時凈值。
招行系統一般於下一個交易日早上九點公布上一交易日的基金凈值;基金公司一般為交易日當天的19:00-21:00左右公布。
Ⅲ 001004基金凈值怎麼算的
不用算啊,每天晚上7點到11到可以在基金官網或者天天基金網上查詢最新的凈值更新就可以啦!