分组topN

数据库表结构:sc数据库 sid:学生idblog cid:课程idci socre:分数it 需求:查询每门课程分数最高的三个学生class   select a.* from sc a where 3 > (select count(*) from sc where a.cid=cid and a.socre>score)select order by a.cid,a.score desc数据
相关文章
相关标签/搜索