dbTalk Databases Forums  

Sub select speed improvement

comp.databases.ms-access comp.databases.ms-access


Discuss Sub select speed improvement in the comp.databases.ms-access forum.



Reply
 
Thread Tools Display Modes
  #11  
Old   
ron paii
 
Posts: n/a

Default Re: Sub select speed improvement - 09-25-2011 , 05:37 PM






"David-W-Fenton" <NoEmail (AT) SeeSignature (DOT) invalid> wrote

Quote:
"ron paii" <none (AT) nospam (DOT) com> wrote in
news:j5g174$100$1 (AT) dont-email (DOT) me:

The DISTINCTROW is an artifact of the original query that returned
more then 1 row.

But you should never use DISTINCTROW except if you are trying to
make an otherwise non-updatable query updatable -- instead, you
should use DISTINCT. DISTINCTROW is a Jet/ACE-specific keyword and
not compatible. It occasionally can work some magic, making an
non-editable query with a join in the FROM clause editable, but a
query whose SELECT includes nothing but an aggregate function is not
going to be editable in the first place.

--
David W. Fenton http://www.dfenton.com/
contact via website only http://www.dfenton.com/DFA/
According to my documentation the original version of this query was created
in 1999, I don't remember why it has DISTICTROW other then not knowing what
I know now. Removing it improved performance and gave me the same result.
The program had it's start in Access 2, which I was reminded in a different
thread defaulted to DISTINCTROW.

Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.