MySQL Forums
Forum List  »  Newbie

Re: simple problem - error 1066 Not Unique table/alias and Conditional
Posted by: Phillip Ward
Date: July 31, 2014 06:04AM

So near ...

SELECT place.name AS place_name 
, p1.name AS name1 
, p2.name AS name2 
FROM place 
INNER JOIN person AS p1 
      ON   place.id_person1 = p1.id_person 
INNER JOIN person AS p2 
      ON   place.id_person2 = p2.id_person

Regards, Phill W.

Options: ReplyQuote




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.