Last active
April 2, 2019 19:46
-
-
Save Israel025/f9a1b65b3abff3333669f6db79781119 to your computer and use it in GitHub Desktop.
April 2, 2019 SQL Daily Challenge Response
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
select id, host_id, host_name, room_type from levelUp.listings where room_type = 'Private room' order By host_name ASC; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Nice work!