1. 程式人生 > >數據庫小面試題

數據庫小面試題

spa sum ace app group by sel font 3.0 score

查詢學生總分排名前三的學生姓名:

SELECT score.`name` from score GROUP BY score.`name` HAVING SUM(score.score) in

(SELECT * from (SELECT DISTINCT (SUM(score.score)) from score GROUP BY score.`name` order by SUM(score.score) desc LIMIT 3) as t );

數據庫小面試題