X
xcube
Hello,
These are my tables ( very stripped down )
TABLE persons (personID , persons_name);
TABLE persons_car (persons_carID
, personID integer
, make_of_car
, year_of_car, manuID);
TABLE manufacturer (manuID
, manufacturer);
A person can have car(s) or none so I need to return the following data
persons_name, make_of_car, manufacturer
Example of results I need returned:
Joe Blow, Civic, Honda
Paul Smith,,, ( does not have any cars )
Frank Grimes,Escort,Ford
Waylon Smithers,, ( does not have any cars )
I'm doing the following but obviously it's wrong:
SELECT persons.persons_name, persons_car.make_of_car,
manufacturer.manufacturer,persons_car
FROM persons
LEFT JOIN persons_car
ON persons.personID = persons_car.personID
LEFT JOIN manufacturer
ON persons_car.manuID = manufacturer.manuID
I tried using the Desing wizard but it gives me this error:
The SQL statement could not be executed because it contains ambiguous outer
joins. To force one of the joins to be performed first, create a seperate
query that performs the first join
and then include that in your SQL statment.
Can someone please help me out?
Thanks a bunch.
These are my tables ( very stripped down )
TABLE persons (personID , persons_name);
TABLE persons_car (persons_carID
, personID integer
, make_of_car
, year_of_car, manuID);
TABLE manufacturer (manuID
, manufacturer);
A person can have car(s) or none so I need to return the following data
persons_name, make_of_car, manufacturer
Example of results I need returned:
Joe Blow, Civic, Honda
Paul Smith,,, ( does not have any cars )
Frank Grimes,Escort,Ford
Waylon Smithers,, ( does not have any cars )
I'm doing the following but obviously it's wrong:
SELECT persons.persons_name, persons_car.make_of_car,
manufacturer.manufacturer,persons_car
FROM persons
LEFT JOIN persons_car
ON persons.personID = persons_car.personID
LEFT JOIN manufacturer
ON persons_car.manuID = manufacturer.manuID
I tried using the Desing wizard but it gives me this error:
The SQL statement could not be executed because it contains ambiguous outer
joins. To force one of the joins to be performed first, create a seperate
query that performs the first join
and then include that in your SQL statment.
Can someone please help me out?
Thanks a bunch.