Difference between Inline view and Derived table

  • Hi All!!!!

    Can anyone of you please tell me the difference between Inline view and Derived table??

    Thanks in advance!!

  • 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.
  • 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?

  • 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


    RBAR is pronounced "ree-bar" and is a "Modenism" for Row-By-Agonizing-Row.
    First step towards the paradigm shift of writing Set Based code:
    ________Stop thinking about what you want to do to a ROW... think, instead, of what you want to do to a COLUMN.

    Change is inevitable... Change for the better is not.


    Helpful Links:
    How to post code problems
    How to Post Performance Problems
    Create a Tally Function (fnTally)

Viewing 4 posts - 1 through 3 (of 3 total)

You must be logged in to reply to this topic. Login to reply