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;