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

Home -> Community -> Usenet -> c.d.o.misc -> NULL VALUES & Sort Order

NULL VALUES & Sort Order

From: beutler <webmaster_at_beutler-muenzen.de>
Date: 27 Jan 2003 23:24:59 -0800
Message-ID: <c299fdd.0301272324.48925a00@posting.google.com>


I've problems retrieving a table where the key fields may contain NULL VALUES. The first problem is, that Oracle does not seem to distinguish between NULL VALUES, Empty Strings or even blank strings (which are trimmed to NULL). Isn't there any way to change this behaviour ? I want to retrieve the data in logical order, that means for me empty fields first. Because Oracle trims empty strings or strings of blanks to NULL and by default, returns NULLs last, I tried to use the NULLS FIRST clause in my query. But this is very slow, it seams Oracle will then no longer use the index if the query constraints via the index fields...
Isn't there any way to retrieve data with empty values first while reading using an index ? Received on Tue Jan 28 2003 - 01:24:59 CST

Original text of this message

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