bot50
2026-04-27 15:41:48 +00:00
commit 4e0ed3cad8
13 changed files with 132 additions and 0 deletions

9
10.sql Normal file
View File

@@ -0,0 +1,9 @@
-- 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"
WHERE d."type" = 'Public School District'
ORDER BY e."per_pupil_expenditure" DESC
LIMIT 10;