/ Published in: SQL

Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
( SELECT SA.AttributeName + ':' + SAV.AttributeValue + ', <br>' FROM Core.ProductAttributeValue PAV JOIN Core.AttributeValue SAV ON SAV.AttributeValueId = PAV.AttributeValueId JOIN Core.Attribute SA ON SA.AttributeID = SAV.AttributeId WHERE PAV.ProductID = P.ProductId AND PAV.Version = P.Version FOR XML PATH('')) AS Attributes, --Simple Version ( SELECT T.ColToConcat + "," FROM SubqueryTable T WHERE T.Id = MainQuery.Id FOR XML PATH('') ) AS Concat
Comments
