标签: sql oracle
Oracle不允许使用TOP WITH TIES,所以我想知道如何使用TOP WITH TIES来符合Oracle DB标准?谢谢。
答案 0 :(得分:3)
Oracle v12.1 +有自己的行限制功能:
SELECT S.EmpID, S.Ename, ... FROM SalesPersons S LEFT JOIN ... GROUP BY ... ORDER BY ... FETCH FIRST 1 ROW WITH TIES