SunQuest
           ColdFusion Development
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsProgramming Languages - MoreColdFusion Development

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
1200+ fellow developers rate and compare features of the top IDEs, like Visual Studio, Eclipse, RAD, Delphi and others, across 13 categories. Enjoy this FREE Download of the IDE User Satisfaction Study by Evans Data Corporation. Download Now!
  #1  
Old April 2nd, 2005, 05:32 PM
jdh0f0 jdh0f0 is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jan 2005
Posts: 80 jdh0f0 User rank is Private First Class (20 - 50 Reputation Level)jdh0f0 User rank is Private First Class (20 - 50 Reputation Level) 
Time spent in forums: 1 Day 4 h 20 m 54 sec
Reputation Power: 4
Angry Joining data from 2 tables and grouping output

I've been trying to get this to work for hours with no luck. I have 2 tables - [data] and [faculty] - and I need to generate output that includes every record in [data] one time each and lists multiple records in [faculty] for each record in [data]. The two are linked by the fields data.ID and faculty.dataID.

After about a hundred variations, what I curently have is:

<CFQUERY NAME="output" DATASOURCE="gus-survey">
SELECT *
FROM Data LEFT OUTER JOIN Faculty
ON data.ID = faculty.dataID
</CFQUERY>

<CFOUTPUT="output" GROUP="dataID">
....
</CFOUTPUT>

This lists each record in [data] but only one record from [faculty] rather than all that match. What do I need to change to get the complete list of [faculty] records that match the [data] record?

Thanks,
Jason

Reply With Quote
  #2  
Old April 2nd, 2005, 06:38 PM
jdh0f0 jdh0f0 is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jan 2005
Posts: 80 jdh0f0 User rank is Private First Class (20 - 50 Reputation Level)jdh0f0 User rank is Private First Class (20 - 50 Reputation Level) 
Time spent in forums: 1 Day 4 h 20 m 54 sec
Reputation Power: 4
Never mind. I finally figured out that I needed to add an additional cfoutput tag around the faculty output.

Jason

Reply With Quote
Reply

Viewing: Dev Shed ForumsProgramming Languages - MoreColdFusion Development > Joining data from 2 tables and grouping output


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 2 hosted by Hostway