Write sql statements to perform

Assignment Help Business Management
Reference no: EM131512719

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: EM131512719

Questions Cloud

Case study based on maintenance practices : A case study based on maintenance practices in the mining industry need to create individual reports/maps/trees excel based decision tree,IO Map.
What will the supplies drugs and devices cost : What will the supplies, drugs, and/or devices cost? How much space will be required? Are renovation costs involved? What will the required space occupancy cost?
Describe principles of effective interpersonal communication : COIT20249 Assessment - Portfolio. Describe basic principles and importance of effective interpersonal communication, active listening and reading for meaning
Discuss what makes this section strong : Discuss what makes this section strong. Why is this part of your newsletter particularly beneficial to the parents in your community?
Write sql statements to perform : DoGood Donor team requested data for the following queries. Write SQL statements to perform the following tasks:
Hold the number of eggs produced in a month : Write a program named Eggs that declares four variables to hold the number of eggs produced in a month by each of four chickens, and assign a value.
Identify areas of interest on google earth : Briefly describe what topic you have selected, why you have selected the topic and list some datasets that you would like to use in your project.
Identify existing barrier to organisational learning at bank : Identify the existing barriers to the organisational learning at the Bank. Explain repeated ethical scandals through lens of organisational learning theories.
Adversaries and threats-potential weakness : State at least three potential weaknesses for the product or service deploying this technology.

Reviews

Write a Review

Business Management Questions & Answers

  Small businesses are essential to the american economy

Where have you seen it work well and what factors should you consider when choosing a motivational approach?

  Why do performance appraisal systems fail

Why do performance appraisal systems fail - Include more real examples either in diagram, table, videos or pictures.

  Will building trust with stakeholders help entities

ORG-807: How critical is it for governmental entities and organizations reliant on government contracts to build trust with stakeholders? Why? Will building trust with stakeholders help these entities remain within contractual guidelines? Why or w..

  Domestic events that could affect management careersexplain

domestic events that could affect management careersexplain an event global or domestic in nature which could affect

  Identify steve jobs sources of personal and position power

Identify Steve Jobs' sources of personal and position power. Justify your reasoning. Assess the implications of Steve Jobs' influence inside and outside the company.

  Participation and consultation process

Explain why it is essential that an organisation provides WHS outcomes that come from the participation and consultation process.

  Small business administration

The (SBA) Small Business Administration  www.sba.gov (Links to an external site.) , provides many tools and services to assist small businesses, including a new start up business or an existing company.  Research SBA and Watch Warren Brown's story..

  What is the realized return

a) What is the realized return? b) How much of the return came from individual yield and how much came from capital gain?

  Project to create a change management checklist

Recommend that you lead a project to create a change management checklist that will be rolled out to the managers in your organization.

  What you need to do to get the savings plan back on track

With only $140,000 in the fund and 10 years remaining until your first child starts university, what annual rate of return would the fund have to make for you to reach your $420,000 goal if you add nothing to the account?

  Management of business firms and other enterprises

What is forecasting and why is it so important in the management of business firms and other enterprises?

  Employee performance appraisals

Discuss fully how can the contemporary manager utilize employee performance appraisals?

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