Geschreven door studenten die geslaagd zijn Direct beschikbaar na je betaling Online lezen of als PDF Verkeerd document? Gratis ruilen 4,6 TrustPilot
logo-home
Tentamen (uitwerkingen)

Data Management - Applications - C170 Performance Labs - uCertify

Beoordeling
-
Verkocht
-
Pagina's
3
Cijfer
A+
Geüpload op
23-05-2022
Geschreven in
2021/2022

Data Management - Applications - C170 Performance Labs - uCertify 1.1.1 - Conceptual Schema - ER Model Tables: Customer, DonutOrder, Donut ans: Customer: PK - CustomerID Rest are customer related fields DonutOrder: FK - CustomerID, FK - DonutID Qty, SpecialNotes Donut: PK - DonutID Rest are donut fields Relationships: Customer - 1:n Identifying - DonutOrder DonutOrder - n:1 Identifying - Donut Why are the relationships in 1.1.1 Identifying? ans: The PK's of Customer and Donut are included in the composite primary key of DonutOrder. 2.1.1 - Physical Scheme - ER Model Tables: Customer, DonutOrder, Donut ans: Customer: PK - CustomerID Rest are customer related fields DonutOrder: PK- DonutOrderID FK - CustomerID FK - DonutID Rest of order related Donut: PK - DonutID Rest are donut related Relationships: Customer - 1:n Non-identifying - DonutOrder DonutOrder - n:1 Non-identifying - Donut Why are the relationships in 2.1.1 Non-Identifying? ans: The PK in DonutOrder is a unique key that does not include FK of other tables. 3.2.1 - Creating a database You need to create a database named "DonutOrderingDB". ans: create database DonutOrderingDB; 3.2.2 - Dropping database in MySQL You need to delete a database named DonutOrderingDB. ans: drop database DonutOrderingDB; 3.2.3 - Understanding types of relationships M:M ans: B. Each record from first table is associated with many records in second table and one record in second table is associated with many records in first table. 3.2.3 - Understanding types of relationships 1:M (or 1:n) ans: C. Each record from first table is associated with many records in second table but each record in second table is associated with one record in first table. 3.2.3 - Understanding types of relationships 1:1 ans: A. Single record in the first table is related to only one record in the second table and vice versa. 3.2.4 - Display Table Structure in MySQL editor Use the DESCRIBE command to display the following table structure Tables: Customer Donut CustomerDonutOrder ans: describe Customer; describe Donut; describe CustomerDonutOrder; 3.2.5 - Create Tables in MySQL Create a table named customerdonutorder as represented in the following Physical Schema by using the CREATE TABLE command. (Hint: Use DonutOrderTimestamp TIMESTAMP DEFAULT NOW()) customerdonutorder DonutorderID INT(11) CustomerID INT(11) - FK (Customer.CustomerID) DonutOrderTimestamp TIMESTAMP SpecialNotes VARCHAR(500) ans: create table customerdonutorder ( DonutorderID INT(11), CustomerID INT(11), DonutOrderTimestamp TIMESTAMP DEFAULT NOW(), SpecialNotes VARCHAR(500), foreign key (CustomerID) references Customer(CustomerID) ); 3.3.1 - Populate tables in MySQL Populate three tables using the Insert command. (Lots of information from the table schema I'm going to skip). ans: insert into Customer (LastName, FirstName, Street, Apt, City, State, Zip, HomePhone, MobilePhone, OtherPhone) values ( 'Pitt', 'Brad' truncated ), ( 'Jolie', 'Angelina' truncated ); ... then its just using the same insert into command for Donut and CustomerDonutOrder. 3.3.2 - Update Data in a table in MySQL Update the OrderQty as 10 in the uc_donutorder table where DonutOrderID is 1. ans: update uc_donutorder set OrderQty = 10 where DonutOrderID = 1; 3.3.3 - Delete rows in MySQL A table, test1, has already been created. Delete rows where id is 23 or 35. ans: delete from test1 where id = 23 or id = 35; 4.4.1 - Joining Tables in MySQL Write a query that joins (Inner Join) the three tables below and meets the following requirements Tables: uc_customer, uc_donut, uc_donutorder Requirements: - Retrieve DonutOrderID, LastName, DonutName, OrderQty, and DonutPrce - Use aliases o for uc_donutorder, p for uc_donut, and c for uc_customer ans: select DonutOrderID,

Meer zien Lees minder
Instelling
Vak

Voorbeeld van de inhoud

Data Management - Applications - C170 Performance Labs - uCertify


1.1.1 - Conceptual Schema - ER Model

Tables: Customer, DonutOrder, Donut ans: Customer:
PK - CustomerID
Rest are customer related fields

DonutOrder:
FK - CustomerID,
FK - DonutID
Qty, SpecialNotes

Donut:
PK - DonutID
Rest are donut fields

Relationships:
Customer - 1:n Identifying - DonutOrder
DonutOrder - n:1 Identifying - Donut

Why are the relationships in 1.1.1 Identifying? ans: The PK's of Customer and Donut are included in the
composite primary key of DonutOrder.

2.1.1 - Physical Scheme - ER Model

Tables: Customer, DonutOrder, Donut ans: Customer:
PK - CustomerID
Rest are customer related fields

DonutOrder:
PK- DonutOrderID
FK - CustomerID
FK - DonutID
Rest of order related

Donut:
PK - DonutID
Rest are donut related

Relationships:
Customer - 1:n Non-identifying - DonutOrder
DonutOrder - n:1 Non-identifying - Donut

Why are the relationships in 2.1.1 Non-Identifying? ans: The PK in DonutOrder is a unique key that does
not include FK of other tables.

Geschreven voor

Vak

Documentinformatie

Geüpload op
23 mei 2022
Aantal pagina's
3
Geschreven in
2021/2022
Type
Tentamen (uitwerkingen)
Bevat
Vragen en antwoorden

Onderwerpen

€13,11
Krijg toegang tot het volledige document:

Verkeerd document? Gratis ruilen Binnen 14 dagen na aankoop en voor het downloaden kun je een ander document kiezen. Je kunt het bedrag gewoon opnieuw besteden.
Geschreven door studenten die geslaagd zijn
Direct beschikbaar na je betaling
Online lezen of als PDF


Ook beschikbaar in voordeelbundel

Maak kennis met de verkoper

Seller avatar
De reputatie van een verkoper is gebaseerd op het aantal documenten dat iemand tegen betaling verkocht heeft en de beoordelingen die voor die items ontvangen zijn. Er zijn drie niveau’s te onderscheiden: brons, zilver en goud. Hoe beter de reputatie, hoe meer de kwaliteit van zijn of haar werk te vertrouwen is.
Classroom NURSING
Volgen Je moet ingelogd zijn om studenten of vakken te kunnen volgen
Verkocht
4874
Lid sinds
4 jaar
Aantal volgers
3232
Documenten
55394
Laatst verkocht
1 dag geleden
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!!!!!!!!!!!!

Lees meer Lees minder
4,0

1185 beoordelingen

5
624
4
216
3
196
2
40
1
109

Recent door jou bekeken

Waarom studenten kiezen voor Stuvia

Gemaakt door medestudenten, geverifieerd door reviews

Kwaliteit die je kunt vertrouwen: geschreven door studenten die slaagden en beoordeeld door anderen die dit document gebruikten.

Niet tevreden? Kies een ander document

Geen zorgen! Je kunt voor hetzelfde geld direct een ander document kiezen dat beter past bij wat je zoekt.

Betaal zoals je wilt, start meteen met leren

Geen abonnement, geen verplichtingen. Betaal zoals je gewend bent via iDeal of creditcard en download je PDF-document meteen.

Student with book image

“Gekocht, gedownload en geslaagd. Zo makkelijk kan het dus zijn.”

Alisha Student

Bezig met je bronvermelding?

Maak nauwkeurige citaten in APA, MLA en Harvard met onze gratis bronnengenerator.

Bezig met je bronvermelding?

Veelgestelde vragen