i am facing a problem in mysql query plesae solve it.
I have a table Team_master with two field
Expand|Select|Wrap|Line Numbers
- 1. team_id
- 2. team_name
Expand|Select|Wrap|Line Numbers
- 1.id
- 2.team_id
- 3.league_id
Expand|Select|Wrap|Line Numbers
- 1 Boston
- 2 Monaco
- 3 manchaster
- 4 Others
Expand|Select|Wrap|Line Numbers
- id team_id leage_id
- 1 2 1
- 2 3 1
- 3 1 2
- 4 2 2
My problem is when i am select league id =3 or 2 the found the team name correspondence of league.So any one can tell me how found the team_name if i am select any league ina single query.
when i am select the league id =2 them found the team_id so how will i found the name of team in a single row
Thanks,
Sandeep