Please start any new threads on our new site at http://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

Our new SQL Server Forums are live! Come on over! We've restricted the ability to create new threads on these forums.

SQL Server Forums
Profile | Active Topics | Members | Search | Forum FAQ
 
Register Now and get your question answered!
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 SQL Server 2008 Forums
 Transact-SQL (2008)
 comma delimited string
 Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

cjcclee
Starting Member

33 Posts

Posted - 12/06/2013 :  22:32:39  Show Profile  Send cjcclee an AOL message  Reply with Quote
Hi,all

I have table

ID string
1 value1,value2,value3
2 value8,value7
3 value5


another table store the value1, 2 etc
this table return:
Value1
value2
value6
value4

I want get any ID that string contains value from second table
I want result be:
ID string
1 value1,value2

How to do it?
Thanks for help!

khtan
In (Som, Ni, Yak)

Singapore
17689 Posts

Posted - 12/06/2013 :  22:46:09  Show Profile  Reply with Quote
http://www.sqlteam.com/forums/topic.asp?TOPIC_ID=81254
http://sqlblog.com/blogs/adam_machanic/archive/2006/07/12/rowset-string-concatenation-which-method-is-best.aspx


KH
Time is always against us

Go to Top of Page
  Previous Topic Topic Next Topic  
 Reply to Topic
 Printer Friendly
Jump To:
SQL Server Forums © 2000-2009 SQLTeam Publishing, LLC Go To Top Of Page
This page was generated in 0.03 seconds. Powered By: Snitz Forums 2000