Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
![]() |
![]() |
Home -> Community -> Usenet -> c.d.o.misc -> For Those Who Know DB2 and Oracle, Can You Take A Look
Does Oracle have anything similar to the following DB2 V6 query:
With RangeTable(CRank, CLow, CHigh) as
(
values (00, 0, 999)
union all
select CRank+1, CLow+1000, CHigh+1000 from RangeTable where CRank < 50
)
Apparently, this creates a 50 row result set which can then be used to join to a real table. A guy in a DB2 newsgroup posted this in response to a question I had. I didn't know DB2 had something this powerful. Received on Thu Oct 17 2002 - 18:54:26 CDT
![]() |
![]() |