[storm] Executing 'MAX' query

Gustavo Niemeyer gustavo at niemeyer.net
Wed Jan 16 19:26:22 GMT 2008


> Try this:
> s = store.execute(Select( Max(Account.id), Like(Account.id,'1%')) ).get_one()

Or perhaps this:

store.find(Operation, Operation.num.like(SQL("'8%'"))).max(Operation.num)

-- 
Gustavo Niemeyer
http://niemeyer.net



More information about the storm mailing list