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 -> Re: Using Generic Comparator in Oracle ORDER BY

Re: Using Generic Comparator in Oracle ORDER BY

From: HansF <News.Hans_at_telus.net>
Date: Wed, 26 Oct 2005 20:10:46 GMT
Message-Id: <pan.2005.10.26.20.09.24.102318@telus.net>

Yes, I understand what you are saying. Basically you want to duplicate the Java compare capability on arbitrary object. Which, since Java is available in the database, should be possible IF you can actually define comparison. (Seems like overkill to me, though, as a compensation for a popular, albeit IMO generally stupid, AIN scheme.)

However, you STILL miss my point. I suggest creating a function that returns some hash value which implies a numeric ordering. I don't depend on simple lexical ordering or stored value, but rather a derived lexical ordering.

-- 
Hans Forbrich                           
Canada-wide Oracle training and consulting
mailto: Fuzzy.GreyBeard_at_gmail.com   
*** I no longer assist with top-posted newsgroup queries ***
Received on Wed Oct 26 2005 - 15:10:46 CDT

Original text of this message

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