Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Customers customerlD C001 C002 C003 C004 firstName Tony Daniel Jimmy Jimmy lastName Sahama James Jimmy James email tony@gmail.com dan@yahoo com phoneNumber 0432328888 0412348711 0725637822 0488226739
Customers customerlD C001 C002 C003 C004 firstName Tony Daniel Jimmy Jimmy lastName Sahama James Jimmy James email tony@gmail.com dan@yahoo com phoneNumber 0432328888 0412348711 0725637822 0488226739 jimmy@gmail.com Hosts hostID H001 H002 H003 H004 H005 name Joe Hockey Malcom Turnbull Richy Rich Empire Builder Richy Rich address 101 Blue St 22 Riverview Rd 99 Penthouse Dr 01 Mountain Rd 22 Kiribilli St Bookings hostID H002 H004 H001 H004 H002 customerID C001 C002 C001 C004 C001 dateFromm 20/08/2018 25/08/2018 24/08/2018 25/08/2018 30/08/2018 numberOfNights bookinglD B001 B002 B003 B004 B005 Consider the tables above that show the relations and the existing tuples within the Hire a Holiday Home relational schema. Currently the database only has a few tuples in each relation. However, it will store significantly more information in the future. Note: there can only be one host at a given address; a customer can only book with one host for any given night (they cannot book for someone else) Choose the correct answer below for the following What is the most appropriate primary key of the Bookings relation? What are the foreign keys in the Booking relation? and (select the answers in alphabetical order)
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started