Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
![]() |
![]() |
Home -> Community -> Usenet -> c.d.o.server -> Why are "order by ...desc" results different from "order by ... asc"?
When selecting from a table with no "order by" clause, there are 2 rows
returned.
Same select with an "order by ... ASC" returns same two rows.
Same select with an "order by ... DESC" returns 20 rows.
If the index is dropped, 2 rows are returned in all cases.
There is only one index on the table.
Is something is wrong with index, or what am I missing?!!
Thanks in advance for any help,
-Glenn
RENTAL_ID AMENDMENT_COUNTER
---------- ----------------- 6200 1 6200 2
==================================
RENTAL_ID AMENDMENT_COUNTER
---------- ----------------- 6200 1 6200 2
==================================
RENTAL_ID AMENDMENT_COUNTER
---------- ----------------- 6294 1 6292 1 6287 1 6279 1 6273 8 6273 7 6273 6 6273 5 6273 4 6273 3 6273 2
RENTAL_ID AMENDMENT_COUNTER
---------- ----------------- 6273 1 6272 1 6266 1 6265 1 6261 1 6224 1 6210 1 6200 2 6200 1
20 rows selected.
COUNT(*)
2
INITIAL 40960 NEXT 90112
![]() |
![]() |