LoginSignup
25

More than 5 years have passed since last update.

Access の SQL で 3つ以上の表を join する

Access で普通に join を使うと、2つまでしか結合できません。
が、下のように結合した表を括弧で囲んでやり、それを1つの表としてやると、
3つ以上の表を結合できます。

3つの表をJOIN
SELECT TA.*,TB.*,TC.* FROM ( TA 
LEFT JOIN TB ON ( TA.b = TB.id ) )
LEFT JOIN TC ON ( TA.c = TC.id ) ;

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
What you can do with signing up
25