-2

I have 5 relational tables, let's say a,b,c,d,e.

How can I left join 4 of the tables "b,c,d,e" onto table "a" using a unique column "ID" which is present in all the tables?

I want to do this in MS Access using sql query.

Gordon Linoff
  • 1,242,037
  • 58
  • 646
  • 786
Prince
  • 69
  • 5
  • Possible duplicate of [MS Access Left Join not working correctly](https://stackoverflow.com/questions/46185315/ms-access-left-join-not-working-correctly) – Madhur Bhaiya Sep 11 '18 at 11:11

1 Answers1

0

In MS Access, you need a bunch of parentheses:

select . . .
from (((a left join
        b
        on a.id = b.id
       ) left join
       c
       on a.id = c.id
      ) left join
      d
      on a.id = d.id
     )
     on a.id = e.id;
Gordon Linoff
  • 1,242,037
  • 58
  • 646
  • 786