When running queries that do joins, I often find the format of the result somewhat cumbersome, with its nested structures representing the different tables in the join. If I were writing the query in raw SQL, I would probably use "AS" clauses to select just the columns that I want, with simple "top-level" names. Something like
Select Table1.foo as stuff, Table2.bar as blah from Table1, Table2 ...
Is there a way to do this with Web2py? It would seem natural to specify this inside the select call, something like
db(db.Table1.foo=db.Table2.foo).select(db.Table1.foo.alias('foo'), db.Table2.bar.alias('blah'))