For example if we have the values:
username Category
-------------------- ----------
Brian cs
Tom cs
Joe cs
Allen cs
Bill ts
Steven ts
Fred ts
Ted ts
I Need an Output as
username Category
-------------------- ----------
Brian cs
Tom
Joe
Allen
Bill ts
Steven
Fred
Ted
I have Tried
1) T-SQL How to select rows without duplicate values from one column?
2) http://www.rajapet.com/2010/04/suppressing-repeated-column-value-in.html
3) How to select records without duplicate on just one field in SQL?
Nothing Work well ( What i Expected)
Is there any other way ?