Hi all,
is it possible to do nested selects in sqlalchemy? For example,
something like:
select p.id
from mytable as p
where p.number = (select max(number) from mytable as p2 where
p2.attribute = p.attribute)
I'm using sqlalchemy 0.3.10
regards,
Bruno
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)