Return query result with if condition
问题 I have some table structure like this. table property_day propday_id | date | property_id | check_in | check_out ------------------------------------------------------ 1 | 2017-03-26 | 5 | 0 | 0 2 | 2017-03-27 | 5 | 0 | 0 3 | 2017-03-28 | 5 | 0 | 0 4 | 2017-03-29 | 5 | 0 | 0 table rooms room_id | name | property_id ---------------------------- 1 | Deluxe | 5 2 | Superior | 5 3 | Executive | 5 I want to show all that room with if condition inside query. I show that room with date check in and