Oracle Query无法正常工作

时间:2016-09-07 11:20:47

标签: sql oracle

oracle查询无效。请指明此查询中的错误?

(select hacker_id,challenge_id, max(score) as soc 
 from submissions 
 group by hacker_id,challenge_id 
 having max(score)>0) t2;

1 个答案:

答案 0 :(得分:1)

请阅读@OldProgrammer评论。无论如何,我认为这应该对你有用

select hacker_id,challenge_id, max(score) as soc 
   from submissions 
  group by hacker_id,challenge_id 
  having max(score)>0;