Akash Salunkhe

Akash Salunkhe

  • 1.4k
  • 202
  • 4.6k

Sorting of "Text" Datatype

May 23 2017 10:47 AM
"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)