抽取不同的数据
SELECT top 12 financial.effDate,financial.appDate, price.fundName ,
price.bidPrice, price.offerPrice, financial.unitNum ,financial.accUnitNum * price.offerPrice AS InvestPrice
FROM financial INNER JOIN price ON financial.fundId = price.fundId
WHERE (financial.contractNo = 'BB00001001') and (price.transCode='00' )
order by financial.effDate desc
在price.fundName 里面有
成长型,稳定型,犹豫期,安益型,避险型和平衡型这几种帐户
我现在查出来 price.fundName 下面都是属于 成长型账户
有没有方法能使这6个帐户都分别查出来2条
在上面的sql语句上面更改
谢谢了