+ 2

Subquery nesting

How many sub queries can be nested within one another?

24th Jan 2017, 5:31 AM
Anand
3 Respuestas
+ 4
Potentially, as many as you want. But it would probably get down the performance of your query.
24th Jan 2017, 5:45 AM
Álvaro
+ 4
Technically as many as you want but realistically after two or three it gets really confusing and can hinder performance of the machine you are running it on.
24th Jan 2017, 5:54 AM
Liam Tang
Liam Tang - avatar
+ 1
Agreed with other replies but Oracle Database imposes no limit on the number of subquery levels in the FROM clause of the top-level query. You can nest up to 255 levels of subqueries in the WHERE clause.
26th Feb 2017, 11:19 AM
Ashish Shakya