> 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