100% satisfaction guarantee Immediately available after payment Both online and in PDF No strings attached
logo-home
WGU C170 Data Management – Applications (MySQL) Project 2022 $7.99   Add to cart

Exam (elaborations)

WGU C170 Data Management – Applications (MySQL) Project 2022

 3 views  0 purchase
  • Course
  • Institution

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 DAT...

[Show more]

Preview 2 out of 9  pages

  • October 21, 2022
  • 9
  • 2022/2023
  • Exam (elaborations)
  • Questions & answers
avatar-seller
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/

The benefits of buying summaries with Stuvia:

Guaranteed quality through customer reviews

Guaranteed quality through customer reviews

Stuvia customers have reviewed more than 700,000 summaries. This how you know that you are buying the best documents.

Quick and easy check-out

Quick and easy check-out

You can quickly pay through credit card or Stuvia-credit for the summaries. There is no membership needed.

Focus on what matters

Focus on what matters

Your fellow students write the study notes themselves, which is why the documents are always reliable and up-to-date. This ensures you quickly get to the core!

Frequently asked questions

What do I get when I buy this document?

You get a PDF, available immediately after your purchase. The purchased document is accessible anytime, anywhere and indefinitely through your profile.

Satisfaction guarantee: how does it work?

Our satisfaction guarantee ensures that you always find a study document that suits you well. You fill out a form, and our customer service team takes care of the rest.

Who am I buying these notes from?

Stuvia is a marketplace, so you are not buying this document from us, but from seller Classroom. Stuvia facilitates payment to the seller.

Will I be stuck with a subscription?

No, you only buy these notes for $7.99. You're not tied to anything after your purchase.

Can Stuvia be trusted?

4.6 stars on Google & Trustpilot (+1000 reviews)

72042 documents were sold in the last 30 days

Founded in 2010, the go-to place to buy study notes for 14 years now

Start selling
$7.99
  • (0)
  Add to cart