Re: SQL TUNE

  • From: Anu <anu_77_d@xxxxxxxxx>
  • To: oracle-l@xxxxxxxxxxxxx
  • Date: Tue, 4 May 2004 11:58:31 -0700 (PDT)

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@xxxxxxxxxxx> 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@xxxxxxxxxxxxx
put 'unsubscribe' in the subject line.
--
Archives are at //www.freelists.org/archives/oracle-l/
FAQ is at //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@xxxxxxxxxxxxx
put 'unsubscribe' in the subject line.
--
Archives are at //www.freelists.org/archives/oracle-l/
FAQ is at //www.freelists.org/help/fom-serve/cache/1.html
-----------------------------------------------------------------

Other related posts: