Question: Writing Data Definition Script, Load Data v 2 To complete this assignment, you are to script the Data Definition Language ( DDL ) to create
Writing Data Definition Script, Load Data v
To complete this assignment, you are to script the Data Definition Language DDL to create the
Sunny Skies Landscaping LLC database, tables, foreign key constraints, and other constraints
that were added to the database in last weeks assignments.
Include the create and drop commands
Write the DDL to form the new tables. Steps to follow:
a Append to the script file that was written prior for Sunny Skies Landscaping LLC Prior
to this assignment, the script should hold:
i Drop and Create commands for the Sunny Skies Landscaping LLC database.
ii Drop and Create commands for the following tables:
Customers
Jobs
CustomersJobs
iii. The data loads for tables above.
iv Drop and create commands for the stored procedures written thus far.
b Appending to the script, write the DDL to drop, if exists, and create the following
tables:
i Employees
ii CustomersJobsEmployees
Note: Boolean, true false fields should use TINYINT data type with
indicated false and indicating true.
c After writing the DDL for each object, test the script to make sure it runs as
expected. Dont forget to script the primary and foreign key constraints.
Append to the script above to load the following data into the Employees table. Use the
default value for the EmployeeID field.
First Name: Sunny
Last Name: Sky
Email Address: Sunny.Sky@SomeDomain.com
First Name: Mary
Last Name: Patterson
Email Address: Mary.Patterson@SomeDomain.com
First Name: Jeff
Last Name: Firrelli
Email Address: Jeff.Firrelli@SomeDomain.com
First Name: William
Last Name: Patterson
Email Address: William.Patterson@SomeDomain.com
First Name: Gerard
Last Name: Bondur
Email Address: Gerard.Bondur@SomeDomain.com
First Name: Anthony
Last Name: Bow
Email Address: Anthony.Bow@SomeDomain.com
Append to the script above to load the following data in the CustomersJobsEmployees table.
The following Employees are scheduled:
CustomerID:
JobID:
Scheduled On: XXXX
Employees:
Jeff Firrelli Team Lead
William Patterson
CustomerID:
JobID:
Scheduled On: XXXX
Employees:
Gerard Bondur Team Lead
Anthony Bow
Append to the Enhanced Entity Relationship Diagram EER diagram the Employees and the
CustomersJobsEmployees tables, including all primary keys, foreign keys, and relationships.
Capture this as a screenshot.
Upload the completed script sql file and the screenshot from above to this assignment
dropbox.
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
