在一个学生表中,筛选出相同分数是学生姓名和成绩;如下格式显示三列:
name1 name2 score
我用如下方法,但是不正确
select t1.stuName,t2.stuName,t1.score from table as t1 inner join table as t2 where t1.score=t2.score,
是不是需要个什么聚合啊?》》
在一个学生表中,筛选出相同分数是学生姓名和成绩;如下格式显示三列:
name1 name2 score
我用如下方法,但是不正确
select t1.stuName,t2.stuName,t1.score from table as t1 inner join table as t2 where t1.score=t2.score,
是不是需要个什么聚合啊?》》