x

How do I use a column separated filed within in clause

How do I use a column separated filed within in clause

Table 1 (id,requestedColor)

Data
1 Red,Green 2 Blue, 3 Yellow,Red

The column RequestColor in table 1 has comma separated values

table 2 (colorname)

Data Red Pink Green

I need to find all colors from table 2 for a given requestedColumn (from table 1).

Please help.

more ▼

asked Feb 23 at 08:45 AM in Default

avatar image

sharmazkul
1 1

(comments are locked)
10|1200 characters needed characters left

0 answers: sort voted first
Be the first one to answer this question
toggle preview:

Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

SQL Server Central

Need long-form SQL discussion? SQLserverCentral.com is the place.

Topics:

x1155
x441
x31

asked: Feb 23 at 08:45 AM

Seen: 72 times

Last Updated: Feb 23 at 08:45 AM

Copyright 2017 Redgate Software. Privacy Policy