“join expression not supported” in Access

前端 未结 2 1792
一个人的身影
一个人的身影 2020-12-04 01:36

I am writing a SQL query with inner join as this

select * from (table1 inner join table2 on table1.city = table2.code)
   inner join table3 on table3.col1 =          


        
相关标签:
2条回答
  • 2020-12-04 02:12

    Why is Access giving me an error on the first query?

    Well, like the error message says, that form of a JOIN expression is not supported.

    You might want to try the following:

    SELECT * FROM table1, table2, table3 
    WHERE table1.city=table2.code AND table3.col1=5 AND table3.col2='Hello'
    
    0 讨论(0)
  • 2020-12-04 02:20

    Very late but I had a similar problem with JOIN expressions on MS Access, like described here Access sometimes needs everything inside the ON part of the query to be inside parenthesis, ie:

    SELECT ... JOIN <table> ON (everything here inside the parenthesis) WHERE ...

    0 讨论(0)
提交回复
热议问题