That might help : http://www.jacek-szarapa.com/index.php?p=sql&d=2
just create table from comma delimited and join it the rest of the query... simple as that...
or maybe something like that?
declare @temp table (Record int, Type varchar(1), Number int)
insert into @temp values (1,'B',100)
insert into @temp values (2,'B',106)
insert into @temp values (3,'R',102)
insert into @temp values (4,'S',105)
insert into @temp values (5,'R',104)
insert into @temp...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.