From 01bb1e5ed808b3f02628891107a3463e89370dc0 Mon Sep 17 00:00:00 2001 From: AdityaTharunJ Date: Mon, 25 May 2026 12:22:24 +0530 Subject: [PATCH] Add SQL queries for age and income analysis Added SQL queries to retrieve customers by age and income. --- SQL Deep Dive/BETWEEN + AND/questions.sql | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) diff --git a/SQL Deep Dive/BETWEEN + AND/questions.sql b/SQL Deep Dive/BETWEEN + AND/questions.sql index 7311914..157ef06 100644 --- a/SQL Deep Dive/BETWEEN + AND/questions.sql +++ b/SQL Deep Dive/BETWEEN + AND/questions.sql @@ -1,11 +1,5 @@ -- Who between the ages of 30 and 50 has an income less than 50 000? -- (include 30 and 50 in the results) - -/* -* Write your query here -*/ - +select * from customer where age between 30 and 50 and income < 50000; -- What is the average income between the ages of 20 and 50? (Including 20 and 50) -/* -* Write your query here -*/ +select avg(income) from customers where age between 20 and 50;