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 -> Re: rownum & group by question

Re: rownum & group by question

From: Anurag Varma <avoracle_at_gmail.com>
Date: 21 Mar 2006 13:18:44 -0800
Message-ID: <1142975924.700408.82620@g10g2000cwb.googlegroups.com>

Your query neither returns 3 rows .. nor does it return the rows in the order
you are thinking it returns:

  1. rownum < 3 .. will return 2 rows. Not 3.
  2. order by clause is executed after rownum. So your query is returning any 2 rows and then doing the order by.

Goto asktom.oracle.com and search for "rownum" and then for "pivot table"

Anurag Received on Tue Mar 21 2006 - 15:18:44 CST

Original text of this message

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