May 14, 2010 at 3:59 am
Hi All!!!!
Can anyone of you please tell me the difference between Inline view and Derived table??
Thanks in advance!!
May 14, 2010 at 5:53 am
An inline view is nothing but a subquery in the WHERE clause.
A derived table is nothing but a subquery in the FROM clause.
_____________________________________
Pablo (Paul) Berzukov
Author of Understanding Database Administration available at Amazon and other bookstores.
Disclaimer: Advice is provided to the best of my knowledge but no implicit or explicit warranties are provided. Since the advisor explicitly encourages testing any and all suggestions on a test non-production environment advisor should not held liable or responsible for any actions taken based on the given advice.May 15, 2010 at 8:13 am
tarun.jaggi (5/14/2010)
Can anyone of you please tell me the difference between Inline view and Derived table?
In general, the way the terminology is commonly used, I would say there is no practical difference.
Can you give an example of what you would describe as an in-line view and a derived table?
And...what is the reason for the question?
May 15, 2010 at 10:54 am
Paul White NZ (5/15/2010)
tarun.jaggi (5/14/2010)
Can anyone of you please tell me the difference between Inline view and Derived table?In general, the way the terminology is commonly used, I would say there is no practical difference.
Can you give an example of what you would describe as an in-line view and a derived table?
And...what is the reason for the question?
I agree... "Inline View" is a synonym for "Derived Table". Neither should be confused with "Correlated Subqueries" which are a form of sometimes useful RBAR which, internally, may be converted to execute as if they were "Derived Tables". "Derived Tables" and "Inline Views" have an alias associated with them much as a table can have, they normally return result sets, and they make no reference outside of themselves. "Correlated SubQueries" make reference outside themselves usually in the form of a join in a WHERE clause.
--Jeff Moden
Change is inevitable... Change for the better is not.
Viewing 4 posts - 1 through 3 (of 3 total)
You must be logged in to reply to this topic. Login to reply
This website stores cookies on your computer.
These cookies are used to improve your website experience and provide more personalized services to you, both on this website and through other media.
To find out more about the cookies we use, see our Privacy Policy