I have one mysql table called 'games' with the fields: id, team1, team2, and date. I have a second mysql table called 'teams' with the fields: id, name, grade.
My goal is to select all 'games' with date = March 1st, but then ALSO where grade = 10th.
So I imagine I need some kind of subquery but I don't know sql well enough. Any help appreciated.
All I know to do so far is:
("SELECT * FROM games WHERE date = '2012-03-01'")
Thanks so much. Also I do want a single sql statement...
gamesrelated toteams?games.team1andgames.team2are related toteams.id? Is it possible for teams from different grades to be in the same game?graderefering toteam1orteam2or both?games.team1andgames.team2are related toteams.id... Each team has a single grade