| Index
» Projekty
» phpMyEdit
» Fórum
» initial query question / join |
 |
mrscripto
Založený: 03.04.2004
Príspevky: 10
Zaslal: 2004-04-23 22:20
Návrat hore
Odpovedať s citátom
|
After reading the manual on table joining I'm still a little confused...
My initial view is of my "teams" table, but I want to only show teams that are in the current season. So to do that I need to match the divid (Division ID) column in my "teams" table to the id column in the "divisions" table, where the seasonsid column from the "divisions" table matches the open season id in the "seasons" table.
My query would look like this, but I don't know how to set it up for PHPMyEdit.
"SELECT * FROM teams,divisions,seasons WHERE teams.division = divisions.id AND divisions.seasonid = seasons.id WHERE season.status == '1'"
Please help if you can.
I'm sure once I get one of these done I will understand how to do it properly.
Thanks!
MrScripto
|
mrscripto
Založený: 03.04.2004
Príspevky: 10
Zaslal: 2004-04-24 19:21
Návrat hore
Odpovedať s citátom
|
Doug
I tried it but it did not work. Thanks for the response. Anyone else??
MrScripto
|
|
Odoslať novú tému
Odpovedať na tému
|
|
|
|