抽取不同的数据

yzaiml yzaiml 墨衍会员 · AI 创作全网分发 墨衍智能分发 通过墨衍一键同步至各平台 可同步平台 CSDN微信公众号微博知乎掘金百家号博客园抖音小红书 你的文章也可以这样分发 墨衍会员 ¥399起/年,写一次发全网 我也要 + 加入社区
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语句上面更改

谢谢了
...全文
评论 2
收藏 已收藏
分享
返回顶部
yzaiml
疑难问题 22,298 成员 121,727 内容