diff --git a/2.sql b/2.sql index 1c853e8..7b0a4ca 100644 --- a/2.sql +++ b/2.sql @@ -1,2 +1,2 @@ -- write a SQL query to find the names of districts that are no longer operational. -SELECT * FROM "districts" WHERE "name" LIKE "%(non-op)"; +SELECT "name" FROM "districts" WHERE "name" LIKE "%(non-op)"; diff --git a/3.sql b/3.sql index e69de29..bc2d051 100644 --- a/3.sql +++ b/3.sql @@ -0,0 +1,2 @@ +-- write a SQL query to find the average per-pupil expenditure. Name the column “Average District Per-Pupil Expenditure”. +SELECT AVG("per_pupil_expenditure") AS "Average District Per-Pupil Expenditure" FROM "expenditures";