SQL Server 2008 透视查询
我的 SQL Server 2008 表中的数据如下所示:
我想将其旋转为如下所示this:
基本上我想对 ReadTime 和 Coater 进行分组,然后在 DataType 列上进行旋转。有人可以帮我用 T-SQL 来做到这一点吗?
I have data in a SQL Server 2008 table that looks like this:
I want to pivot it to look like this:
Basically I want to group on ReadTime and Coater and then pivot on the DataType column. Could someone help me with the T-SQL to do this?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
也许这会有所帮助:
测试数据:
查询:
Maybe this will help:
Test data:
Query: