TASK #79 · MediumPrice with 10% discount
Your brief
Output the fields id, home_type, price for all residential units from the Rooms table. If the room has a TV and Internet at the same time, then display the price in the price field, applying a 10% discount.
Ctrl / ⌘ + ↵
Result
Write a query and run it to see the results.
Schema
usersid, name, email, email_verified_at, password, phone_numberreservationsid, user_id, room_id, start_date, end_date, price, totalroomsid, home_type, address, has_tv, has_internet, has_kitchen, has_air_con, price, owner_id, latitude, longitudereviewsid, reservation_id, rating