Disable parentheses in sql queries
is there a way to tell ms access (2003) not to enclose in parentheses. or at least understand them without (every other database)
I need something like:
SELECT *
FROM a
INNER JOIN b
ON a.a = b.a
INNER JOIN c
ON b.c = c.c
but access tells me the request is wrong. ITS NOT, and it drives me crazy ...
it also puts all connections on one line - impossible to read
early.
ps. I have already activated ANSI 92 compatibility / support in settings
source to share
See Access Help About ANSI SQL Query Mode (MDB) .
This mode closely matches the ANSI-92 Level 1 Specification, but is not compliant with ANSI-92 Level 1.
For "ANSI-92" read "ANSI / ISO SQL-92" (and for "closely matches" read "vaguely resembles").
Bottom line: you must include parentheses. Note that the Access Database Engine Optimizer can reorder the tables as it sees fit.
source to share
I just tried the SQL Server Compantible (ANSI 92) syntax and checked this database.
I try to tune all my tables and joins in the graphical query builder and then tweak in the SQL editor while working with all the parentheses. The use of square brackets also confuses me. I am fortunate that most of the applications in my firm are ported from Access to SQL Server.
source to share