Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
![]() |
![]() |
Home -> Community -> Mailing Lists -> Oracle-L -> Re: sql question
Chris,
This may not be the most efficient method, but it should do what you want as long as user_objects contains at least (current year - 1994) rows.
SELECT 1994 + rn
FROM (SELECT row_number() over (order by object_name) rn
FROM user_objects WHERE rownum <= 30)
Michael T.
Chris Stephens wrote:
> Can anyone think of a way to generate a list of years from say 1995 to
> the current year in straight sql?
>
>
> chris
> --
> http://www.freelists.org/webpage/oracle-l
>
>
>
-- http://www.freelists.org/webpage/oracle-lReceived on Thu Apr 20 2006 - 16:02:23 CDT
![]() |
![]() |