Ⅰ 求一句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到可以在基金官网或者天天基金网上查询最新的净值更新就可以啦!