From f3dc18b78d499ff4e3356316bbf14c3c07bd27ea Mon Sep 17 00:00:00 2001 From: daviddoji Date: Tue, 28 Apr 2026 15:02:37 +0200 Subject: [PATCH] automated commit by check50 [check50=True] --- 2.sql | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/2.sql b/2.sql index e69de29..7b25cfa 100644 --- a/2.sql +++ b/2.sql @@ -0,0 +1,9 @@ +-- write a SQL query to find Cal Ripken Jr.’s salary history. +-- Sort by year in descending order. +-- Your query should return a table with two columns, one for year and one for salary. +SELECT "year", "salary" +FROM "salaries" AS s +JOIN "players" AS p + ON s."player_id" = p."id" +WHERE p."first_name" = "Cal" AND p."last_name" LIKE "Ripken%" +ORDER BY "year" DESC;