Re: Bizarre subquery syntax problem
- From: colin_e <coline@xxxxxxxxxxxxxxxxxxxxxxxxx>
- Date: Sat, 17 May 2008 07:45:00 -0700
Well that's interesting. I am looking at a fairly large and expensive book on
Access 2003 that completely fails to mention it uses the unusual "[ ... ]."
notation for subqueries.
I have been forced into using subqueries a lot, because Access seems to have
trouble accessing aliases defined in the FROM clause in the WHERE or ORDER by
clauses. Hence I find myself collecting all the data into a virtual table in
the subquery, then sorting and filtering the whole thing.
I had come to the conclusion that Access' SQL parser was a bit flakey in
this area. Bizarrely I have found that if I-
* Replace the square brackets "[ ]." with braces "()" around the subquery,
save the query, THEN open it, it will run again. Pretty weird.
I had not realised subqueries always needed an alias, thanks for that.
--
Regards: Colin
.
- Follow-Ups:
- Re: Bizarre subquery syntax problem
- From: Sylvain Lafontaine
- Re: Bizarre subquery syntax problem
- References:
- Bizarre subquery syntax problem
- From: colin_e
- Re: Bizarre subquery syntax problem
- From: Sylvain Lafontaine
- Bizarre subquery syntax problem
- Prev by Date: Re: Bug in ODBC?
- Next by Date: Re: Bizarre subquery syntax problem
- Previous by thread: Re: Bizarre subquery syntax problem
- Next by thread: Re: Bizarre subquery syntax problem
- Index(es):
Relevant Pages
|