User Profile

Collapse

Profile Sidebar

Collapse
terminon
terminon
Last Activity: May 14 '07, 09:03 PM
Joined: May 11 '07
Location: Utah
  •  
  • Time
  • Show
  • Source
Clear All
new posts

  • terminon
    replied to 5-table SELECT giving me problems
    Thanks Rimsky. LEFT OUTER JOIN didn't help me, but it did get me thinking and helped me come up with the solution. Turns out all I had to do was remove
    where i.cf_id = cf.id OR i.qty IS NULL
    and change the last join to
    LEFT JOIN Equipment_Confi gurations_Items i on i.eq_id = eq.id AND i.cf_id = cf.id
    Thanks again for getting me thinking right.

    -Ben
    See more | Go to post

    Leave a comment:


  • terminon
    replied to 5-table SELECT giving me problems
    Sorry, in my attempt to clean up my SQL and make it more coherent for others, I made a mistake. The second join in my first select actually should be this:

    [PHP]INNER JOIN Vendors v on v.id = eq.vendor_id[/PHP]
    See more | Go to post

    Leave a comment:


  • I have run into this same issue in some of my programs. My solution may not be terribly elegant, but it works like a charm.

    Using a car example, say we have Ford and Toyota vehicles. I run a query that returns all vehicles complete with make and model. I then loop through it, creating a list of arrays with the info I want.

    Code:
    <cfloop query="qryGetModels">
       <cfset formSelectData = ListAppend(formSelectData,
    ...
    See more | Go to post

    Leave a comment:


  • terminon
    started a topic 5-table SELECT giving me problems

    5-table SELECT giving me problems

    New to the forum, and a relatively new with SQL, but until now I've been able to get everything to work just fine. I've spent hours trying to get this select statement to work right, and I've never quite gotten there -- it's probably an easy fix, and I'm just too close to the problem or too new at SQL to find it. This is on SQL Server 2005. Any help would be tremendously appreciated.

    I am trying to do a join including 5 tables: one...
    See more | Go to post
No activity results to display
Show More
Working...