Get comma separated of a fixed length data


Please login or register to vote for this query.

(click on this box to dismiss)


Q&A for people who build and repair bicycles, people who train cycling, or commute on bicycles

-- Enter Query Title
-- Enter Query Description

declare @test table(
    id int not null identity(1,1),
    EligiblGroup varchar(12)

insert into @test values('A11,A12,A13')
insert into @test values('B11,B12,B13')

select substring(EligiblGroup ,1,3) from @test union all
select substring(EligiblGroup,5,3) from @test union all
select substring(EligiblGroup,9,3) from @test

Enter Parameters

Switch to meta site
loading Hold tight while we fetch your results