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: [Help] How to sort like this with SQL?

Re: [Help] How to sort like this with SQL?

From: Dong, Paul <DONGP_at_USSURG.COM>
Date: Mon, 22 Jan 1996 10:57:34 -0500
Message-Id: <9601221613.AA29397@alice.jcc.com>


Re: [Help] How to sort like this with SQL?  Mark,

 The ordering requirement in this problem seems to imply that the column in  question is a compound key in a single column, i.e., it is not in first  normal form. If so, issues like this would clearly be simplified if two  numeric columns were used (or, if a true n-level hierarchy, use  "traditional" relational representation for that).

 Cho, if that's not an option, what is the domain for the part to the left  of the decimal point? If it can be more than one positions, e.g., "11.1",  this could create problems for the solution which orders by length, then  value.

 Regards,

 You are interperting these as points on the number line, but  sometimes people use this notation to reflect sequences. So 1.11  is the 11th item rather than a number between 1.1 and 1.2.

 HTH  Mark Saltzman, Assistant Director
 Information Systems, University of Wisconsin-Extension  432 North Lake Street, Madison, Wisconsin 53706-1498  TEL: 608.263.3084 / FAX: 608.262.2343 Received on Mon Jan 22 1996 - 11:13:21 CST

Original text of this message

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