I have a table:
Declare @t table (ID int,name nvarchar(100)) Insert into @t values (1,\'Test\') Insert into @t values (1,\'A\') Insert into @t values (1,\'B\