bot50
2026-04-28 14:42:24 +00:00
commit 144001e997
12 changed files with 153 additions and 0 deletions

9
8.sql Normal file
View File

@@ -0,0 +1,9 @@
-- write a SQL query to find the 2001 salary of the player who hit the most home runs in 2001.
-- Your query should return a table with one column, the salary of the player.
SELECT s."salary"
FROM "salaries" AS s
JOIN "performances" AS perf
ON perf."player_id" = s."player_id"
WHERE s."year" = '2001' AND perf."year" = '2001'
ORDER BY perf."HR" DESC
LIMIT 1;