M
Mark Burns
Is there some documentation somewhere I can reference for more information on
2 things:
1) The Jet Expression Evaluator (what functions & stuff are actually
available within Jet Expressions?)
2) The proper use of sub-queries / virtual tables within JET SQL?
Regarding #2, I tried to build a somewhat complex query, only to be turned
back by the Jet evaluator.
I could easily do something like this:
SELECT blah... FROM (SELECT Yadda...from yadda yadda WHERE yadda...) WHERE
.... ORDER BY ...;
which worked great.
However, whan I tried this:
SELECT Blah... FROM BlahBlah INNER JOIN (SELECT Yadda... from YaddaYadda
WHERE ...) As MyYadda ON BlahBlah.whatever = myYadda.whatever WHERE...;
The JET 4.x Evaluator failed to recognize the table name YaddaYadda (using
[]s didn't help or hurt)
However breaking the (SELECT Yadda... FROM YaddaYadda WHERE...) part out to
a separate query worked fine. Also, if I just replace the entire (Select
Yadda... FROM YaddaYadda...) with the same Tablename YaddaYadda in the
"outer" query, it would again evaluate and run.
So, what are the rules for what JET SQL subquery syntaxes will work and what
won't here?
2 things:
1) The Jet Expression Evaluator (what functions & stuff are actually
available within Jet Expressions?)
2) The proper use of sub-queries / virtual tables within JET SQL?
Regarding #2, I tried to build a somewhat complex query, only to be turned
back by the Jet evaluator.
I could easily do something like this:
SELECT blah... FROM (SELECT Yadda...from yadda yadda WHERE yadda...) WHERE
.... ORDER BY ...;
which worked great.
However, whan I tried this:
SELECT Blah... FROM BlahBlah INNER JOIN (SELECT Yadda... from YaddaYadda
WHERE ...) As MyYadda ON BlahBlah.whatever = myYadda.whatever WHERE...;
The JET 4.x Evaluator failed to recognize the table name YaddaYadda (using
[]s didn't help or hurt)
However breaking the (SELECT Yadda... FROM YaddaYadda WHERE...) part out to
a separate query worked fine. Also, if I just replace the entire (Select
Yadda... FROM YaddaYadda...) with the same Tablename YaddaYadda in the
"outer" query, it would again evaluate and run.
So, what are the rules for what JET SQL subquery syntaxes will work and what
won't here?