本文介绍了透视SQL表我是新的枢轴的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

      RateCategory                      IDRT1
                                   
      RateCategoryID1                    17557                              
                                 
      RateCategoryID2                    11514                           
                                 
      RateCategoryID1                    17558

      RateCategoryID2                    11516

      RateCategoryID1                    17559

      RateCategoryID2                    11514

i want to pivot this table 
expected result


RateCategoryID1    RateCategoryID2  
 17557                 11514           
 17558                 11516 
 17559                 11514

What I have tried:

i am not getting how to pivot this table please help me i am new to pivot concept

推荐答案


这篇关于透视SQL表我是新的枢轴的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

10-19 10:53