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 SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Outer Joins

Status
Not open for further replies.

ciarra41

Technical User
Sep 11, 2006
116
0
0
US
I’m trying to convert an Oracle outer join query into Access. But I’m getting fewer records with Access than Oracle. Any advice or examples would help.


Oracle
WHERE
( product.SERVICEid=SERVICE.SERVICEid(+) )
AND ( SERVICE.repid=employee.employeeid(+) )

Access
SELECT DISTINCT PRODUCT.SERVICEID, EMPLOYEE.EMPLOYEEID, SERVICE.REPID
FROM PRODUCT LEFT JOIN (SERVICE LEFT JOIN EMPLOYEE ON SERVICE.REPID = EMPLOYEE.EMPLOYEEID) ON PRODUCT.SERVICEID = SERVICE.SERVICEID;
 
Do you have more criteria in the where clause other than just the join?
 
Yes I do, about 5 other tables. I'm sure the problem lies in the product table because there's multiple serviceid in that table. I just need them to show even when their not in the service table.
 
Please show all your criteria for the Where Clauses in both queries.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top