Create in PL/SQL a stored Function

Assignment Help Database Management System
Reference no: EM133117755

Assignment - Induction to databases

Question 1) Open SQL Developer then load the Schema_creation.sql and table_population.sql scripts to create and populate the tables discussed in assignment 1. Open a new SQL worksheet then write the PL/SQL code that creates the follawing objects.

Question 2) Create in PL/SQL a stored procedure called 'Del_Details' to delete the record of orderedProduct table for which it receives as input the order number (orderNO) and the product number (produetNO).

Question 3) Create in PL/SQL a stored Function called 'productPerOrder' to return the number of products placed for any order its number is given as input.

Question 4) Write a Trigger called 'changeCustomer_Category'. This trigger should be invoked before any update of customer balance in customer table. Its job is to modify the category of a customer from B2 to B1 and from C2 to C1 when a customer's balance status drops below a certain threshold (-10000).[2]

Question 5) Save the script as assigrunent2_yourID then submit this file.

Reference no: EM133117755

Questions Cloud

What is the total present value : What is the total present value of $30 received at the end id year one, $500 received in year four, and $200 received in year sixth if the discount rate is 7%
Calculate the issue price of the bonds and record issuance : On January 1, 2017, Whitefeather Industries issued 1,100, $1,000 face value bonds. Calculate the issue price of the bonds and record issuance
Explain standards of privacy-security : Explain the standards of privacy, security, and confidentiality involved. Explain what laws, policies, and regulations were violated.
What was the stock return for the missing year : The average return of the stock over this period was 10.3 percent. What was the stock return for the missing year
Create in PL/SQL a stored Function : Create in PL/SQL a stored Function called 'productPerOrder' to return the number of products placed for any order its number is given as input
Prepare classified balance sheet using the balances listed : The note is payable over 3 years and $8,000 will be paid by September 30, 2019. Prepare classified balance sheet using the balances listed
Determine the break-even point in units and dollars : Equation method - Zachary Corporation produces products that it sells for $20 each. Determine the break-even point in units and dollars
Calculate the after tax of debt : Question - A firm has outstanding 11% coupon bonds that have a yield to maturity of 8%. Calculate the after tax of debt
Ethical manner in regards to their stakeholders : Explain what ethics is all about and why managers and business entities should act in an ethical manner in regards to their stakeholders.

Reviews

Write a Review

Database Management System Questions & Answers

  Write appropriate connectivities and cardinalities in erd

A department employs many employees, but each employee is employed by only one department.

  Identify the degree and cardinalities of the relationship

A piano manufacturer wants to track all pianos it makes. Each piano has a unique serial number and a manufacturing completion date. Each instrument represents exactly one piano model, all of which have an identification number and model.

  Describe your idea of the database

Imagine that you have been hired by a company to build a database for it and complete the following tasks - modeling of business requirements and understand the physical implementation of logical business models through the use of E-R models.

  Whats the difference between a filter and a query

Whats the difference between a filter and a query

  List three skus that were purchased most frequently together

List the SKU which was purchased the most. List the three SKUs that were purchased most frequently together. List the four SKUs that were purchased most frequently together.

  Project - automatic pill dispenser

Automatic Pill dispenser - NodeMCU which will Be control from a mobile app to put in the 4 different prescriptions at a certain times and amount of pill to take

  Make sure to identify all the entities and their attributes

Normalize the below Orders table to 3NF. Make sure to identify all the entities and their attributes, especially if you make any new items (such as entity or attributes).

  Evaluate your data warehouse data using given information

This week you will continue your work on the project to evaluate higher education student aid data. You will evaluate your data warehouse data to ensure it can.

  Discuss which dbms your program is going to use

Before you begin, you need to discuss which database management system your program is going to use. The Web service has database connection ability.

  Describe the methods of object-oriented design using uml

Describe the methods of object-oriented design using UML

  Create a new microsoft access database named drycleaning

Create a new Microsoft Access database named DryCleaning. Add a table named Customers. In Microsoft Word, type the SQL script that you would use to create the table. Include the following fields: CustomerNumber (AutoNumber, Primary Key, required)

  Significant impact on businesses and industries

We have viewed how Blockchain has made a significant impact on businesses and industries.

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