7 lines
246 B
SQL
7 lines
246 B
SQL
-- 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';
|