Database Management > STUDY GUIDE > WGU C170 Objective Assessment With Complete Solution (All)

WGU C170 Objective Assessment With Complete Solution

Document Content and Description Below

WGU C170 Objective Assessment – Edward M Burke First Normal Form – 1 Table I gleaned this table from the unstructured data contained within the order form. I made sure not to have any redundant... groups, and each column in the table will contain atomic values. Donut ID, Donut Name, Donut Quantity, Unit Price, and Donut Description are an example of a repeating group. As I mentioned earlier, in order to achieve first normal form, we must eliminate repeating groups. This requires the use of a composite key made up of Donut Order ID and Donut ID. Second Normal Form – 3 Tables In order to achieve second normal form we need to split the first table into three separate tables so that all non-key attributes are functionally dependent on the entire primary key. I took the attributes that are partially dependent on the primary key, and placed them into separate relations. Donut Name, Donut Description, and Unit Price depend only on Donut Order ID. Donut Quantity and Item Total depend on both Donut Order ID and Donut ID. Third Normal Form – 4 Tables In order to achieve third normal form we need to eliminate any transitive dependency, meaning an attribute depends on another attribute that is not the primary key. For example, looking at our second normal form tables, Customer Last Name is dependent on Donut Order ID. (Each Donut Order ID has only one Customer Last Name value associated with it) To transform into third normal form we simply move any transitively dependent attributes to their own relation where they depend on only the primary key. Entity Relationship Diagram using tables from A1C: Both the Customer and Donut entities have a single primary key and related attributes that describe them. The orderDetails table is an associative entity that shows the interactive relationship between the Donut, and donutOrder entities. The DonutOrder entity has a primary key of DonutOrder_ID, and a foreign key consisting of Customer_ID to record the order date, notes, and totals that describe the interaction of the Customer and Donut purchase with corresponding foreign keys. The cardinality from customer to donutOrder is 1-to-many as a customer can place multiple orders, while the cardinality in the other direction will be many-to-1 because a donutOrder will have at most one customer per order. The donut to orderDetails cardinality is 1-to-many as one donut can fill multiple orderDetail records, while in the other direction, an orderDetails record will have 1 donut per record, representing a many-to-1 relationship. The donutOrder to orderDetails cardinality is 1-to-many as one donutORder may reference multiple orderDetail records, and in the other direction, one orderDetails record will only pertain to one donutOrder. The orderDetails table has a composite primary and composite foreign key key consisting of donutOrder_ID and Donut_ID which shows the intersection data of the Donut and donutOrder tables. C. Develop the SQL code to create each of the third normal form tables you designed in part A and refined in part B: CREATE TABLE `Customer` ( `Customer_ID` INT UNSIGNED NOT NULL, `First_Name` VARCHAR(25) NOT NULL, `Last_Name` VARCHAR(25) NOT NULL, `Address` VARCHAR(25) NOT NULL [Show More]

Last updated: 2 years ago

Preview 1 out of 11 pages

Buy Now

Instant download

We Accept:

We Accept
document-preview

Buy this document to get the full access instantly

Instant Download Access after purchase

Buy Now

Instant download

We Accept:

We Accept

Also available in bundle (1)

WGU c170 Bundled Docs with complete solution

WGU C170 Objective Assessment With Complete Solution WGU c170 SQL COMMANDS WGU c170 PROJECT WITH COMPLETE SOLUTION WGU c170 The Most Important SQL Commands(SQL study guide) WGU c170 Database Applicati...

By Nutmegs 3 years ago

$13

10  

Reviews( 0 )

$8.00

Buy Now

We Accept:

We Accept

Instant download

Can't find what you want? Try our AI powered Search

169
0

Document information


Connected school, study & course


About the document


Uploaded On

May 12, 2022

Number of pages

11

Written in

Seller


seller-icon
Nutmegs

Member since 3 years

620 Documents Sold

Reviews Received
77
14
8
2
21
Additional information

This document has been written for:

Uploaded

May 12, 2022

Downloads

 0

Views

 169

Document Keyword Tags

Recommended For You

Get more on STUDY GUIDE »

$8.00
What is Scholarfriends

In Scholarfriends, a student can earn by offering help to other student. Students can help other students with materials by upploading their notes and earn money.

We are here to help

We're available through e-mail, Twitter, Facebook, and live chat.
 FAQ
 Questions? Leave a message!

Follow us on
 Twitter

Copyright © Scholarfriends · High quality services·