diff --git a/8.sql b/8.sql index e69de29..ccf421f 100644 --- a/8.sql +++ b/8.sql @@ -0,0 +1,6 @@ +-- write a SQL query to display the names of all school districts and the number of pupils enrolled in each. +SELECT d."name", e."pupils" +FROM "expenditures" AS e +JOIN "districts" AS d +ON e."district_id" = d."id"; +-- WHERE d."name" = 'Cambridge';