Written by students who passed Immediately available after payment Read online or as PDF Wrong document? Swap it for free 4.6 TrustPilot
logo-home
Exam (elaborations)

WGU c170 PROJECT WITH COMPLETE SOLUTION

Rating
-
Sold
-
Pages
11
Grade
A+
Uploaded on
16-02-2022
Written in
2021/2022

WGU c170 PROJECT WITH COMPLETE SOLUTION

Institution
Course

Content preview

1NF 2NF

DONUT ORDER ID
DONUT ID DONUT ORDER
Highlighted fields will form a DONUT ID (PK)
DATE ID(PK)
Composite primary key. City DONUT NAME
CUSTOMER ID DATE
State and Zip were separated DONUT DESCRIPTION
LAST NAME CUSTOMER ID
UNIT PRICE
FIRST NAME And are now atomic LAST NAME
STREET ADDRESS FIRST NAME
CITY STREET ADDRESS
STATE APT DONUT ORDER ID (PK)
ZIP CODE CITY (FK)
HOME PHONE STATE QUANTITY
MOBILE PHONE ZIP CODE DONUT ID (PK)(FK)
OTHER PHONE HOME PHONE
DESCRIPTION MOBILE PHONE
QTY OTHER PHONE
UNIT PRICE NOTES
NOTES No duplicate data, each of the above tables has a Primary Key, and a key
DONUT NAME (foreign) that can refer to another table in the group.




3NF

CUSTOMER ID (PK)
DATE
LAST NAME
CUSTOMER ID (FK)
FIRST NAME
NOTES
STREET ADDRESS DONUT ORDER ID
DONUT ORDER ID
APT (PK)(FK)
(PK)
CITY No QUANTITY transitive dependency. New table has 2
STATE of DONUT ID (PK)(FK) the PKs from the other tables as Foreign
ZIP CODE DONUT ID (PK)
Keys.
HOME PHONE DONUT NAME
DONUT Each table has a primary key which can refer to another one of the
MOBILE PHONE
DESCRIPTION tables in this group.
OTHER PHONE
UNIT PRICE




ORDER TABLE
DATE DATETIME
1:M CUSTOMERID INT (fk)
DONUT TABLE
DONUT_ORDER_ID
DONUT_ID INT (pk) INT (pk)
One Customer can place many Orders
DONUT_NAMEQUANTITY
NOTES TABLE
VARCHAR
VARCHAR (255)
(100)
ER DIAGRAM Customer table has single pk
QUANTITY VARCHAR
DONUT_DESCRIPTION INT (255)
DONUT_ORDER_ID
UNIT_PRICE DECIMAL (10,2) INT (pk) (fk)
DONUT_ID INT (pk)(fk)

, One order can have many
different quantities


1:M
CUSTOMER TABLE
CUSTOMER_ID INT (pk)
LAST_NAME VARCHAR (30)
FIRST_NAME VARCHAR (30)
STREET_ADDRESS VARCHAR (100)
APT INT,
CITY VARCHAR (30)
STATE VARCHAR (30)
ZIP_CODE INT
HOME_PHONE VARCHAR (20)
MOBILE_PHONE VARCHAR (20) One donut order can hold
OTHER_PHONE VARCHAR (20) many different quantities
of donut types of donut types

1:M




create table customers(

customer_id INT,

Written for

Institution
Course

Document information

Uploaded on
February 16, 2022
Number of pages
11
Written in
2021/2022
Type
Exam (elaborations)
Contains
Questions & answers

Subjects

$9.99
Get access to the full document:

Wrong document? Swap it for free Within 14 days of purchase and before downloading, you can choose a different document. You can simply spend the amount again.
Written by students who passed
Immediately available after payment
Read online or as PDF

Get to know the seller

Seller avatar
Reputation scores are based on the amount of documents a seller has sold for a fee and the reviews they have received for those documents. There are three levels: Bronze, Silver and Gold. The better the reputation, the more your can rely on the quality of the sellers work.
valentineclinton Princeton University
Follow You need to be logged in order to follow users or courses
Sold
59
Member since
4 year
Number of followers
52
Documents
433
Last sold
5 months ago

3.0

9 reviews

5
3
4
1
3
1
2
1
1
3

Trending documents

Why students choose Stuvia

Created by fellow students, verified by reviews

Quality you can trust: written by students who passed their tests and reviewed by others who've used these notes.

Didn't get what you expected? Choose another document

No worries! You can instantly pick a different document that better fits what you're looking for.

Pay as you like, start learning right away

No subscription, no commitments. Pay the way you're used to via credit card and download your PDF document instantly.

Student with book image

“Bought, downloaded, and aced it. It really can be that simple.”

Alisha Student

Frequently asked questions