Advertisement

03.26.2008 at 05:27AM PDT, ID: 23270111
[x]
Attachment Details

Get more than one row from a column

Asked by panosms in ColdFusion Studio, ColdFusion Application Server, SQL Query Syntax

Tags: ADOBE, COLDFUSION

Hello experts.
On my question on this site:
http://www.experts-exchange.com/Software/Server_Software/Web_Servers/ColdFusion/Q_23269582.html
I have solution from angelli :
<cfquery name="List_test_column" datasource="carfree24">
SELECT a.artikel_ID ,a.test_column ,test.test_Text
FROM dbo.artikel a,test
where Artikel_ID=1
and ',' + a.test_column + ',' LIKE '%,' + cast(test.test_ID as varchar(20)) + ',%'
<c/fquery>.
The tables are:
I have in a table (artikel) and column (test_column) values in form:
artikel_Id       test_column
1                   10,20,30,40,50,60,70
2                   20,30,60,70,80,90..............
In a second table (test) and column(test_text):
test_ID            test_Text
10                    text1
20                    text2
30                    text3..................
The output:
<cfoutput>#List_test_column.test_Text#</cfoutput>
The problem is that i get in the browser only one text as result
(When i test the query i get a result:
1 text1
2 text2
3 text3
4 text4........
I want a result :text1,text2,text3,textt4.....
Any help?Start Free Trial
 
Loading Advertisement...
 
[+][-]03.26.2008 at 05:41AM PDT, ID: 21210919

View this solution now by starting your 7-day free trial. Setting up your free trial is quick, easy, and secure. We will return you to this solution, unlocked, when you're done.

 

About this solution

Zones: ColdFusion Studio, ColdFusion Application Server, SQL Query Syntax
Tags: ADOBE, COLDFUSION
Sign Up Now!
Solution Provided By: dgrafx
Participating Experts: 1
Solution Grade: A
 
 
[+][-]03.26.2008 at 05:58AM PDT, ID: 21211074

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]03.26.2008 at 06:47AM PDT, ID: 21211532

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]03.26.2008 at 07:37AM PDT, ID: 21212074

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]03.26.2008 at 08:14AM PDT, ID: 21212505

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]03.26.2008 at 08:26AM PDT, ID: 21212641

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]03.26.2008 at 09:46AM PDT, ID: 21213623

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
 
Loading Advertisement...
20080716-EE-VQP-32 - Hierarchy / EE_QW_2_20070628