From 38ce3a60123d1e76f6b090b426c83a97233e5f7b Mon Sep 17 00:00:00 2001 From: daviddoji Date: Wed, 15 Apr 2026 10:38:45 +0200 Subject: [PATCH] automated commit by check50 [check50=True] --- 5.sql | 3 +++ 6.sql | 3 +++ 2 files changed, 6 insertions(+) diff --git a/5.sql b/5.sql index e69de29..1779604 100644 --- a/5.sql +++ b/5.sql @@ -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; diff --git a/6.sql b/6.sql index e69de29..dfe1cce 100644 --- a/6.sql +++ b/6.sql @@ -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;