【发布时间】:2012-11-06 19:04:31
【问题描述】:
我有一个如下所示的表格:
date code name score set
09/09/12 967873 Team A 24 1
09/09/12 967873 Team B 22 1
09/09/12 967873 Team A 21 2
09/09/12 967873 Team B 16 2
02/04/12 965454 Team X 21 1
02/04/12 965454 Team Y 19 1
02/04/12 965454 Team X 21 2
02/04/12 965454 Team Y 19 2
你猜对了!这是一场排球比赛!但是,我希望我的输出在一行中。例如:
date code Teams Set-1 Set-2 Set-3
09/09/12 967873 Team A VS.Team B 24-22 21-16 -
and so on....
**Notice that the game could have a third set as well
我需要某种自我加入来将上述格式改进为更便于用户查看的格式...如果您需要更多详细信息,请告诉我。
谢谢,
【问题讨论】:
-
你如何确定哪个团队首先被列出?
-
只要分数与每组的球队匹配,球队的顺序无所谓
标签: sql oracle plsql oracle11g