4
Reply

Sorting of "Text" Datatype

Akash Salunkhe

Akash Salunkhe

May 23 2017 10:47 AM
228
"Select *, SUBSTRING((SELECT ',' + s.product FROM DiscountedWarrantiesOffersProducts s where idoffer=d.id ORDER BY s.product FOR XML PATH('')),2,200000) as products from DiscountedWarrantiesOffers d"
 
This is the query from  I am getting the Data on Gridview.
I want to sort the fields in that gridview.
One field is Text datatype.
 
Kindly suggest the query.
 Akash
 

Answers (4)