36
28

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

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

Posted at

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 ) ;
36
28
0

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
  3. You can use dark theme
What you can do with signing up
36
28

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?