22,302
社区成员




select fdate,fzqdm,(fzqsz-flx)/(select sum(fzqsz-flx) from RP_GZBONDSDETAIL where fdate = t.fdate) as wt
from RP_GZBONDSDETAIL t
select *,rn=(select COUNT(1) from #t b where b.id<=a.id) as wt from #t a -- id要是唯一属性
order by [fdate],id asc