[sqlalchemy] Re: Nested selects

2007-09-20 Thread Rick Morrison
Yes, those are called subqueries; they're fully supported by SA. Your query above has a couple of items of note: a) it's a correlated subquery: the inner query references items in the outer query. (supported by SA) b) it's a self-join: the inner query and outer query reference the same table.

[sqlalchemy] Re: Nested selects

2007-09-20 Thread Bruno Rezende
Thanks! I'll try it! On 9/20/07, Rick Morrison [EMAIL PROTECTED] wrote: Yes, those are called subqueries; they're fully supported by SA. Your query above has a couple of items of note: a) it's a correlated subquery: the inner query references items in the outer query. (supported by SA)