|
How many sub queries can be nested in a query?
(comments are locked)
|
|
(comments are locked)
|
|
I would propose the same answer as Matt for completeness but would also quote this section fron the link:
That way individuals get their answer here, in one click, and have the option of researching further if desired. You're more generous than I am. I figured that the homework question probably deserved at least reading the page! :)
Oct 26 '09 at 10:41 AM
Matt Whitfield ♦♦
(comments are locked)
|
|
Even if you can have up to 32 levels of nested subqueries, I would advice you to not use 32 levels of subqueries.
As a rule, I use temporary tables rather than using more than 3 levels of subqueries. Ofcourse there are no rules without exceptions, I always test my solutions to find the most optimized query.
(comments are locked)
|
|
Interesting coincidence - 32 is also the max limit on nested stored procedure calls. I discovered that when I wrote some code to determine the natural unique key in a raw set of data (http://jessesql.blogspot.com/2009/02/combination-of-columns-with-unique.html)
(comments are locked)
|

