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: Table/view to generate integers from 1 to 500

Re: Table/view to generate integers from 1 to 500

From: <edzard_at_volcanomail.com>
Date: 20 Jan 2005 13:17:29 -0800
Message-ID: <1106255849.080579.185610@c13g2000cwb.googlegroups.com>


Thanks for the solution.
By te way, I found that higher numbers can be generated fast, if you join TWO cubes!

SQL> run
1 select count (*)
2 from (select null from dual group by cube(1,2,3,4,5,6,7,8,9,10)) 3* ,(select null from dual group by cube(1,2,3,4,5)) COUNT(*)


     32768

 real: 820 Received on Thu Jan 20 2005 - 15:17:29 CST

Original text of this message

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