100% de satisfacción garantizada Inmediatamente disponible después del pago Tanto en línea como en PDF No estas atado a nada 4,6 TrustPilot
logo-home
Examen

WGU C170 Data Management – Applications (MySQL) Project 2022

Puntuación
-
Vendido
-
Páginas
9
Grado
A+
Subido en
21-10-2022
Escrito en
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.

Mostrar más Leer menos
Institución
Grado

Vista previa del contenido

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/

Escuela, estudio y materia

Institución
Grado

Información del documento

Subido en
21 de octubre de 2022
Número de páginas
9
Escrito en
2022/2023
Tipo
Examen
Contiene
Preguntas y respuestas

Temas

$8.49
Accede al documento completo:

100% de satisfacción garantizada
Inmediatamente disponible después del pago
Tanto en línea como en PDF
No estas atado a nada


Documento también disponible en un lote

Conoce al vendedor

Seller avatar
Los indicadores de reputación están sujetos a la cantidad de artículos vendidos por una tarifa y las reseñas que ha recibido por esos documentos. Hay tres niveles: Bronce, Plata y Oro. Cuanto mayor reputación, más podrás confiar en la calidad del trabajo del vendedor.
Classroom NURSING
Seguir Necesitas iniciar sesión para seguir a otros usuarios o asignaturas
Vendido
4745
Miembro desde
3 año
Número de seguidores
3222
Documentos
53395
Última venta
3 horas hace
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!!!!!!!!!!!!

Lee mas Leer menos
4.0

1171 reseñas

5
618
4
213
3
192
2
39
1
109

Recientemente visto por ti

Por qué los estudiantes eligen Stuvia

Creado por compañeros estudiantes, verificado por reseñas

Calidad en la que puedes confiar: escrito por estudiantes que aprobaron y evaluado por otros que han usado estos resúmenes.

¿No estás satisfecho? Elige otro documento

¡No te preocupes! Puedes elegir directamente otro documento que se ajuste mejor a lo que buscas.

Paga como quieras, empieza a estudiar al instante

Sin suscripción, sin compromisos. Paga como estés acostumbrado con tarjeta de crédito y descarga tu documento PDF inmediatamente.

Student with book image

“Comprado, descargado y aprobado. Así de fácil puede ser.”

Alisha Student

Preguntas frecuentes