ARUNCHENNAI
Board Regular
- Joined
- Apr 24, 2017
- Messages
- 66
Hi,
I have a table [T_Run] with fields [TeamName],[ID],[RunnerCategory]
Table is created with every runner's ID, teamname & runnercategory(ie, captain, runner2,runner3...)
<tbody>
[TH="bgcolor: #c0c0c0"] Id [/TH]
[TH="bgcolor: #c0c0c0"] TeamName [/TH]
[TH="bgcolor: #c0c0c0"] RunnerCategory [/TH]
</tbody>
Now I want to create a table based on Team name with fields
[TeamName],[Captain],[Runner2],[Runner3],[Runner4].
I want corresponding runners ID under their respective field(ie, captain, runner2,runner3...)
Like below.
<tbody>
[TH="bgcolor: #c0c0c0"] TeamName [/TH]
[TH="bgcolor: #c0c0c0"] Captain [/TH]
[TH="bgcolor: #c0c0c0"] Runner2 [/TH]
[TH="bgcolor: #c0c0c0"] Runner3 [/TH]
[TH="bgcolor: #c0c0c0"] Runner4 [/TH]
</tbody>
Note: I'm working on excel with sql query
Thank you.
I have a table [T_Run] with fields [TeamName],[ID],[RunnerCategory]
Table is created with every runner's ID, teamname & runnercategory(ie, captain, runner2,runner3...)
255 | abc | RUNNER4 | |
260 | abc | RUNNER3 | |
354 | abc | CAPTAIN | |
52 | abc | RUNNER2 |
<tbody>
[TH="bgcolor: #c0c0c0"] Id [/TH]
[TH="bgcolor: #c0c0c0"] TeamName [/TH]
[TH="bgcolor: #c0c0c0"] RunnerCategory [/TH]
</tbody>
Now I want to create a table based on Team name with fields
[TeamName],[Captain],[Runner2],[Runner3],[Runner4].
I want corresponding runners ID under their respective field(ie, captain, runner2,runner3...)
Like below.
abc | 354 | 52 | 260 | 255 |
<tbody>
[TH="bgcolor: #c0c0c0"] TeamName [/TH]
[TH="bgcolor: #c0c0c0"] Captain [/TH]
[TH="bgcolor: #c0c0c0"] Runner2 [/TH]
[TH="bgcolor: #c0c0c0"] Runner3 [/TH]
[TH="bgcolor: #c0c0c0"] Runner4 [/TH]
</tbody>
Note: I'm working on excel with sql query
Thank you.