Question: 3. Create a PL/SQL anonymous block to insert a new project in DoGood Donor database. Create and use a sequence to handle generating and populating

3. Create a PL/SQL anonymous block to insert a new project in DoGood Donor database. Create and use a sequence to handle generating and populating the project ID. The first number issue by the sequence should be 800, and no caching should be used. Use a record variable to handle the data to be added. Data for the new row should be the following: project name is Covid-19 relief fund, start date: Feb 1, 2023, end date: Jun 30, 2023, and fundraising goal is half million. Any columns not addressed in the data list are currently unknown.

4.Create anonymous block to retrieve and display data for all pledges made in a specified month. One row of output should be displayed for each pledge. More specifically, each row include:

a. Pledge ID, donor ID, and pledge amount

b. If the pledge is being paid in a lump sum, display Lump Sum

c. If the pledge is being paid in monthly, display Monthly ** followed by number of months for payment

d. The list should be sorted to display all lump sum pledges first

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!