Quantcast
Channel: SQLServerCentral » SQL Server 2014 » Development - SQL Server 2014 » Latest topics
Viewing all articles
Browse latest Browse all 3145

Separate rows depend on Previous Row

$
0
0
I have table with data like the below :



ID Name  Category_Sort
1 Campaign1  Beverage
2 Campaign2  Beverage
3 Campaign3  Food





I need to select with separate depend on cateory_s

Viewing all articles
Browse latest Browse all 3145

Trending Articles