Talk About Network

Google


Register and Login
Nick
Password
Register create new account Sign up is FREE and you can post replies, new topics, bookmark posts and more!
Recover lost password


Data Bases > Oracle Miscellaneous > Re: Filling up ...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 4 of 8 Topic 6833 of 7279
Post > Topic >>

Re: Filling up the results of a query

by Ed Prochak <edprochak@[EMAIL PROTECTED] > Apr 15, 2008 at 05:21 AM

On Apr 14, 8:04 pm, yf...@[EMAIL PROTECTED]
 (Malcolm Dew-Jones)
wrote:
> Ed Prochak (edproc...@[EMAIL PROTECTED]
) wrote:
>
> : On Apr 14, 12:41 pm, Hans Mayr <mayr1...@[EMAIL PROTECTED]
> wrote:
>
> : > I need to create a view that "fills up" the entries of a table.
>
> : > The problem is that I need a value for all durations, not only the
> : > ones I have. So I would like to create a view that calculates (e.g.
> : > interpolates, extrapolates) the rates. Result:
>
> : Use an inline view like this:
> : select A from (select  rownum A  from all_objects ) tblA
> : where  A <20 ;
>
> Why an inner query, why not use all_objects directly?
>
>         select my,calculations,including,rownum from all_objects ;
>
You're right. Obviously I don't use this technique often. I would not
limit myself with using just SQL, but instead opting for PL/SQL to
solve this kind of problem.

> ALSO, I don't know how many rows are needed, be sure to count
all_objects
> in the target database because there are not always as many as you need
> for long periods (yep, I have had that happen, though only on a
> development system).
>
> Another technique could be to use a pipelined function (never done that
> myself).

Ed
 




 8 Posts in Topic:
Filling up the results of a query
Hans Mayr <mayr1972@[E  2008-04-14 09:41:49 
Re: Filling up the results of a query
Ed Prochak <edprochak@  2008-04-14 11:29:02 
Re: Filling up the results of a query
yf110@[EMAIL PROTECTED]   2008-04-14 16:04:02 
Re: Filling up the results of a query
Ed Prochak <edprochak@  2008-04-15 05:21:46 
Re: Filling up the results of a query
Hans Mayr <mayr1972@[E  2008-04-16 07:26:50 
Re: Filling up the results of a query
Peter Nilsson <airia@[  2008-04-21 20:48:35 
Re: Filling up the results of a query
Hans Mayr <mayr1972@[E  2008-06-03 02:26:49 
Re: Filling up the results of a query
Ed Prochak <edprochak@  2008-06-03 07:25:29 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
tan12V112 Mon Dec 1 20:18:48 CST 2008.