Database Exercise

User Generated

Iurrxvroreel

Computer Science

Description

1) Describe functional dependency only; NOT full functional dependency, or partial dependency, or transitive dependency. Hint – review the Functional Dependencies Topic in the Terms and Concepts discussion. While you may incorporate the formal definition, you must explain the concept in your own words, using fields names and values from this exercise. 15%

Using the functional dependency notation shown on pages 412, 413 Examples 14.4, 14.5, identify the functional dependencies that exist in the above figure. All attributes should be included at least once. There may be more than one row of functional notation needed. 15%

2) Identify a primary key for the table in the above figure. 10%
Indicate whether there are any alternate keys (for this table) 15%
explain each of the above choices
3) Is the table in 3NF? 10%
If not, explain why – (provide specific rationale, use field names and values in the table to demonstrate your understanding). 15%
Explain what normal form the table provided is in. 10%

Unformatted Attachment Preview

14.17 A company called FastCabs provides a taxi service to clients. The table shown in Figure 14.21 displays some details of client bookings for taxis. Assume that a taxi driver is assigned to a single taxi, but a taxi can be assigned to one or more drivers. (a) Identify the functional dependencies that exist between the columns of the table in Figure 14.21 and identify the primary key and any alternate key(s) (if present) for the table. (b) Describe why the table in Figure 14.21 is not in 3NF. (c) The table shown in Figure 14.21 is susceptible to update anomalies. Provide examples of how insertion, deletion, and modification anomalies could occur on this table. JobID JobDate Time driverID driverName taxiID clientID clientName jobPickUpAddress 1 25/07/14 10.00 D1 Joe Bull T1 C1 Anne Woo 1 Storrie Rd, Paisley 2 29/07/14 10.00 D1 Joe Bull ΤΙ CI 3 30/07/14 11.00 D2 Tom Win T2 C1 Anne Woo Anne Woo 1 Storrie Rd, Paisley 4 2/08/14 13.00 D3 Jim Jones T3 C2 Mark Tin 3 High Street, Paisley 1A Lady Lane, Paisley 5 2/08/14 13.00 D4 Steven Win T1 C3 John Seal 22 Red Road, Paisley 6 25/08/14 10.00 D2 Tom Win T2 C4 Karen Bow 17 High Street, Paisley Figure 14.21 Table displaying sample data for FastCabs. 429 43014.18 Applying normalisation to 3NF on the table shown in Figure 14.21 results in the formation of the three 3NF tables shown in Figure 14.22. (a) Identify the functional dependencies that exist between the columns of each table in Figure 14.22 and identify the primary key and any alternate and foreign key(s) (if present) for each table. (b) Describe why storing the FastCabs data across three 3NF tables avoids the update anomalies described in Exercise 14.17(b). (c) Describe how the original table shown in Figure 14.21 can be re-created through relational joins between primary key and foreign keys columns of the tables in Figure 14.22. JobID JobDateTime driverID 1 25/07/14 10.00 D1 2 29/07/14 10.00 D1 3 30/07/14 11.00 D2 2/08/14 13.00 D3 5 2/08/14 13.00 ᎠᏎ 6 25/08/14 10.00 D2 clientID C1 5 5 5 8 3 J C2 C3 C4 jobPickUpAddress 1 Storrier Rd, Paisley 1 Storrier Rd, Paisley 3 High Street, Paisley 1A Lady Lane, Paisley 22 Red Road, Paisley 17 High Street, Paisley drierID driverName taxiD D1 Joe Bull T1 D2 Tom Win T2 D3 Jim Jones T3 ᎠᏎ Steven Win T1clientID C1 C2 5 3 3 3 C3 C4 clientName Anne Woo Mark Tin John Seal Karen Bow
Purchase answer to see full attachment
Explanation & Answer:
3 Questions
User generated content is uploaded by users for the purposes of learning and should be used following Studypool's honor code & terms of service.

Explanation & Answer

View attached explanation and answer. Let me know if you have any questions.

Running head: DATABASE EXERCISE

Database Exercise
Author Name(s), First M. Last, Omit Titles and Degrees
Institutional Affiliation(s)
16th of October 2022

1

DATABASE EXERCISE

2
Database Exercise

1) Each class assumes a primary key to correctly recognize its subscribers. Because
customers can only bring a car for ...

Similar Content

Related Tags