For the uninitiated, a derived table is where you create a query that contains another query but that second query is wrapped in parenthesis and you will normally join to it for further results or set operations.

The pseudo-code is like:

Select a.Blah, b.BlahBlah
From  FirstTable a
Join (select BlahBlah from SecondTable ) b On b.ID = a.ID

So the second query becomes the “derived table”, all in memory, and is joinable just like a regular table, and all of its indexes are play as well.

BUT - do derived tables have performance better or worse than temp tables and in memory temp table variables?

6 Comments to “DBTalk – Derived Tables”

  1. Hai Teagle says:

    I savor, lead to I discovered just what I was looking for. You have ended my 4 day long hunt! God Bless you man. Have a nice day. Bye

  2. I’m a writer and I would love to have people’s opinions on my work. Does anyone know any good blogging sites?. Twitter is not a blogging site and the only way people see your work on twitter is if they follow you. Twitter and Facebook are not answers that I am looking for. Thank you for your input..

  3. I’ve already been lacking with regard to some time, however right now Going the reason why We accustomed to adore this particular site. Thanks, I will try to examine back again much more frequently. Exactly how often a person revise your own website?

  4. I have fairly recently up and running an important site, that info one offer in this particular web site contains given a hand to all of us greatly. Thanks designed for your current precious time & get the job done.

  5. Nick Juio says:

    This is actually definitely an captivating matter to examine about more. I am actually not convinced however if all will prefer what you have actually placed here. It’s possible it would be actually entertaining to recognize exactly what the any other viewpoints refer

  6. Fernando Torres’ lack of form at Chelsea has finally cost him a place in the Spain squad, this despite his having scored 27 goals in 91 inte rnational appearances. The former Liverpool man makes way for Valencia’s Roberto Soldado, who has 20 goals to his name in all competitions this seas on .

Leave a Reply

You can wrap your code with [ruby][/ruby] or [python][/python] blocks for syntax highlighting and you can use these traditional tags: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>