automated commit by check50 [check50=True]

This commit is contained in:
daviddoji
2026-04-23 15:55:04 +02:00
parent 347ed3063f
commit 18ad4e495a
2 changed files with 3 additions and 2 deletions

2
1.sql
View File

@@ -1,2 +1,2 @@
-- write a SQL query to find the names and cities of all public schools in Massachusetts.
SELECT "name", "city" FROM "schools" WHERE type = "Public School";
SELECT "name", "city" FROM "schools" WHERE "type" = "Public School";

3
4.sql
View File

@@ -4,6 +4,7 @@
-- order them alphabetically.
SELECT "city", COUNT("name") AS "Number of schools"
FROM "schools"
WHERE "type" = "Public School"
GROUP BY "city"
ORDER BY "Number of schools" DESC, "name" DESC
ORDER BY "Number of schools" DESC, "name" ASC
LIMIT 10;