Created
April 3, 2019 05:24
-
-
Save tbanj/1cc78209225b117295cbb6e958590272 to your computer and use it in GitHub Desktop.
Mastering Database query of complex table
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
List out host who offer private rooms services only and arrange the results in ascending order by host name. | |
SELECT host_name FROM levelup_temitope.listings WHERE room_type ="Private room" ORDER BY host_name ASC; | |
List out rooms whose prices range between 50 and 100 | |
SELECT room_type FROM levelup_temitope.listings WHERE price BETWEEN 50 AND 100; | |
List out private rooms that can accommodate 2 or more people. | |
SELECT room_type FROM levelup_temitope.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