Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
Home -> Community -> Mailing Lists -> Oracle-L -> RE: how to generate the output w/o using temp table
Hello,
>>will all users be able to access the all objects.
[CJ] I think so, although you can use any of your application
{CJ] tables with 100-500 rows instead of ALL_OBJECTS.
>>my user wants to query for certain range of month who are on-vacation?
>>example: user enter starting date 10/2004 ending date: 02/2005
[CJ] Add this date range condition as predicate to the original query.
SELECT id,
TO_CHAR(mnth, 'MM/YYYY')
FROM tmp a,
(select trunc(add_months(sysdate, - rownum + 1), 'MM') mnth from all_objects union all select trunc(add_months(sysdate, rownum), 'MM') mnth from all_objects) b
Regards,
Charu.
This message (including any attachments) contains confidential information intended for a specific individual and purpose, and is protected by law. If you are not the intended recipient, you should delete this message and are hereby notified that any disclosure, copying, or distribution of this message, or the taking of any action based on it, is strictly prohibited.
-- Archives are at http://www.freelists.org/archives/oracle-l/ FAQ is at http://www.freelists.org/help/fom-serve/cache/1.html -----------------------------------------------------------------Received on Mon Aug 02 2004 - 01:00:47 CDT