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: 428

Filed under:
|

alt text

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

Related posts about tsql

Related posts about sql-server-2005