Re: Difficulty framing a JOIN statement
Shows (showId, showName....)
People (personId, personName...)
Roles(roleNo,role)
PeopleInShows (showId,personId,roleNo)
SELECT p.personName
, r.role
FROM peopleinshows ps
JOIN people p
ON p.personid = ps.personid
LEFT
JOIN roles r
ON r.roleno = ps.roleno
WHERE ps.showid = $idno;
Subject
Written By
Posted
Re: Difficulty framing a JOIN statement
April 15, 2012 07:42AM
Sorry, you can't reply to this topic. It has been closed.
Content reproduced on this site is the property of the respective copyright holders.
It is not reviewed in advance by Oracle and does not necessarily represent the opinion
of Oracle or any other party.