Develop and run a create function statement

Assignment Help PL-SQL Programming
Reference no: EM131770597

Assignment 1: Creating a Procedure

Create a procedure named DDPAY_SP that identities whether a donor currently has an active pledge with monthly payments. A donor ID is the input to the procedure. Using the donor ID.the procedure needs to determine whether the donor has any currently active pledges based on the status field and is on a monthly payment plan. If so.the procedure is to return the Boolean value TRUE. Othenvise.the value FALSE should be returned. Test the procedure with an anonymous block.

Assignment 2: Creating a Procedure

Create a procedure named DDCRPAY_SP that confirms whether a monthly pledge payment is the correct amount. The procedure needs to accept two values as input: a payment amount and a pledge ID. Based on these inputs.the procedure should confirm that the payment is the correct monthly increment amount. based on pledge data in the database. If it isn't.a custom Oracle error using error number 20050 and the message "Incorrect payment amount - planned payment = ??" should be raised. The ??should be replaced by the correct payment amount. The database query in the procedure should be formulated so that no rows are returned if the pledge isn't on a monthly payment plan or the pledge isn't found. If the query returns no rows.the procedure should display the message "No payment information: Test the procedure with the pledge ID 104 and the payment amount 525. Then test with the same pledge ID but the payment amount 520. Finally.test the procedure with a pledge ID for a pledge that doesn't have monthly payments associated with it.

Assignment 3: Creating a Procedure

Create a procedure named DDCKBAL_SP that verifies pledge payment information. The procedure should accept a pledge ID as input and return three values for the specified pledge: pledge amount. payment total to date, and remaining balance. Test the procedure with an anonymous block.

1. Develop and run a CREATE FUNCTION statement to create the Ntaf_PURCH_SP function. The function code needs to tally the number of orders (using an Oracle built-in function) by shopper. Keep in mind that the ORDERPLACED column contains a 1 if an order has been placed.

2. Create a SELECT query by using the NUM_PURCH_SF function on the IDSHOPPER column of the BB_SHOPPER table. Be sure to select only shopper 23.

Reference no: EM131770597

Questions Cloud

Compute the number of common stock shares outstanding : Conn Man's Shops, Inc., a national clothing chain, had sales of $400 million last year. The business has a steady net profit margin of 9 percent.
Discuss what is the amount manning will receive on the sale : Denver National Bank, which demands interest on the note of 10% compounded semiannually. What is the amount Manning will receive on the sale of the note
How are fixed and variable costs associated : How are fixed and variable costs associated with manufacturing and sales cost of Tesla Motors production? Source?
Current cost of goods sold : What is considered to be current cost of goods sold and what about profitability for Tesla Motors Model S? Source?
Develop and run a create function statement : Create a procedure named DDPAY_SP that identities whether a donor currently has an active pledge with monthly payments. A donor ID is the input to the procedure
Discuss the relevance of each of these two values : List the book values and fair values for these equity method investments that have publically traded data. Discuss the relevance of each of these two values
Formulate a picot statement using the picot format provided : Formulate a PICOT statement using the PICOT format provided in the assigned readings. The PICOT statement will provide a framework for your capstone project.
Discuss the modified accelerated cost recovery system : the depreciation expense, accumulated depreciation, and book value for each year under the Modified Accelerated Cost Recovery System
Explain type of health care initiatives that have been tried : Explain the types of health care initiatives that have been tried by other organizations specifically for the primary health care concern or the population.

Reviews

Write a Review

PL-SQL Programming Questions & Answers

  Display all the lastnames from the customers table

Display all the LastNames from the Customers table and any associated OrdersIDs from the Orders Table. Show the LastName even if they do not have any associated orders. Order the results by LastName in ascending order.

  Provide a comprehensive record of using sql

Learning Objectives: The purpose of Project 3 is to enable the students to gain extensive experience with using SQL to design and query databases.

  Create simple reports in an oracle database

laboratory provides practice in the use of SQL commands to create simple reports in an Oracle database

  Describe all system privileges found in sql server

Describe all system privileges found in SQL Server

  Display all the lastnames from the customers

Display all the LastNames from the Customers table and any associated OrdersIDs from the Orders Table. Show the LastName even if they do not have any associated orders. Order the results by LastName in ascending order.

  Create a new database in sql server and run

Create a new database in SQL Server and run the following CREATE TABLE commands. Note that you must run the CREATE TABLE statements in the order presented (and load the data in the order presented) to avoid conflicts resulting from foreign key con..

  Standard server and the ms sql standard database

In assignment 2 you will be installing Windows 2012 Standard Server and the MS SQL Standard database. In order to do this, you should have a set approach that outlines  what you need to do, how to do it, in what order and why you are doing it. You ..

  Develop and demonstrate sql skills

Write a script that provides all of the information in, and duplicates the formatting of, Oracle's SQL*Plus describe command. Additionally, the output should add the comments on the rows.

  Find certain governors general of australia

Find all Leaders of the Opposition and their date of appointment, who assumed their position after 01/01/1980 and For each Leader of the Opposition listed, add their wife's name and their date of marriage.

  Create a form for the table customer

Create a form for the table CUSTOMER with all fields except Postcode. Choose ‘Tabular' layout - Write an UPDATE Query and increase the prices of products

  Add three rows to the downloads

Add three rows to the Downloads table: one row for user 1 and product 2; one for user 2 and product 1; and one for user 2 and product 2. Use the GETDATE function to insert the current date and time into the DownloadDate column.

  Illustrate the process of normalizing

Evaluate if the table shown above is normalized, if not describe and illustrate the process of normalizing the table shown above to third normal form. State any assumptions you make about the data shown in this table.

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