C1 내림차순 포인트 및 CompetitionName하여 각 섹션 - Competition1, C2 - 설정해 경쟁, C3 - Competition3. C1 점 - Compeletion1 점
이 표는 다양한 유형의 대회에 참가하는 학생들의 다양한 범주가있는 점수 표를 나타냅니다.
열 C1, C2, C3은 해당 경기에 참여한 값이 '1'이면 대회 이름입니다. '0'이면 참여하지 않습니다.
S1 to S15 : Student Names
C1 ,C2,C3 : Competition Names
Section : Indicates category of that particular student
C1points, C2points, C3points : Points received by the particular student in that particular competition
각 섹션을 점수 및 경쟁 이름 내림차순으로 그룹화하고 싶습니다.
참고 : Competition1, C2 변경해야 C1 - 설정해 경쟁, C3 - Competition3
를 참조하십시오 : http://www.sqlfiddle.com/#!2/20920/1
내 최종 출력 만
같은
참가하는 대회에서 0 점을 획득 할 수 있습니까? – Strawberry
예 ... 문제 없습니다 .. 도와주세요 – user2594154
ID가 13 인 경우 섹션 1의 – kevinm