how to get the comma seperated values of the column stored in the Sql server
Posted
by
Innova
on Stack Overflow
See other posts from Stack Overflow
or by Innova
Published on 2011-11-27T05:19:24Z
Indexed on
2011/11/27
9:51 UTC
Read the original article
Hit count: 185
how to get the comma separated values stored in the Sql Db into a individual values
e.g in sql DB the column is stored with comma values as shown below,
EligiblGroup
A11,A12,A13
B11,B12,B13
I need to get
EligibleGroup
A11
A12
A13
B11
B12
...
I have written a query that will fetch me some list of employees with employee name and elibigle group
XXX A11
YYY B11
ZZZ C11
I need to check that the employees(XXX,YYY,ZZZ) eligiblegroup falls within this
EligiblGroup
A11,A12,A13
B11,B12,B13
and retrun me only that rows.
© Stack Overflow or respective owner