Files
me50/7.sql
2026-04-28 15:56:41 +02:00

9 lines
392 B
SQL
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
-- write a SQL query to find the name of the player whos been paid the highest salary, of all time, in Major League Baseball.
-- Your query should return a table with two columns, one for the players first name and one for their last name.
SELECT p."first_name", p."last_name"
FROM "players" AS p
JOIN "salaries" AS s
ON s."player_id" = p."id"
ORDER BY s."salary" DESC
LIMIT 1;