Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Create a package named PLEDGE_PKG that includes two functions for determining dates of pledge payments. Use or create the functions described below: Function1: Determining a

Create a package named PLEDGE_PKG that includes two functions for determining dates of pledge payments. Use or create the functions described below:

Function1: Determining a Pledge's First Payment Date

Create a function named DD_PAYDATE1_PF that determines the first payment due date for a pledge based on pledge ID. The first payment due date is always the first day of the month after the date the pledge was made, even if a pledge is made on the first of a month. Keep in mind that a pledge made in December should reflect a first payment date with the following year.

Function2: Determining a Pledge's Final Payment Date

Create a function named DD_PAYEND_PF that determines the final payment date for a pledge based on pledge ID. Use the function DD_PAYDATE1_PF in this new function to help with the task. If the donation pledge indicates a lump sum payment, the final payment date is the same as the first payment date.

Test both functions with a specific pledge ID, using an anonymous block. Then test both functions in a single query showing all pledges and associated payment dates.

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image_2

Step: 3

blur-text-image_3

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

SQL For Data Science Data Cleaning Wrangling And Analytics With Relational Databases

Authors: Antonio Badia

1st Edition

3030575918, 978-3030575915

More Books

Students also viewed these Databases questions

Question

Discuss the role of change as part of organizational planning.

Answered: 1 week ago

Question

2. What potential barriers would you encourage Samuel to avoid?

Answered: 1 week ago

Question

6. How would you design your ideal position?

Answered: 1 week ago