TASK #76 · MediumUser status: owner/tenant
Your brief
Display the names of all users of the booking service, as well as the status of whether the user is the owner of the housing and whether he has rented the housing at least once. If the user has the specified status, display 1 in the appropriate field, otherwise 0.
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