Converting Column data into a single Row
STUFF(( SELECT DISTINCT '],[' + ltrim(str(YEAR(OrderDate)))
FROM Sales.SalesOrderHeader
ORDER BY '],[' + ltrim(str(YEAR(OrderDate)))
FOR XML PATH('')
), 1, 2, '') + ']'
Talks on SQL Server, database development, data management techniques,SQLBI/SSIS/SSAS/SSRS etc. Want to publish something db related ? mail to bineeshthomas@gmail.com with subject line starting as "SQLNET"
SQL NET FORUMPortal Maintained By : BINEESH THOMAS
0 Comments:
Post a Comment
Links to this post:
Create a Link
<< Home