9 lines
392 B
SQL
9 lines
392 B
SQL
-- write a SQL query to find the name of the player who’s been paid the highest salary, of all time, in Major League Baseball.
|
||
-- Your query should return a table with two columns, one for the player’s 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;
|