Hello. I have the following circumstance and I can't change the table design.
Table 1 columns
ID - identity field
Types - varchar field of comma delmited number (example: 1,2,3)
Table 2 columns
TypeID - identity field
Type - varchar (examples: NEWS or TRAVEL or WHATEVER)
Let's say NEWS is TypeID=1, TRAVEL is TypeID=2 and so on.
I need to select everything from table 1 but instead of returning 1,2,3 in the Types field I want to return NEWS,TRAVEL,WHATEVER
Can someone give me an example of how I can do this?
thanks!
Table 1 columns
ID - identity field
Types - varchar field of comma delmited number (example: 1,2,3)
Table 2 columns
TypeID - identity field
Type - varchar (examples: NEWS or TRAVEL or WHATEVER)
Let's say NEWS is TypeID=1, TRAVEL is TypeID=2 and so on.
I need to select everything from table 1 but instead of returning 1,2,3 in the Types field I want to return NEWS,TRAVEL,WHATEVER
Can someone give me an example of how I can do this?
thanks!