Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
最も多くのゴールを決めた選手を見てみましょう。
Player_id Goals.
次のステートメントを試しました。
select player_id, sum(goals) as total from matchstat group by player_id order by total desc limit 1;
しかし、私はエラーが発生します:
SQL コマンドが正しく終了していません。
クエリに問題がある人はいますか?
Oracle は limit 句をサポートしていません。試す
SELECT * FROM (SELECT "player_id", SUM("goals") AS total FROM matchstat GROUP BY "player_id" ORDER BY total DESC) a WHERE ROWNUM <= 1
デモを見る