Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 2 additions & 8 deletions SQL Deep Dive/BETWEEN + AND/questions.sql
Original file line number Diff line number Diff line change
@@ -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;