Please start any new threads on our new 
    site at https://forums.sqlteam.com.  We've got lots of great SQL Server
    experts to answer whatever question you can come up with.
    
        
            
                
                    
                        
                            
                                | Author | 
                                
                                 Topic  | 
                             
                            
                                    | 
                                         boreddy 
                                        Posting Yak  Master 
                                         
                                        
                                        172 Posts  | 
                                        
                                        
                                            
                                            
                                             Posted - 2015-02-24 : 01:43:15
                                            
  | 
                                             
                                            
                                            | Hi ExpertsI have the data like this 1	1	b11	2	b21	3	b31	4	b42	1	a12	2	a22	3	a32	4	a43	1	c13	2	c23	3	c33	4	c4I want to display like this b1	b2	b3	b41	1	1	11	2	3	4a1	a2	a3	a41	1	1	11	2	3	4c1	c2	c3	c41	1	1	11	2	3	4 | 
                                             
                                         
                                     | 
                             
       
                            
                            
                                | 
                                    
                                      
                                     
                                    
                                 | 
                             
                         
                     | 
                 
             
         |