↧
Sql server SubQuery
Do you have another column that controls the order within the group or just the order or rows as you showed them? Say, some Id column that provides the order shown?If yes, then;with cte as (select...
View ArticleSql server SubQuery
You need to PIVOT the rows groups into difefrent Columns.Check this post: http://sqlwithmanoj.com/2009/04/12/ms-sql-server-2005-new-feature-pivot-and-unpivot/~manoj | email:...
View Article