Answer the question
In order to leave comments, you need to log in
Syntax error in FROM clause, what could be the reason?
When querying in Access 2016, I see a "Syntax error in FROM clause" message. Here is the query:
SELECT Table1.indexObject, Table1.ObjectNames, table2.measureCommFromTab, table3.izmerenije, max(table3.datetimeMess)
FROM Table1, table2, table3
ON (table2.keyID = table3.measureComm_id) and (Table1.keyID = table3 .indexObjectsTab_id)
WHERE table2.keyID>0 And indexObject In (55296, 55226)
GROUP BY table2.measureCommFromTab, Table1.indexObject
ORDER BY Table1.indexObject
What could be wrong? There are nuances when using Access? The matter is that the same request, in SQLite normally works...
Perhaps it is necessary to register Join?
Answer the question
In order to leave comments, you need to log in
conditions listed after ON move to the block after WHERE , you get
SELECT Table1.indexObject, Table1.ObjectNames, table2.measureCommFromTab, table3.izmerenije, max(table3.datetimeMess)
FROM Table1, table2, table3
WHERE (table2.keyID = table3.measureComm_id) and (Table1.keyID = table3.indexObjectsTab_id) and
table2.keyID>0 And indexObject In (55296, 55226)
GROUP BY table2.measureCommFromTab, Table1.indexObject
ORDER BY Table1.indexObject
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question