Oracle FAQ Your Portal to the Oracle Knowledge Grid
HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US
 

Home -> Community -> Mailing Lists -> Oracle-L -> Re: SQL TUNE

Re: SQL TUNE

From: Anu <anu_77_d_at_yahoo.com>
Date: Tue, 4 May 2004 11:58:31 -0700 (PDT)
Message-ID: <20040504185831.43433.qmail@web60809.mail.yahoo.com>


Both queries would be same if there are no indexes. If you have function based index then upper(sepr)='Y' would be fast. A simple index then sepr='Y' would be fast. Seema Singh <oracledbam_at_hotmail.com> wrote:Hi, I'm having one query which is more frequntly access by user.

select id, lname from godev.user where upper(sepr)='Y'

This tables have 711180 rows out of 27 rows are having sepr equal to 'Y'.

select id, lname from dev.user where sepr='Y' Which query would be fast if sepr didn't have any indexes?

thanks



FREE pop-up blocking with the new MSN Toolbar – get it now! http://toolbar.msn.com/go/onm00200415ave/direct/01/

Please see the official ORACLE-L FAQ: http://www.orafaq.com

To unsubscribe send email to: oracle-l-request_at_freelists.org put 'unsubscribe' in the subject line.
--

Archives are at http://www.freelists.org/archives/oracle-l/ FAQ is at http://www.freelists.org/help/fom-serve/cache/1.html
                

Do you Yahoo!?
Win a $20,000 Career Makeover at Yahoo! HotJobs

Please see the official ORACLE-L FAQ: http://www.orafaq.com

To unsubscribe send email to: oracle-l-request_at_freelists.org put 'unsubscribe' in the subject line.
--

Archives are at http://www.freelists.org/archives/oracle-l/ FAQ is at http://www.freelists.org/help/fom-serve/cache/1.html
Received on Tue May 04 2004 - 13:55:51 CDT

Original text of this message

HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US