Statements to perform the tasks

Assignment Help Business Management
Reference no: EM131511471

DoGood Donor team requested data for the following queries. Write SQL statements to perform the following tasks:

  • List each donor who is from Norfolk, VA. Include first name, last name, pledge date, and pledge amount.
  • List each month in year 2012 and the total amount of pledge payments made in that month. Display the month name, year and the total amount.
  • Find out the project, which had the highest number of credit card payments. Display the project id, name, project fund goal and the number of credit card pledge payments. (Hint: Use cc for the credit card pledge payment type.)
  • Display the donors who have made more than one pledge. Include the donor ID, first name, last name and number of pledges.
  • Display all pledges made before September 01, 2012. Include all column data from the DD_PLEDGE table.

The DoGood Donor application contains a page that allows administrators to change the ID assigned to a donor in the DD_DONOR table. Create a PL/SQL block to handle this task. Include exception-handling code to address an error raised by attempting to enter a duplicate donor ID. If this error occurs, display the message "This ID is already assigned." Test the code by changing donor ID 305. (Do not include a COMMIT statement; roll back any DML actions used.)

Brewbeans wants to offer an incentive of free shipping to customers who have not returned to the site since a specified date. Create a procedure named PROMO_SHIP_SP that determines who these customers are and then updates the BB_PROMOLIST table accordingly. The procedure uses the following information:

  • Date cutoff - Any customers who have not shopped on the site since this date should be included as incentive participants. Use the basket creation date to reflect shopper activity dates.
  • Month - A three-character month (such as APR) should be added to the promotion table to indicate which month free shipping is effective.
  • Year - A four-digit year indicates the year the promotion is effective.
  • promo_flag - 1 represents free shipping.
  • The BB_PROMOLIST table also has a USED column, which contains the default value "N", and is updated to "Y" when the shopper uses the promotion. Test the procedure with the cutoff date 15-FEB-12. Assign free shipping for the month APR and the year 2012.

When a Brewbeans shopper returns to the Web site to check an order's status, information from the BB_BASKETSTATUS table is displayed. However, only the status code is available in the BB_BASKETSTATUS table, not the status description. Create a function named STATUS_DESC_SF that accepts a stage ID and returns the status description. The descriptions for stage IDs are listed in the table. Test the function in a SELECT statement that retrieves all rows in the BB_BASKETSTATUS table for basket 4 and displays the stage ID and its description.

Reference no: EM131511471

Questions Cloud

What price would you estimate for halliford? stock : Halliford Corporation expects to have earnings this coming year of $2.985 per share. what price would you estimate for Halliford? stock?
Both claimed that sarbanes-oxley was to blame : Both claimed that Sarbanes-Oxley was to blame.
What is the impact on a marriage when they are absent : What is the impact on a marriage when they are absent? Compare your choices with those of your classmates.
What is the future value of this annuity : What is the future value (FV) of this annuity at the end of that 53 years given that the discount rate is 9%?
Statements to perform the tasks : DoGood Donor team requested data for the following queries. Write SQL statements to perform the following tasks:
How clear was the intent of the discussion : How clear was the intent of the discussion?How prepared were your group members for the discussion?
Accepts a number of eggs for each chicken : Modify the Eggs program to create a new one named Eggs Interactive that prompts the user for and accepts a number of eggs for each chicken.
Recent capital expenditures for security software : The Chief Financial Officer (CFO) made some complaints to the CEO regarding recent capital expenditures for security software.
Discuss about the state political cultures : With so many different state political cultures it is very difficult to create an all encompassing solution to more controversial issues that our nation faces.

Reviews

Write a Review

Business Management Questions & Answers

  Conflict between management and stockholders of company

Summary of the research paper using APA style (word or PDF, at least 4 pages not including a cover page and a reference page). At least 3 related research papers that discuss an approach related to the one you have selected (the title and pdf files)

  World most challenging problems

Few companies have had such a long history of ups and downs as IBM. What were some of the keys to its recent success? Can its plans to solve some of the world's most challenging problems succeed? Why or why not?

  Design a promotional message or theme

Define your promotional objectives. What specific results do you hope to accomplish, and which promotional tools will be responsible?

  Analyzing the current situation

After analyzing the current situation, the consultant proposes to hire a second cashier at a rate of 9$ an hour to serve the same line that the first cashier service.  What is the probability of finding both cashiers busy?

  Create service delivery strategies

Strategy can take several forms. Healthcare organizations will use directional strategy, adaptive strategy, market entry strategy, and/or competitive strategy at any time.

  Management at a company

Management at a Company

  Job analysis for a chief financial officer

Make a 5to7 PowerPoint slide of a job analysis for a Chief Financial Officer of a healthcare center and include recommendations on one internal and one external recruiting method.

  Traditional or commercial marketing with social marketing

As best you can, explain the concept of the "marketing mix" and it four components (the four "P"s). Be as specific as you can and provide examples of each. Briefly compare and contrast traditional or commercial marketing with social marketing.

  What is the role of a pilot project in information systems

What is the role of a pilot project in information systems analysis

  Important information about business communication

important information about business communication trendsassignment business communication trends paperresources

  Stages of new product developmentjenny wood was already

stages of new product developmentjenny wood was already selling jennys country kitchen gourmet cocoa mixes at local

  Low cost-of-living area to a high cost-of-living area

Discuss compensation options available to employers when transferring an employee from a low cost-of-living area to a high cost-of-living area.

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