By using db<>fiddle, you agree to license everything you submit by Creative Commons CC0.
5 rows affected
class | course | studentname | score |
---|---|---|---|
甲班 | 國文 | 學生A | 90 |
甲班 | 國文 | 學生B | 88 |
甲班 | 國文 | 學生C | 88 |
甲班 | 國文 | 學生D | 85 |
甲班 | 國文 | 學生E | 80 |
score | studentnameNew |
---|---|
90 | 學生A, |
88 | 學生B,學生C, |
85 | 學生D, |
80 | 學生E, |
Number | score | studentnameComb |
---|---|---|
1 | 90 | 學生A |
2 | 88 | 學生B,學生C |
3 | 85 | 學生D |