Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Answer both questions and explain your answers. Question 2: Consider the following Seven relations for a car-rental database application in a company: CUSTOMER(Cust#, Cname, City)

Answer both questions and explain your answers.

Question 2: Consider the following Seven relations for a car-rental database

application in a company:

CUSTOMER(Cust#, Cname, City)

RENTAL(Rental#, Rdate, Cust#, Time, Date, Hourly_rate) RENTAL_CAR(Rental#, Car#, Driver#, State_time, End_time, Amount_recieved)

CAR(Car#, Year, Model, Price, Depreciation, Last_service)

SERVICING(Garager#, Car#, Service_date)

GRAGE(Garage#, GAddress, Owner_name)

DRIVER(Driver#, DName, DAddress)

Here, Hourly_rate refers to the per hour rate for a specific rental. Amount_received is the total fare; Time and Date are the time and date when the car and driver is sent to the customer. Rdate is the date the rental order was placed. Assume that a car can be driven by any driver and can go to more than one garage for servicing. Specify the foreign keys for this schema, stating any assumptions you make. What other constraints can you think of this database?

Question 2: Consider the following relations for a Library database that keeps track of users, suppliers, books, user registration and supply details:

USER(Ssn, Uname, Uaddress, Card#, Rdate)

BOOK(Book_isbn, Book_title, Publisher, Author)

BOOK_BORROWED(Ssn, Card#, Issue_date, Return_date, Book_isbn)

SUPPLIER(SSsn, Sname, Saddress, Account#)

SUPPLY(Book_isbn,SSsn, price, Sdate)

Specify the foreign keys for this schema, stating any assumptions you make.

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image_2

Step: 3

blur-text-image_3

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Data Analytics Systems Engineering Cybersecurity Project Management

Authors: Christopher Greco

1st Edition

168392648X, 978-1683926481

More Books

Students also viewed these Databases questions

Question

Identify the main features of technical communication

Answered: 1 week ago

Question

Explain the steps involved in training programmes.

Answered: 1 week ago

Question

What are the need and importance of training ?

Answered: 1 week ago

Question

What is job rotation ?

Answered: 1 week ago

Question

Approaches to Managing Organizations

Answered: 1 week ago

Question

Communicating Organizational Culture

Answered: 1 week ago