How to build a query that returns exactly n number of rows?
A single row could be retrieved by select x from dual. What about n rows?
How to build a query that returns exactly n number of rows?
A single row could be retrieved by select x from dual. What about n rows?
Please try below query to generate 100 numbers ranging from 1 to 100:
select level 
from dual 
connect by level <= 100