From 08eeb6c59ef296a9cf8dd5a761c8ff2ee305605f Mon Sep 17 00:00:00 2001 From: AdityaTharunJ Date: Mon, 25 May 2026 12:25:57 +0530 Subject: [PATCH] Update SQL queries to count specific records --- SQL Deep Dive/IN/questions.sql | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/SQL Deep Dive/IN/questions.sql b/SQL Deep Dive/IN/questions.sql index 4932cfc..e0b1c8e 100644 --- a/SQL Deep Dive/IN/questions.sql +++ b/SQL Deep Dive/IN/questions.sql @@ -4,7 +4,7 @@ * Question: How many orders were made by customer 7888, 1082, 12808, 9623 */ -SELECT * FROM orders; +SELECT count(orderid) FROM orders where customerid in (7888,1082,12808,9623); /* @@ -13,4 +13,4 @@ SELECT * FROM orders; * Question: How many cities are in the district of Zuid-Holland, Noord-Brabant and Utrecht? */ -SELECT * FROM city; +SELECT count(id) FROM city where district in ('Zuid-Holland', 'Noord-Brabant', 'Utrecht');