Oracle FAQ Your Portal to the Oracle Knowledge Grid
HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US
 

Home -> Community -> Mailing Lists -> Oracle-L -> RE: Re: SQL help needed

RE: Re: SQL help needed

From: Stephane Faroult <sfaroult_at_oriolecorp.com>
Date: Wed, 17 Sep 2003 00:39:45 -0800
Message-ID: <F001.005D0207.20030917003945@fatcity.com>

>----- ------- Original Message ------- -----
>From: "Mark Richard" <mrichard_at_transurban.com.au>
>To: Multiple recipients of list ORACLE-L
><ORACLE-L_at_fatcity.com>
>Sent: Tue, 16 Sep 2003 19:59:41
>
>
>I guess I should have added some criteria like:
>
>1) user_objects must have enough rows in it to
>cover the range (if not
>consider some other table)
>

This one is a very interesting consideration. The use of 'pivot' tables, as in this case, without being something you meet daily is fairly frequent (completing series like here is one usage, otherwise I commonly use them to generate test data). It should be some standard feature, a kind of 'extended dual' (XDUAL ?). Perhaps this (to be run as SYS) should be added as a standard part of the catalogue :

create view xdual
as select rownum from sys.col$;
grant select on xdual to public;
create public synonym xdual for xdual;

sys.col$ always contains a 'respectable' number of rows (10,000+, even without SAP :-)). Although indeed a standard sys.source$ is twice bigger just after install ..

Regards,

Stephane Faroult
Oriole

-- 
Please see the official ORACLE-L FAQ: http://www.orafaq.net
-- 
Author: Stephane Faroult
  INET: sfaroult_at_oriolecorp.com

Fat City Network Services    -- 858-538-5051 http://www.fatcity.com
San Diego, California        -- Mailing list and web hosting services
---------------------------------------------------------------------
To REMOVE yourself from this mailing list, send an E-Mail message
to: ListGuru_at_fatcity.com (note EXACT spelling of 'ListGuru') and in
the message BODY, include a line containing: UNSUB ORACLE-L
(or the name of mailing list you want to be removed from).  You may
also send the HELP command for other information (like subscribing).
Received on Wed Sep 17 2003 - 03:39:45 CDT

Original text of this message

HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US