MySQL Forums
Forum List  »  General

Re: join 4 tables
Posted by: Peter Brawley
Date: May 19, 2020 12:43PM

Read about Join in SQL primers and in the MySQL manual.

To build a query like that ...

1 Build the From clause ...

from a
join b on a.poiref=b.pdref
join c on a.poictry=c.ctryid
join d on b.pdmp=d.mpid

2 Add Select expressions to the front ...

select a...., b...., c...., d....

3 Add where clause(s) if desired



Edited 1 time(s). Last edit at 05/19/2020 02:15PM by Peter Brawley.

Options: ReplyQuote


Subject
Written By
Posted
May 19, 2020 11:34AM
Re: join 4 tables
May 19, 2020 12:43PM


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.