sql 多表返回汇总结果

2015-04-18 0 314
sql 多表返回汇总结果
with tb(id,product,barcode,qty) as
(
select 1,'AA',240,3
union all select 2,'BB',245,2
union all select 3,'AA',255,2
union all select 4,'BB',240,1
)

select * from tb compute sum(qty),sum(barcode)

遇见资源网 sql sql 多表返回汇总结果 http://www.ox520.com/17596.html

常见问题

相关文章

发表评论
暂无评论
官方客服团队

为您解决烦忧 - 24小时在线 专业服务