From b84eb298cf97177a3cf03ff4da667af627b86216 Mon Sep 17 00:00:00 2001 From: daviddoji Date: Tue, 28 Apr 2026 15:56:41 +0200 Subject: [PATCH] automated commit by check50 [check50=True] --- 7.sql | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/7.sql b/7.sql index e69de29..ab1b9e7 100644 --- a/7.sql +++ b/7.sql @@ -0,0 +1,8 @@ +-- 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;