奥礼网
新记
如何将SQL SERVER一个表中的两条记录合成一条
如题所述
举报该文章
相关建议 2017-09-26
select sum(case when wgrp_id='2' then quota end) w2, sum(case when wgrp_id='3' then quota end) w3, mm
from table
group by mm
温馨提示:内容为网友见解,仅供参考
当前网址:
https://aolonic.com/aa/w4dd5g33gwwa4wg3aw.html
其他看法
无其他回答
相似回答
大家正在搜
相关问题
SQL 如何将一个表中的两条或多条拥有相同ID的记录合并为一...
sql中怎样把同一张表上的两行记录合并在一行上展示
sqlserver 怎样把数据库同一个表中的两条记录互换位置...
在SQL Server中如何获得刚插入一条新记录的自动ID号
SQL 如何将一个表中的两条或多条拥有相同ID的记录合并为一...
sql查询中怎么将两条内容相同的记录显示成一条
SQL中怎样把同一张表中相同字段的内容合并为一条记录?
SQL中怎么把多查询结果合并成一条数据