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  | 
                             
                            
                                    | 
                                         cogy_z 
                                        Starting Member 
                                         
                                        
                                        1 Post  | 
                                        
                                        
                                            
                                            
                                             Posted - 2015-05-03 : 18:09:05
                                            
  | 
                                             
                                            
                                            | I have a table Sample with data stored like belowID		|	STRING					  |------------------------------------------------------------------1		|  'ENGLAN SPAIN' ITALY 'FRANCE GERMANY' BRAZILI need the output like..-----------------|ENGLAND SPAIN  ||---------------||ITALY          ||---------------||FRANCE GERMANY ||---------------||BRAZIL		|-----------------How can I do the same with a select query in SQL Server? | 
                                             
                                         
                                     | 
                             
       
                            
                       
                          
                            
                                    | 
                                     viggneshwar 
                                    Yak Posting Veteran 
                                     
                                    
                                    86 Posts  | 
                                    
                                      
                                        
                                          
                                           
                                            Posted - 2015-05-04 : 06:13:14
                                          
  | 
                                         
                                        
                                          | It can be done through loop or using XMLRegardsViggneshwar A  | 
                                         
                                        
                                            | 
                                         
                                       
                                     | 
                                   
                            
                            
                                | 
                                    
                                      
                                     
                                    
                                 | 
                             
                         
                     | 
                 
             
         |