> If you are using a subquery for additional processing or joins,
> you can use `label()` to specify the name for the computed column,
> then access that column as an attribute on the `.c` columns attribute of the 
> subquery object.

Thanks for your information.


>     inner_query = dbSession.query(
>            model.Foo.a,
>            sqlalchemy.func.count(Model.Foo.b).label('count_b')
>      )
>      inner_query = inner_query.subquery('query_foo')
>      results = 
> dbSession.query(inner_query.c.count_b.label('count_results')).all()

Another part of the desired data analysis is working here now.

Will it become easier to recognise the relevant relationships
from the corresponding programming interface documentation?

Regards,
Markus

-- 
You received this message because you are subscribed to the Google Groups 
"sqlalchemy" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/sqlalchemy.
For more options, visit https://groups.google.com/d/optout.

Reply via email to