标签:desc sele har number code weight select over bsp
SELECT * FROM ( SELECT T.*, ROW_NUMBER() OVER (PARTITION BY T.SUBJECT, T.CHARCODE ORDER BY T.SCORE DESC) AS RN FROM T_SCORE T ) WHERE RN <= 3
标签:desc sele har number code weight select over bsp
原文地址:https://www.cnblogs.com/lovedaodao/p/9986929.html