select sum(buyprice),sum(commission1) from saleresults where level='3' and agentno='1'
本文介绍了一个SQL查询案例,用于从销售结果表中选取特定代理编号为1且等级为3的数据,并对其购买价格及佣金进行求和。
select sum(buyprice),sum(commission1) from saleresults where level='3' and agentno='1'

被折叠的 条评论
为什么被折叠?