Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

Customers customerlD C001 C002 C003 C004 firstName Tony Daniel Jimmy Jimmy lastN

ID: 3731875 • Letter: C

Question

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)

Explanation / Answer

What is the most appropriate primary key of the booking relation ?

Answer: bookingID is the most appropriate option of booking relation because it is unique in the table.

---------------------------------------------------------------------------------------------------------------------

What are the foreign keys in the Booking relation ?

Answer: hostID and customerID are two foreign keys in booking relation because they are primary keys of Hosts and Customers relations respectively.

Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
Chat Now And Get Quote