Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations biv343 on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

inner joins via SQL

Status
Not open for further replies.

excession

Programmer
Sep 22, 2004
111
GB
Hi all,

I'm getting a wierd error when I try and run a query that uses a couple of inner joins, the SQL statement works fine when connected to a mySQL server, but throws a ' Reserved error (|); there is no message for this error.' with access.

The SQL query is:

select
l.job_parts_id,
l.part_id,
l.oil_id,
l.quantity,
l.purchase_price,
l.sale_price,

p.part_no,
p.description,
p.supplier_id,
o.part_no,
o.description,
o.supplier_id

from job_parts l

left outer join parts p
on l.part_id = p.part_id

left outer join oil o
on l.oil_id = o.oil_id

where l.task_id = 1
order by l.job_parts_id

Any ideas?

Thanks in advance.







Looking for a job as a programmer in Bristol UK.
 
from (job_parts l

left outer join parts p
on l.part_id = p.part_id )

left outer join oil o
on l.oil_id = o.oil_id

 
thanks.

the subject refers to inner joins cause i haven't had enough coffee yet ;)

Looking for a job as a programmer in Bristol UK.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top