Hi,
I have a table with data in columns that are delimited by commas .
MyTable(
gid varchar(5),userids varchar(50)
)
gid userids
1 john,fred,mary
2 ted,bob
I need to return the following :
gid userids
1 Mary
1 fred
1 john
2 ted
2 bob
I haven't used CTE expessions before and all I can find is CTE expressions that do it for a local variable.
Has anyone ever done this before?
I'd appreciate any help out there.
Thanks,
EamonOD 🙂