automated commit by check50 [check50=True]

This commit is contained in:
daviddoji
2026-04-28 15:10:03 +02:00
parent f3dc18b78d
commit 1f5635d664
2 changed files with 16 additions and 1 deletions

2
2.sql
View File

@@ -1,7 +1,7 @@
-- 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"
SELECT s."year", s."salary"
FROM "salaries" AS s
JOIN "players" AS p
ON s."player_id" = p."id"

15
3.sql
View File

@@ -0,0 +1,15 @@
-- write a SQL query to find Ken Griffey Jr.s home run history.
-- Sort by year in descending order.
-- Note that there may be two players with the name “Ken Griffey.” This Ken Griffey was born in 1969.
-- Your query should return a table with two columns, one for year and one for home runs.
SELECT perf."year", perf."hr"
FROM "performances" as perf
JOIN "players" AS p
ON perf."player_id" = p."id"
WHERE
p."first_name" = "Ken"
AND
p."last_name" LIKE "Griffey%"
AND
p."birth_year" = "1969"
ORDER BY "year" DESC;