Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium

x
?
Solved

CFquery problem with two inner join statements

Posted on 2006-04-04
3
Medium Priority
?
194 Views
Last Modified: 2013-12-24
Hello I have a query that has two inner join statements. When I had only one it worked but for some reason it doesn't work now. help please...
 SELECT     a.systemName, a.systemNumber, a.numberofcpu, a.numberofio, a.ORG, a.division, b.director, a.type, a.comment, a.disposition, locations.Building_Number_Compaq, a.dateleftbldg, a.rmano, a.redeploy, a.lightson, a.footprint, a.srdate, a.srby, a.onallcount
FROM         dbo.NSKSystemInfo a INNER JOIN dbo.director b ON a.director_id = b.director_ID, NSKSystemInfo INNER JOIN locations ON NSKSystemInfo.loc_id = locations.location_id
WHERE     (a.onallcount = 'Yes')
order by a.systemname
0
Comment
Question by:lhaluska
  • 2
3 Comments
 
LVL 10

Expert Comment

by:rob_lorentz
ID: 16375693
dont need the comma

SELECT     a.systemName, a.systemNumber, a.numberofcpu, a.numberofio, a.ORG, a.division, b.director, a.type, a.comment, a.disposition, locations.Building_Number_Compaq, a.dateleftbldg, a.rmano, a.redeploy, a.lightson, a.footprint, a.srdate, a.srby, a.onallcount
FROM         dbo.NSKSystemInfo a
INNER JOIN dbo.director b ON a.director_id = b.director_ID
INNER JOIN locations ON NSKSystemInfo.loc_id = locations.location_id
WHERE     (a.onallcount = 'Yes')
order by a.systemname
0
 
LVL 10

Accepted Solution

by:
rob_lorentz earned 2000 total points
ID: 16375706
SELECT     a.systemName, a.systemNumber, a.numberofcpu, a.numberofio, a.ORG, a.division, b.director, a.type, a.comment, a.disposition, locations.Building_Number_Compaq, a.dateleftbldg, a.rmano, a.redeploy, a.lightson, a.footprint, a.srdate, a.srby, a.onallcount
FROM         dbo.NSKSystemInfo a
INNER JOIN dbo.director b ON b.director_ID = a.director_id
INNER JOIN locations ON locations.location_id  = a.loc_id
WHERE     (a.onallcount = 'Yes')
order by a.systemname
0
 
LVL 1

Author Comment

by:lhaluska
ID: 16375780
thank you very much that works great....
0

Featured Post

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

A web service (http://en.wikipedia.org/wiki/Web_service) is a software related technology that facilitates machine-to-machine interaction over a network. This article helps beginners in creating and consuming a web service using the ColdFusion Ma…
Periodically we have to update or add SSL certificates for customers. Depending upon your hosting plan you may be responsible for the installation and/or key generation. In the wake of Heartbleed many sites were forced to re-key. We will concen…
Integration Management Part 2
Whether it be Exchange Server Crash Issues, Dirty Shutdown Errors or Failed to mount error, Stellar Phoenix Mailbox Exchange Recovery has always got your back. With the help of its easy to understand user interface and 3 simple steps recovery proced…
Suggested Courses

571 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question