Hello, I need to bring the distinct result in third columnBelow one is my sample tableDeclare @t table( Id int, name varchar(50), Actions varchar(50), Active int)Insert into @tSelect 1,'One','aabccdddee',1 Union allSelect 2,'Two','bbccce',1 Union allSelect 3,'Three','fdeg',1 Union allselect 4,'Four','ggeefff',1Select * from @t
My Required Output is1 One abcde 12 Two bce 13 Three fdeg 14 Four gef 1
can any one guide me through sample codeSuri