Created
June 28, 2016 05:22
-
-
Save wyqydsyq/9d43a6713f975f49b47a38f04ce24c1d to your computer and use it in GitHub Desktop.
This file contains 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 SUM(`earnings`) AS `total` FROM `rooms` WHERE `room_type` = 'single' AND `roomPrice` NOT NULL |
This file contains 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 `rooms`.`room_number` FROM `rooms` WHERE `bookings`.`room_number` = `rooms`.`room_number` AND `bookings`.`date` = '2016-05-28 12:00:00' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment