Update column using rows of a table.
        Posted  
        
            by Muhammad Kashif Nadeem
        on Stack Overflow
        
        See other posts from Stack Overflow
        
            or by Muhammad Kashif Nadeem
        
        
        
        Published on 2010-04-12T08:19:12Z
        Indexed on 
            2010/04/12
            8:23 UTC
        
        
        Read the original article
        Hit count: 535
        
tsql
|sql-server-2005

Update Combined column using CategoryCode of every OrderId. In this example there are two OrderIds 990 and 986. Need to concatenate categories of these two individually.
The desired result is like this.
990 Bus, Pub, Shoot, Club, Bus, Hos
Thanks.
© Stack Overflow or respective owner