SQL Server Forums
Profile | Register | 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
 New Topic  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
17438 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  
 New 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.06 seconds. Powered By: Snitz Forums 2000