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

Home -> Community -> Usenet -> c.d.o.server -> Strange behaviour of SORT

Strange behaviour of SORT

From: Olivier TAUPIN <otaupin_at_odaxys.fr>
Date: Thu, 11 Mar 1999 14:58:59 +0100
Message-ID: <36E7CC23.FAAF5782@odaxys.fr>


Here are two queries and their results : I can't explain the differents sort orders.

1- Sorting with GROUP BY
select hierarchie from f
group by hierarchie

Result :

1
11
111
1111
1112
1113
1114
1115
1116
1117
1118
1119
111A
111B
111C
111D
111E

2- Sorting with ORDER BY
select hierarchie from f
order by hierarchie

Result :

1
11
111
111A
111B
111C
111D
111E
1111
1112
1113
1114
1115
1116
1117
1118
1119

Thanks for help

Olivier. Received on Thu Mar 11 1999 - 07:58:59 CST

Original text of this message

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