Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
![]() |
![]() |
Home -> Community -> Usenet -> c.d.o.server -> Re: index usage
"Niall Litchfield" <niall.litchfield_at_dial.pipex.com> wrote in message
news:41f01b1e$0$16583$cc9e4d1f_at_news-text.dial.pipex.com...
Hi Niall
Thank you
> 2. er, wouldnt not executing the query at all be more efficient in the 0%
> case?
>
Possibly but then how can you determine that there are no space seats left on flight Q123 from Canberra to Brisbane on Jan 26 2005 without first querying the database and selecting no rows ...
An index is the perfect way to select no rows (btw, Oracle uses them all the time to do the same thing when validating a value in a unique constraint).
Cheers ;)
Richard Received on Thu Jan 20 2005 - 15:18:51 CST
![]() |
![]() |