bot50
2026-04-15 08:38:49 +00:00
commit 24646122c0
10 changed files with 15 additions and 0 deletions

2
1.sql Normal file
View File

@@ -0,0 +1,2 @@
-- write a SQL query to find the hometown (including city, state, and country) of Jackie Robinson.
SELECT "birth_city", "birth_state", "birth_country" FROM "players" WHERE "first_name" = "Jackie" AND "last_name" = "Robinson";

0
10.sql Normal file
View File

2
2.sql Normal file
View File

@@ -0,0 +1,2 @@
-- write a SQL query to find the side (e.g., right or left) Babe Ruth hit.
SELECT "bats" FROM "players" WHERE "first_name" = "Babe" AND "last_name" = "Ruth";

2
3.sql Normal file
View File

@@ -0,0 +1,2 @@
-- write a SQL query to find the ids of rows for which a value in the column debut is missing.
SELECT "id" FROM "players" WHERE "debut" IS NULL;

3
4.sql Normal file
View File

@@ -0,0 +1,3 @@
-- write a SQL query to find the first and last names of players who were not born in the United States.
-- Sort the results alphabetically by first name, then by last name.
SELECT "first_name", "last_name" FROM "players" WHERE "birth_country" != "USA" ORDER BY "first_name" ASC, "last_name" ASC;

3
5.sql Normal file
View File

@@ -0,0 +1,3 @@
-- write a SQL query to return the first and last names of all right-handed batters.
-- Sort the results alphabetically by first name, then by last name.
SELECT "first_name", "last_name" FROM "players" WHERE "bats" = "R" ORDER BY "first_name" ASC, "last_name" ASC;

3
6.sql Normal file
View File

@@ -0,0 +1,3 @@
-- write a SQL query to return the first name, last name, and debut date of players born in Pittsburgh, Pennsylvania (PA).
-- Sort the results first by debut date—from most recent to oldest—then alphabetically by first name, followed by last name.
SELECT "first_name", "last_name", "debut" FROM "players" WHERE "birth_city" = "Pittsburgh" ORDER BY "debut" DESC, "first_name" ASC, "last_name" DESC;

0
7.sql Normal file
View File

0
8.sql Normal file
View File

0
9.sql Normal file
View File