Row Concatenation with FOR XML PATH
Many times it is needed for reporting purposes to summarize normalized data into groups or lists of values. This is also known as rows concatenation. Some reporting and client side tools support this directly. Here is one approach to solve this in T-SQL using FOR XML PATH. CREATE TABLE Products ( sku INT PRIMARY KEY, product_desc VARCHAR(35)); CREATE […]