Files
me50/9.sql
2026-04-27 16:45:42 +02:00

9 lines
265 B
SQL

-- write a SQL query to find the name (or names) of the school district(s) with the single least number of pupils.
-- Report only the name(s).
SELECT d."name"
FROM "expenditures" AS e
JOIN "districts" AS d
ON e."district_id" = d."id"
ORDER BY "pupils" ASC
LIMIT 1;