Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
Home -> Community -> Usenet -> c.d.o.server -> Table/view to generate integers from 1 to 500
Is tehere a suitable table in Oracle catalog to select just integer
values etween 1 and N, where N is at least 500?
Need this as driving table for a report based on a view, where the view calls a stored procedure.
E.G function calc_fuel (in_ship, in_date) view daily_fuel_consumption (ship, day, fuel) select ship,
trunc (sysdate) - x.i day, calc_fuel (ship, trunc (sysdate) - x.i) fuelfrom ship, x
It is easy enough to create x as an auxilary table but this requires DML in the customer database.
Is there a solution with just views or stored procedure?
Edzard Pasma Received on Sun Jan 16 2005 - 06:27:38 CST