100% satisfaction guarantee Immediately available after payment Both online and in PDF No strings attached 4.2 TrustPilot
logo-home
Exam (elaborations)

WGU C170 Data Management – Applications (MySQL) Project 2022

Rating
-
Sold
-
Pages
9
Grade
A+
Uploaded on
21-10-2022
Written in
2022/2023

Timothy Clark C170: Data Management – Applications (MySQL) 1A) 1NF RAW MySQL: CREATE TABLE Orders_1NF ( OrderID INT NOT NULL AUTO_INCREMENT, DonutID INT NOT NULL, DonutName CHAR(75) NOT NULL, Description CHAR(255) NULL, UnitPrice DECIMAL(2,2) NULL, Quantity INT NOT NULL, OrderDate DATE NOT NULL, SpecialHandlingNotes CHAR(255) NULL, CustomerID INT NULL, CustomerFirstName CHAR(50) NULL, CustomerLastName CHAR(50) NULL, CustomerStreetAddress1 CHAR(50) NULL, CustomerStreetAddress2 CHAR(50) NULL, CustomerCity CHAR(50) NULL, CustomerState CHAR(2) NULL, CustomerZip CHAR(6) NULL, CustomerHomePhone CHAR(10) NULL, CustomerMobilePhone CHAR(10) NULL, CustomerOtherPhone CHAR(10) NULL, CONSTRAINT PK_Orders_1NF PRIMARY KEY (OrderID, DonutID) ); Explanation: The above code was reached after the following considerations. Firstly, I reviewed the Sales Order Form which was provided with this assignment. After reviewing the Order Form, I broke down the sections into individual elements which I then converted into SQL table columns. This will allow orders to populate as Rows into the Orders_1NF table. The primary key selected is derived from OrderID and DonutID creating a composite key with the two data points which enforces complete uniqueness.

Show more Read less
Institution
Course









Whoops! We can’t load your doc right now. Try again or contact support.

Written for

Institution
Course

Document information

Uploaded on
October 21, 2022
Number of pages
9
Written in
2022/2023
Type
Exam (elaborations)
Contains
Questions & answers

Subjects

Content preview

WGU C170 DATA MANAGEMENT-APPLICATIONS(MYSQL)
Timothy Clark
C170: Data Management – Applications (MySQL)

1A) 1NF

RAW MySQL:
CREATE TABLE Orders_1NF
(
OrderID INT NOT NULL AUTO_INCREMENT,
DonutID INT NOT NULL,
DonutName CHAR(75) NOT NULL,
Description CHAR(255) NULL,
UnitPrice DECIMAL(2,2) NULL,
Quantity INT NOT NULL,
OrderDate DATE NOT NULL,
SpecialHandlingNotes CHAR(255) NULL,
CustomerID INT NULL,
CustomerFirstName CHAR(50) NULL,
CustomerLastName CHAR(50) NULL,
CustomerStreetAddress1 CHAR(50) NULL,
CustomerStreetAddress2 CHAR(50) NULL,
CustomerCity CHAR(50) NULL,
CustomerState CHAR(2) NULL,
CustomerZip CHAR(6) NULL,
CustomerHomePhone CHAR(10) NULL,
CustomerMobilePhone CHAR(10) NULL,
CustomerOtherPhone CHAR(10) NULL,
CONSTRAINT PK_Orders_1NF PRIMARY KEY (OrderID, DonutID)
);


Explanation:
The above code was reached after the following considerations. Firstly, I reviewed the Sales Order Form
which was provided with this assignment. After reviewing the Order Form, I broke down the sections
into individual elements which I then converted into SQL table columns. This will allow orders to
populate as Rows into the Orders_1NF table. The primary key selected is derived from OrderID and
DonutID creating a composite key with the two data points which enforces complete uniqueness.




This study source was downloaded by 100000844708667 from CourseHero.com on 10-20-2022 23:28:48 GMT -05:00


https://www.coursehero.com/file/117787214/C170-Timothy-Clarkpdf/

, Timothy Clark
C170: Data Management – Applications (MySQL)

1B) 2NF - A

RAW MySQL:
CREATE TABLE Donuts_2NF
(
DonutID INT NOT NULL,
DonutName CHAR(75) NOT NULL,
Description CHAR(255) NULL,
UnitPrice DECIMAL(2,2) NULL,
CONSTRAINT PK_Donuts_2NF PRIMARY KEY (DonutID)
);




1B) 2NF - B

RAW MySQL:
CREATE TABLE Orders_2NF
(
OrderID INT NOT NULL AUTO_INCREMENT,
OrderDate DATE NOT NULL,
CustomerID INT NULL,
DonutID INT NOT NULL,
SpecialHandlingNotes CHAR(255) NULL,
CustomerFirstName CHAR(50) NULL,
CustomerLastName CHAR(50) NULL,
CustomerStreetAddress1 CHAR(50) NULL,
CustomerStreetAddress2 CHAR(50) NULL,
CustomerCity CHAR(50) NULL,
CustomerState CHAR(2) NULL,
CustomerZip CHAR(6) NULL,
CustomerHomePhone CHAR(10) NULL,
CustomerMobilePhone CHAR(10) NULL,
CustomerOtherPhone CHAR(10) NULL,
CONSTRAINT PK_Orders_2NF PRIMARY KEY (OrderID)
);




This study source was downloaded by 100000844708667 from CourseHero.com on 10-20-2022 23:28:48 GMT -05:00


https://www.coursehero.com/file/117787214/C170-Timothy-Clarkpdf/
$7.99
Get access to the full document:

100% satisfaction guarantee
Immediately available after payment
Both online and in PDF
No strings attached


Also available in package deal

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.
Classroom NURSING
Follow You need to be logged in order to follow users or courses
Sold
4681
Member since
3 year
Number of followers
3218
Documents
51892
Last sold
6 hours ago
NURSING

Assignments, Case Studies, Research, Essay writing service, Questions and Answers, Discussions etc. for students who want to see results twice as fast. I have done papers of various topics and complexities. I am punctual and always submit work on-deadline. I write engaging and informative content on all subjects. Send me your research papers, case studies, psychology papers, etc, and I’ll do them to the best of my abilities. Writing is my passion when it comes to academic work. I’ve got a good sense of structure and enjoy finding interesting ways to deliver information in any given paper. I love impressing clients with my work, and I am very punctual about deadlines. Send me your assignment and I’ll take it to the next level. I strive for my content to be of the highest quality. Your wishes come first— send me your requirements and I’ll make a piece of work with fresh ideas, consistent structure, and following the academic formatting rules. For every student you refer to me with an order that is completed and paid transparently, I will do one assignment for you, free of charge!!!!!!!!!!!!

Read more Read less
4.0

1159 reviews

5
611
4
213
3
189
2
38
1
108

Recently viewed by you

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