Skip to Main Content

SQL & PL/SQL

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

LEFT JOIN ... ON (...) - missing keyword?

user10936714May 13 2010 — edited May 14 2010
When I try to run this query:


select *
from affiliates a
join vendors v
left join affiliate_vendors av on (av.affiliateid = a.affiliateid and av.vendor = v.vendor)


I get a "missing keyword" error.

The table affiliate_vendors in an intersection table between affiliates (primary key affiliateid) and vendors (primary key vendor). The primary key of affilaite_vendors is the pair (affiliateid, vendor)

What is Oracle expecting?
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Jun 11 2010
Added on May 13 2010
4 comments
3,247 views