From ae13fc40d5af3cb5ac1f9bc630647ab3f152b9da Mon Sep 17 00:00:00 2001 From: daviddoji Date: Mon, 27 Apr 2026 16:28:58 +0200 Subject: [PATCH] automated commit by check50 [check50=True] --- 7.sql | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/7.sql b/7.sql index 4836dd3..c12b367 100644 --- a/7.sql +++ b/7.sql @@ -1,4 +1,8 @@ -- write a SQL query to find the names of schools (public or charter!) in the Cambridge school district. -- Keep in mind that Cambridge, the city, contains a few school districts, but DESE is interested in the -- district whose name is “Cambridge.” -SELECT "name" FROM "schools" WHERE "city" = "Cambridge"; +SELECT s."name" +FROM "schools" AS s +JOIN "districts" AS d + ON s."district_id" = d."id" +WHERE d."name" = 'Cambridge';