Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

A department of the university has a small car, which members of staff may use for work purposes. They need a database to keep track

image text in transcribed
image text in transcribed
image text in transcribed
A department of the university has a small car, which members of staff may use for work purposes. They need a database to keep track of who uses the car and any related expenses Design a database for recording the information on the staff member who books the departmental car and the date booked and returned, the car mileage and any claims for the fuel, parking and similar related expenses 1. Create an Entity Relation Diagram showing the tables needed and the relationships between tables 2. Create suitable fields for each table and select an appropriate primary key for each table select an appropriate foreign keys to connect the tables. If there is no adequate candidate key create necessary surrogate keys for the appropriate tables. For the tables in figure P3.24 you want to see data on charters flown by either Robert Williams (employee number 105) or Elizabeth Travis (employee number 109) as pilot or copilot, but not charters flown by both of them. Complete Items 3-5 to find this information. 3. Create the table that would result from applying the SELECT and PROJECT relational operators to the CHARTER table to return only the CHAR_TRIP, CHAR_PILOT, and CHAR_COPILOT attributes for charters flown by either employee 105 or employee 109. 4. Create the table that would result from applying the SELECT and PROJECT relational operators to the CHARTER table to return only the CHAR_TRIP, CHAR_PILOT, and CHAR_COPILOT attributes for charters flown by both employee 105 and employee 109. 5. Create the table that would result from applying a DIFFERENCE relational operator of your result from Item 1 to your result from Item 2. A department of the university has a small car, which members of staff may use for work purposes. They need a database to keep track of who uses the car and any related expenses Design a database for recording the information on the staff member who books the departmental car and the date booked and returned, the car mileage and any claims for the fuel, parking and similar related expenses 1. Create an Entity Relation Diagram showing the tables needed and the relationships between tables 2. Create suitable fields for each table and select an appropriate primary key for each table select an appropriate foreign keys to connect the tables. If there is no adequate candidate key create necessary surrogate keys for the appropriate tables. For the tables in figure P3.24 you want to see data on charters flown by either Robert Williams (employee number 105) or Elizabeth Travis (employee number 109) as pilot or copilot, but not charters flown by both of them. Complete Items 3-5 to find this information. 3. Create the table that would result from applying the SELECT and PROJECT relational operators to the CHARTER table to return only the CHAR_TRIP, CHAR_PILOT, and CHAR_COPILOT attributes for charters flown by either employee 105 or employee 109. 4. Create the table that would result from applying the SELECT and PROJECT relational operators to the CHARTER table to return only the CHAR_TRIP, CHAR_PILOT, and CHAR_COPILOT attributes for charters flown by both employee 105 and employee 109. 5. Create the table that would result from applying a DIFFERENCE relational operator of your result from Item 1 to your result from Item 2

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

Step: 3

blur-text-image

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

Database Concepts

Authors: David M. Kroenke, David J. Auer

7th edition

133544621, 133544626, 0-13-354462-1, 978-0133544626

More Books

Students also viewed these Databases questions

Question

Evaluate 3x - x for x = -2 Answer:

Answered: 1 week ago

Question

What is group replacement? Explain with an example. (2-3 lines)

Answered: 1 week ago

Question

Understand how customers respond to effective service recovery.

Answered: 1 week ago