Create the delete customer and delete product procedures

Assignment Help Database Management System
Reference no: EM132114737

Database Systems - Stored Procedures and Stored Functions

Background

You are to create tables to store product and customer data.

You will create a number of stored procedures and functions (SPFs) to insert / update / delete / query data.

These SPFs will be called from
- Additional stored procedures that can be executed from anonymous blocks via SQL Developer
- A host application written in VB or C#

Some SPFs may modify data in multiple rows in multiple tables
This will require you to demonstrate the use of handling database transactions. Some SPFs may require data to be passed / returned using cursors

PART 1. Basic STORED PROCEDURES / FUNCTIONS and SQL DEVELOPER testing
Part 1.1. Create these stored procedures/function using SQL Developer

Test Strategy.
Write an anonymous block to test these stored procedures/functions.

PART 2. Cursors and SQL DEVELOPER testing
Part 2.1. Create these stored procedures/function using SQL Developer

Part 2.2.
Copy and paste the stored procedure/function code above into the file named Ass1_SQLCode.sql
Part 2.3.
Execute the following block of code in SQL Developer. (Change the student id on line 2)

PART 3. Check Constraints and SQL DEVELOPER testing
Part 3.1. Create these stored procedures/function using SQL Developer

Part 3.2.
Copy and paste the stored procedure/function code above into the file named Ass1_ Code.sql

Part 3.3.
Execute the following block of code in SQL Developer. (Change the student id on line 2)

PART 4. Complex Sale in SQL Developer
Part 4.1. Create these stored procedures/function using SQL Developer

Part 4.2.
Add the statement DELETE FROM SALE; to the top of the section named "TEST DELETION OF EXISTING DATA"
Add the following statements to TEST PART 4 section of the script

PART 5. Delete Complex Sale in SQL Developer
Part 5.1. Create these stored procedures/function using SQL Developer

Part 5.2.
Remove the statement DELETE FROM SALE; from the section named "TEST DELETION OF EXISTING DATA"
Replace it with the statement DELETE_ALL_SALES_VIASQLDEV;

PART 6. Custom-made exceptions for attempted deletion of child rows
Part 6.1. Create the Delete Customer and Delete Product procedures

Part 6.2.
Add the following statements to TEST PART 6 section of the script

PART 7. Visual Basic STORED PROCEDURES / FUNCTIONS and SQL DEVELOPER testing
Part 7.1. Create these stored procedures/function using SQL Developer

Create a VB or C# host application that calls stored procedures and functions from part 1.

Details:
Create a button (or menu item if you want to create a menu) for various requirements.

PART 8. Visual Basic / Cursors / Packages
Part 8.1. Create these stored procedures/function using SQL Developer

Modify the VB or C# application so that there are two additional buttons or menu options to retrieve all customer and product data.

PART 9. Visual Basic - remaining functionality
Part 9.1. Create these stored procedures/function using SQL Developer

Modify the VB or C# application so that there are additional buttons or menu options to retrieve carry out all other functionality that you have created in parts 4, 5 & 6.

Attachment:- Stored Procedures and Stored Functions.rar

Verified Expert

In this assignment we have studied Chicago database and performed analysis on the same by using IBM Watson Analytical tool. This tool is significant business BI and help to concert our query into discovery and we can collect a discovery into dashboard.

Reference no: EM132114737

Questions Cloud

Describe the music and subject matter of that work : Describe two (2) examples of how either black slaves or white abolitionists used literature or the visual arts as a form of protest against slavery.
List the combinations of yogurt and berries : Jerry has $12 a week to spend on yogurt and berries. The price of yogurt is $2, and berries are $4 a box. List the combinations of yogurt and berries.
What are the critical issues we must think about : What are the Critical Issues we must think about while designing a Lexical Scanner?
How do jerry consumption possibilities change : Jerry has $12 a week to spend on yogurt and berries. The price of yogurt is $2, and berries are $4 a box. How do Jerry's consumption possibilities change.
Create the delete customer and delete product procedures : INF60014 Database Systems Stored Procedures & Stored Functions - Create these stored procedures/function using SQL Developer
Calculate max marginal utility from windsurfing : Calculate Max's marginal utility from windsurfing at each number of hours per day. Does Max's marginal utility from windsurfing obey the principle.
Lab Report - Air recirculation through a duct-room system : Lab Report Assignment - Air recirculation through a duct-room system. Discuss the possible reasons that lead to errors in the measurement
Discuss the fact that the men of greece have not been home : Lysistrata is the name of the play, because she gathers the women to discuss the fact that the men of Greece haven't been home in a long time.
Describe how the reforms undertaken : Describe how the reforms undertaken during the president's tenure responded to populist demands.

Reviews

inf2114737

10/29/2018 2:16:59 AM

It is all about data base and I truly saying I am not at all good in this one, Experts Mind really helped me a lot in providing me the correct solution and before deadline..

len2114737

9/17/2018 3:09:52 AM

Part Brief Description Task 1 Develop and test SP/SFs to be executed within SQL Developer Pass 2 Develop and test SP/SFs that use cursors executed within SQL Developer Pass 3 Develop and test SP/SFs that utilise check constraints executed within SQL Developer Pass 4 Develop and test SP/SFs that add and retrieve complex sale data and is executed within SQL Developer Credit 5 Develop and test SP/SFs that deletes complex sale data and is executed within SQL Developer Credit 6 Develop and test SP/SFs that Delete Customer and Delete Product executed within SQL Developer Credit 7 Develop and test VB/C# code that calls SP/SFs from Part 1 Distinction 8 Develop and test VB/C# code to handle cursors from Part 2 Distinction 9 Develop and test VB/C# code to handle task 4,5,6 functionality Distinction

len2114737

9/17/2018 3:09:42 AM

The actual code writing within this assignment is not too difficult. Each block of code contains a few lines of code and can be easily tested. However there are a large number of these small blocks of code that need to be written and tested. This will take time. Don't leave this work to the last couple of days before the due date, as you will most likely run out of time.

len2114737

9/17/2018 3:08:55 AM

This assignment requires only one submission. The submission file must be called Ass1_SQLCode.sql Ensure that Ass1_SQLCode.sql contains all tasks that you have completed Submit Ass1_SQLCode.sql to MAT 1.1 P The SQL script must work with your Swinburne Oracle account. This assignment is marked with an automated script. You must use the names specified in this assignment outline at all times. If you do not use the specified name you will not pass that part

Write a Review

Database Management System Questions & Answers

  Knowledge and data warehousing

Design a dimensional model for analysing Purchases for Adventure Works Cycles and implement it as cubes using SQL Server Analysis Services. The AdventureWorks OLTP sample database is the data source for you BI analysis.

  Design a database schema

Design a Database schema

  Entity-relationship diagram

Create an entity-relationship diagram and design accompanying table layout using sound relational modeling practices and concepts.

  Implement a database of courses and students for a school

Implement a database of courses and students for a school.

  Prepare the e-r diagram for the movie database

Energy in the home, personal energy use and home energy efficiency and Efficient use of ‘waste' heat and renewable heat sources

  Design relation schemas for the entire database

Design relation schemas for the entire database.

  Prepare the relational schema for database

Prepare the relational schema for database

  Data modeling and normalization

Data Modeling and Normalization

  Use cases perform a requirements analysis for the case study

Use Cases Perform a requirements analysis for the Case Study

  Knowledge and data warehousing

Knowledge and Data Warehousing

  Stack and queue data structure

Identify and explain the differences between a stack and a queue data structure

  Practice on topic of normalization

Practice on topic of Normalization

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd