0% found this document useful (0 votes)
91 views

Name: Joseph Ascione Date: 4/10/2018: MET CS 669 Database Design and Implementation For Business Lab 4 Submission

Uploaded by

Israr Ahmad
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
91 views

Name: Joseph Ascione Date: 4/10/2018: MET CS 669 Database Design and Implementation For Business Lab 4 Submission

Uploaded by

Israr Ahmad
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 21

MET CS 669 Database Design and Implementation for Business

Lab 4 Submission

This submission template is a convenient document for you to provide the


screenshots and explanations for Lab 4. This submission template is
intended to be used in conjunction with the Lab 4 Instructions document.
The instructions document illustrates how to correctly execute each SQL
construct, explains important theoretical and practical details, and contains
the complete set of instructions on how to complete this lab.

Name: Joseph Ascione

Date: 4/10/2018

Page 1 of 21

Copyright 2013-2015 Boston University. All Rights Reserved.


Section One – Stored Procedures
1. ERD creation

3. Stored procedure creation

Page 2 of 21
5. Stored procedure execution

Page 3 of 21
7. Stored procedure execution failure

8. Reusable stored procedure creation

9. Reusable stored procedure execution

Page 4 of 21
10. Stored procedure execution verification

Page 5 of 21
11. Fourth argument stored procedure creation

Page 6 of 21
12. Fourth argument stored procedure execution

Page 7 of 21
13. Stored procedure execution verification

Page 8 of 21
14. Deletion stored procedure creation and execution

Page 9 of 21
Page 10 of 21
Section Two – Triggers

15. Trigger creation

16. Negative balance insertion

Page 11 of 21
17. Trigger verification

Page 12 of 21
18. Last name trigger creation

Page 13 of 21
19. Illegal insertion

Page 14 of 21
20. ERD creation with Item_price_history included

Page 15 of 21
21. Item trigger creation

22. Price changes and trigger verification

The first image shows that the price history table is empty. The two following images
show the difference between updating a row that does not exist in the history table and
one that does. The difference in affected rows indicates that if no rows are returned
from the update then the insert statement fires. The final image shows the updated
tables.

Page 16 of 21
Page 17 of 21
Page 18 of 21
Page 19 of 21
Use the Ask your Facilitator Discussion Board if you have any questions
regarding the how to approach this assignment.

Save your assignment as lastnameFirstname_lab4.doc and submit it in the


Assignments section of the course.

For help uploading files please refer to the Technical Support page in the syllabus.

Page 20 of 21
Your lab submission will be evaluated according to the following rubric.

Letter Qualities Demonstrated by the Lab Submission


Grade
The results and explanations are entirely complete and correct for all steps. There are absolutely
A+  100 no technical or other errors present. There is no known way to improve the logic and makeup of
any of the SQL constructs.
One insignificant technical or other error is present, but otherwise the results and explanations are
A  96 entirely complete and correct for all steps. Excluding the insignificant error, there is no known
way to improve the makeup of any of the SQL constructs.
One or two consequential technical or other errors are present, but otherwise the results and
A-  92 explanations are entirely complete and correct for all steps. Excluding the one or two errors, there
is no known way to improve the makeup of any of the SQL constructs.
A few steps have significantly incomplete or incorrect results or explanations. The results and
B+  88 explanations are complete and correct for the remainder of the steps. The logic and makeup of
most SQL constructs are sound.
Correctness, A few steps have significantly incomplete or incorrect results or explanations. The results and
completeness, explanations are mostly complete and correct for the remainder of the steps, with the exception of
and B  85
a few insignificant technical or other errors. The logic and makeup of most SQL constructs are
constitution sound.
Measures the
About ¼ of the steps have significantly incomplete or incorrect results or explanations. The
correctness and
B-  82 results and explanations are complete and correct for the remainder of the steps. The logic and
completeness of
makeup of at least ¾ of the SQL constructs are sound.
the results, and
the quality of About ¼ of the steps have significantly incomplete or incorrect results or explanations. The
the constitution results and explanations are mostly complete and correct for the remainder of the steps, with the
C+  78
of the SQL exception of a few insignificant technical or other errors. The logic and makeup of at least ¾ of
constructs the SQL constructs are sound.
About half of the steps have significantly incomplete or incorrect results or explanations. The
C  75 results and explanations are complete and correct for the remainder of the steps. The logic and
makeup of at least half of the SQL constructs are sound.
About half of the steps have significantly incomplete or incorrect results or explanations. The
results and explanations are mostly complete and correct for the remainder of the steps, with the
C-  72
exception of a few insignificant technical or other errors. The logic and makeup of at least half of
the SQL constructs are sound.
About ¾ of the steps have significantly incomplete or incorrect results or explanations. The
D  67 results and explanations are complete and correct for the remainder of the steps. The logic and
makeup of at least ¼ of the SQL constructs are sound
All or almost all of the steps have incomplete or incorrect results or explanations. The logic and
F0
makeup of all or almost all of the SQL constructs are unsound.

Page 21 of 21

You might also like