automated commit by check50 [check50=True]

This commit is contained in:
daviddoji
2026-04-23 15:49:50 +02:00
parent 2f774d822e
commit 347ed3063f

9
4.sql
View File

@@ -0,0 +1,9 @@
-- write a SQL query to find the 10 cities with the most public schools.
-- Your query should return the names of the cities and the number of public schools within them,
-- ordered from greatest number of public schools to least. If two cities have the same number of public schools,
-- order them alphabetically.
SELECT "city", COUNT("name") AS "Number of schools"
FROM "schools"
GROUP BY "city"
ORDER BY "Number of schools" DESC, "name" DESC
LIMIT 10;