Why Experts Exchange?

Experts Exchange always has the answer, or at the least points me in the correct direction! It is like having another employee that is extremely experienced.

Jim Murphy
Programmer at Smart IT Solutions

When asked, what has been your best career decision?

Deciding to stick with EE.

Mohamed Asif
Technical Department Head

Being involved with EE helped me to grow personally and professionally.

Carl Webster
CTP, Sr Infrastructure Consultant
Ask ANY Question

Connect with Certified Experts to gain insight and support on specific technology challenges including:

Troubleshooting
Research
Professional Opinions
Ask a Question
Did You Know?

We've partnered with two important charities to provide clean water and computer science education to those who need it most. READ MORE

troubleshooting Question

INNER JOIN triple help...

Avatar of engineroom
engineroom asked on
ASP
13 Comments1 Solution362 ViewsLast Modified:
hey all, i'm using an inner join query and it does what i want it to do, i need to add another join to get info from another table and i can't seem to get it right, i thought i had it at one point but it didn't work. here's the query that does what i want it to do....

SELECT loanType,creditHistory from (leads INNER JOIN leads_link ON leads_link.leadID=leads.leadID) INNER JOIN brokers on leads_link.brokerID=brokers.brokerID where leads.dateON between #1/16/2007# And #2/1/2007#

Now, i need to add to this a sales table which shares the salesID in the brokers table. So here's the structure for that...

Sales          brokers
--------     ---------------
salesID        salesID

So here's what i tried to do, but it didn't work...

SELECT  sales.salesID, sales.fname, loanType,creditHistory from ((leads INNER JOIN leads_link ON leads_link.leadID=leads.leadID) INNER JOIN brokers ON leads_link.brokerID=brokers.brokerID) INNER JOIN sales ON brokers.salesID=sales.salesID) where leads.dateON between #1/16/2007# And #2/1/2007#

Am i close? I'm using MS Access. Thanx all. Hope this makes sense.

ASKER CERTIFIED SOLUTION
Avatar of Badotz
Commented:
This problem has been solved!
Unlock 1 Answer and 13 Comments.
See Answers