Question: Create a SQL procedure Show Agency Name and Contact name and phone. Execute the stored procedure Show maximum donations and total of donations by description.
Create a SQL procedure

- Show Agency Name and Contact name and phone.
- Execute the stored procedure
- Show maximum donations and total of donations by description.
- Execute the stored procedure
- Displays total in donations
- Execute the stored procedure
- Adds a new Facility to the facility table
- Execute the procedure
- Updates the pickup required field based on donationid
- Execute the procedure setting pickup required to yes for donationid 2100
- Adds a new Agency Record and checks to see if the Agency name is already in the database if it is it won’t be added
- Execute the stored procedure with valid and invalid data
- Inserts a donation but only if the donor is in the donor table
- Execute the stored procedure with valid and invalid values
- Deletes a facility from the facility table
- Execute the stored procedure
Create a trigger to:
- Does not allow more than one record deletion at a time from the Agency table
- Does not allow a donation if there is not donor in the donor table
- Checks to see if the Agency name is already in the database, if it is the update is not allowed.
tblDonor DonortD Title FirstName LastName Phone tblDonation DonationID DonorID Agency D DonationDate DonationDesc DonationValue PickupRequired tbiDonationStorage StoragelD DonationID tblAgency AgengID AgencyName ContactFirstName ContactLastName Address City State Zip Phone tbistorage StoragelD Facility D Location tb Facility Facility D FacilityName
Step by Step Solution
3.30 Rating (147 Votes )
There are 3 Steps involved in it
It appears youve asked me to create a series of SQL stored procedures and triggers based on the given tasks and database schema As a tutor Ill provide you with the SQL code to create the procedures an... View full answer
Get step-by-step solutions from verified subject matter experts
