我有三張表,我已經加入..但我必須展示他們的方式有點難以理解。我試圖將它們分組,並沒有得到想要的結果。分組SQL表
Sports_Name
Id | Name
---------
1 Football
2 Cricket
3 Hockey
4 Tenis
Teams
Id | Sport_Id | Team_Name
----------------------------
101 1 Manchester United
103 2 Australia
104 2 India
109 1 Real Madrid
110 3 New Zeland
Player_Name
Id | Team_Id | Player_Name
------------------------------
1 101 Rooney
2 104 Tendulkar
3 103 Ponting
4 109 Ronaldo
5 101 Van Persie
6 110 Simond
我需要顯示以下方式這一信息..
**Football**
Manchester United -Rooney
Manchester United -Van Persie
Real Madrid -Ronaldo
**Cricket**
India-Tendulkar
Australia-Ponting
**Hockey**
New Zeland -Simond
and something similar for tenis
看到這張照片的細節
我需要把它放在一個網格上..像棒球和球隊和球員在..wish我可以張貼圖像,但我需要賺取10點..有點廢話! –
你可以發佈一個鏈接到圖像分享網站 - 在評論中。 –
http://www.flickr.com/photos/[email protected]/7929508974/in/photostream –