我想从子查询中获取数据,其中返回多行并检查(> =)但我不知道该怎么做。
select id_user from s_report where id_user=96 >= having(SuM(score)> (SELECT medal.grade
FROM medal where state=1
ORDER BY grade DESC ) )
答案 0 :(得分:0)
excusme.how我得到SUM(得分)> =子查询返回多行
从s_report中选择id_user,其中id_user = 96(SUM(score)> =(SELECT medal.grade FROM medal where state = 1 按等级DESC订购))