Is it possible to do a 3 table join in MS-Access?

后端 未结 4 1542
别那么骄傲
别那么骄傲 2020-12-20 06:10

I try to do a 3-table join in Access and it will not work. Is it possible?

4条回答
  •  情歌与酒
    2020-12-20 06:41

    All the various types of multi-table joins that are available in other flavour of SQL are permitted in MS-Access/Jet. For example, here's a straight three-table hierarchical example (a bit more real-world than the other answers here):

    SELECT
        x.FirstName,
        x.Surname,
        r.RegionName,
        c.CountryName
    FROM
        (Customer x LEFT JOIN Region r
        ON r.ID=x.RegionID)
        LEFT JOIN Country c
        ON c.ID=r.CountryID
    

    Or did you want to know how to do it using the Visual Designer in MS-Access?

提交回复
热议问题