From 42e206770775bcdc459bdc4d0875cb0acbea9bf7 Mon Sep 17 00:00:00 2001 From: daviddoji Date: Mon, 27 Apr 2026 16:45:42 +0200 Subject: [PATCH] automated commit by check50 [check50=True] --- 8.sql | 1 - 9.sql | 8 ++++++++ 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/8.sql b/8.sql index ccf421f..de72719 100644 --- a/8.sql +++ b/8.sql @@ -3,4 +3,3 @@ SELECT d."name", e."pupils" FROM "expenditures" AS e JOIN "districts" AS d ON e."district_id" = d."id"; --- WHERE d."name" = 'Cambridge'; diff --git a/9.sql b/9.sql index e69de29..fd131bc 100644 --- a/9.sql +++ b/9.sql @@ -0,0 +1,8 @@ +-- write a SQL query to find the name (or names) of the school district(s) with the single least number of pupils. +-- Report only the name(s). +SELECT d."name" +FROM "expenditures" AS e +JOIN "districts" AS d +ON e."district_id" = d."id" +ORDER BY "pupils" ASC +LIMIT 1;