Files
me50/10.sql
2026-04-27 16:56:07 +02:00

9 lines
362 B
SQL

-- write a SQL query to find the 10 public school districts with the highest per-pupil expenditures.
-- Your query should return the names of the districts and the per-pupil expenditure for each.
SELECT d."name", e."per_pupil_expenditure"
FROM "expenditures" AS e
JOIN "districts" AS d
ON e."district_id" = d."id"
ORDER BY "per_pupil_expenditure" DESC
LIMIT 10;