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: advanced SQL

Re: advanced SQL

From: Alberto <iltrex_at_libero.it>
Date: 15 Jan 2003 02:04:47 -0800
Message-ID: <fe136e10.0301150204.112e5809@posting.google.com>


> SELECT MOD(ROWNUM+2,3) + 1, *
> FROM TEST;
? No.... this doesn't count the row in the correct way.

It only tells me

1,2,3,1,2,3,1,2,3,etc

that's not what I wanted.

row_number() over ... solver perfectly the problem. And it's faster than my trick. Received on Wed Jan 15 2003 - 04:04:47 CST

Original text of this message

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