I have 3 tables
1. player_list
2. tournaments
3. rank_list
with the following fields
player_list
- id, player_id, tournament
tournaments
- id, tournament, rl_month
rank_list
- id, player_id, rl_month, rl_position
I want to build a query to find the rl_position
for a specific rl_month
of each player_id
from rank_list
table on player_list
table for a specific tournament (player_list.tournament = tournaments.id)
.
There is also a FK (rl_month)
between tournaments
and rank_list
.
Any ideas?
Thanks.