Skip to content

Instantly share code, notes, and snippets.

@Israel025
Last active April 2, 2019 19:46
Show Gist options
  • Save Israel025/f9a1b65b3abff3333669f6db79781119 to your computer and use it in GitHub Desktop.
Save Israel025/f9a1b65b3abff3333669f6db79781119 to your computer and use it in GitHub Desktop.
April 2, 2019 SQL Daily Challenge Response
select id, host_id, host_name, room_type from levelUp.listings where room_type = 'Private room' order By host_name ASC;
Selecting only room_type and price columns:
Select room_type, price from levelUp.listings where price BETWEEN 50 AND 100;
Selecting all columns:
select * from levelUp.listings where price BETWEEN 50 AND 100;
Selecting only room_type and accommodates columns:
select room_type, accommodates from levelUp.listings where room_type = 'Private room' AND accommodates >= 2;
Selecting all columns:
select * from levelUp.listings where room_type = 'Private room' AND accommodates >= 2;
@mayorcoded
Copy link

Nice work!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment