Ok, this is what i am trying to replicate using web2py data object
model:

SELECT * FROM teams, matches WHERE matches.team1_id=teams.id AND
matches.team2_id=teams.id


This is what I've used, but it returns an empty record.

partidas = db( db.matches.team1_id==db.teams.id) &
(db.matches.team2_id==db.teams.id)).select()

What am I doing wrong?
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"web2py Web Framework" group.
To post to this group, send email to web2py@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/web2py?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to