SQL Server 2014怎么可以使多个结果变成横排,并且第一列一一对应上
SQL Server 2014 Management Studio怎么样可以让下面几个数据变成横排,并且对应相应的地市?
原使用的公式如下:
elect ABC0501."地市",count("5G省内流量(T)"+"5G省外流量(T)") AS '大于10T卡数量' from ABC0501 where "5G省内流量(T)"+"5G省外流量(T)">10000 group by "地市"
select ABC0501."地市",count("5G省内流量(T)"+"5G省外流量(T)") AS '大于20T卡数量' from ABC0501 where "5G省内流量(T)"+"5G省外流量(T)">20000 group by "地市"
select ABC0501."地市",count("5G省内流量(T)"+"5G省外流量(T)") AS '大于30T卡数量' from ABC0501 where "5G省内流量(T)"+"5G省外流量(T)">30000 group by "地市"