From 3ee6ac7d46546f9e468965844f81421bbfd83d09 Mon Sep 17 00:00:00 2001 From: daviddoji Date: Tue, 28 Apr 2026 15:28:40 +0200 Subject: [PATCH] automated commit by check50 [check50=True] --- 5.sql | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/5.sql b/5.sql index e69de29..3cfb73d 100644 --- a/5.sql +++ b/5.sql @@ -0,0 +1,9 @@ +-- write a SQL query to find all teams that Satchel Paige played for. +-- Your query should return a table with a single column, one for the name of the teams. +SELECT DISTINCT t."name" +FROM "teams" as t +JOIN "performances" as perf + ON perf."team_id" = t."id" +JOIN "players" as p + ON p."id" = perf."player_id" +WHERE p."first_name" = "Satchel" AND p."last_name" = "Paige";