When we have a loop and a second loop inside it, how do you refer to the outer loop and the inner loop?
Which one would you call the "embedded" loop, and which one the "nested" loop?
Which one would you call the "embedding" loop, and which one the "nesting" loop?
Is it correct to say that the outer loop nests the inner loop, and the inner loop is embedded in the outer loop?
Another example from a book in database
A nested query is a query that has another query embedded within it.
The embedded query can be a nested query itself; thus queries that have very deeply nested structures are possible.
I guess the author means the outer query by the "nested" query, and the inner query the "embedded" query. However, I feel both the "nested" query and the "embedded" query should refer to the inner query wrt the outer query.
why not call the outer query the "nesting" query, and the inner query both the "nested" query and the "embedded" query?
Thanks.