GeekInterview.com
  I am new, Sign me up!
 
GeekInterview.com  >  Interview Questions  >  Oracle  >  SQL
Go To First  |  Previous Question  |  Next Question 
 SQL  |  Question 80 of 171    Print  
what is an inline view?

  
Total Answers and Comments: 6 Last Update: February 06, 2008     Asked by: Rana 
  
 Sponsored Links

 
 Best Rated Answer

No best answer available. Please pick the good answer available or submit your answer.
April 16, 2006 00:41:02   #1  
Santosh        

RE: what is an inline view?

If we write a query in the from clause then this is called inline view or online query.


 
Is this answer useful? Yes | No
June 28, 2006 06:10:10   #2  
       

RE: what is an inline view?

The inline view is a construct in Oracle SQL where you can place a query in the SQL FROM clause just as if the query was a table name.

select
fs.tablespace_name Tablespace
(df.totalspace - fs.freespace) Used MB
fs.freespace Free MB
df.totalspace Total MB
round(100 * (fs.freespace / df.totalspace)) Pct. Free
from
(select
tablespace_name
round(sum(bytes) / 1048576) TotalSpace
from
dba_data_files
group by
tablespace_name
) df
(select
tablespace_name
round(sum(bytes) / 1048576) FreeSpace
from
dba_free_space
group by
tablespace_name
) fs
where
df.tablespace_name fs.tablespace_name;


 
Is this answer useful? Yes | No
November 05, 2006 11:26:38   #3  
Anonymous        

RE: what is an inline view?
You can find a related discussion at http://forums.oracle.com/forums/thread.jspa?messageID 1473644
 
Is this answer useful? Yes | No
November 05, 2006 11:38:58   #4  
Anonymous        

RE: what is an inline view?
Actually the optimizer will execute an inline view exactly the same way it would execute an ordinary view. There is a related thread at Oracle Forums.
 
Is this answer useful? Yes | No
December 12, 2006 08:08:54   #5  
rampratap409 Member Since: September 2006   Contribution: 111    

RE: what is an inline view?
when a query is given inplace of tablename in from cluse . The query becomes a inline view.
 
Is this answer useful? Yes | No
February 06, 2008 23:34:31   #6  
g_sidhu Member Since: August 2007   Contribution: 122    

RE: what is an inline view?
An inline view is created by placing a subquery in the FROM clause and giving that subquery an alias. The subquery defines a data source that can be referenced in the main query.

 
Is this answer useful? Yes | No


 
Go To Top


 Sponsored Links

 
About Us -  Privacy Policy -  Terms and Conditions -  Contact -  Ask Question -  Propose Category -  Site Updates 

Copyright © 2005 - 2009 GeekInterview.com. All Rights Reserved

Page copy protected against web site content infringement by Copyscape