I am creating a web2py controller in which I need to query a table for a combination of the value of x in one field AND the value of y in the second field (on the same line). To request in one field I will simply write
db.table.field == x
But I don't know how to write a query that looks for field==x AND field2==y
source share