[sqlalchemy] Re: multiple aggregates query

2009-09-17 Thread Michael Bayer
Andrey Semyonov wrote: Hi. Since docs for sqlalchemy isn't a clear doc for the beginners I can't find out the way I could implement such a query: SELECT extract(week from to_timestamp(min(datetimeinteger))) as min, extract(week from to_timestamp(max(datetimeinteger))) as max from logtable

[sqlalchemy] Re: multiple aggregates query

2009-09-17 Thread Andrey Semyonov
On 17 сен, 19:08, Michael Bayer mike...@zzzcomputing.com wrote: Andrey Semyonov wrote: Hi. Since docs for sqlalchemy isn't a clear doc for the beginners I can't find out the way I could implement such a query: SELECT extract(week from to_timestamp(min(datetimeinteger))) as min,

[sqlalchemy] Re: multiple aggregates query

2009-09-17 Thread Andrey Semyonov
On 17 сен, 19:44, Andrey Semyonov gatekeeper.m...@gmail.com wrote: On 17 сен, 19:08, Michael Bayer mike...@zzzcomputing.com wrote: Andrey Semyonov wrote: Hi. Since docs for sqlalchemy isn't a clear doc for the beginners I can't find out the way I could implement such a query: