Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Practical Assignment Outcomes Learning Units 1 to 7 are covered in this assignment: At the end of this assessment, students should be able to: Compare
Practical Assignment Outcomes
Learning Units to are covered in this assignment:
At the end of this assessment, students should be able to:
Compare the features of PLSQL;
Compare the components of the PLSQL environment;
Distinguish between the types of PLSQL blocks;
Explain how to output messages using PLSQL
Construct PLSQL Blocks;
Design PLSQL Queries that use Variables, Construct a PLSQL query with a Cursor Explain how to deal with exceptions
Case Study
Study the following case study and answer the questions that are based thereon.
CHARITY AFRICA is a government initiative to allow individuals to donate their unwanted household items to a local charity store. All proceeds of the sale of the donations are provided to various charity organisations around the country, CHARITY AFRICA has grown from strength to strength due to excellent service and a wide variety of donations and a delivery service of large items, such as fridges and televisions, At present, all the data is stored in a flat file system. The charity at present is under pressure due to the increase in employees, customers, donators, donations, deliveries, returns and Invoices and require a database system to manage their data.
You have been contracted to perform the design and implementation of a database for CHARITY AFRICA. The charity store opened their doors to the public five years ago and require a database to manage all areas of their business.
The data in flat files has been provided:
CUSTOMER
CUSTOMER ID FIRSTNAME SURNAME ADDRESS CONTACTNUMBER EMAIL
Jack Smith Water Rd jsmith@isat.com
Pat Hendricks Water Rd ph@mcom.coza
Andre Clark Summer aclark@mcom.coza
Kevin Jones Lane
Mountain kj@isat.coza
Lucy Williams way
Main rd w@mcal.coza
EMPLOYEE
EMPLOYEEID FIRSTNAME SURNAME CONTACTNUMBER ADDRESS EMAIL
emp Jeff Davis main road land@isat.com
emp Kevin Marks water
road
km@isat.com
emp Adanya Andrews circle lane aa@isat.com
emp Adebayo Dryer sea road aryer@isat.com
emp Xolani Samson main road xosam@isat.com
DONATOR
DONATORID FIRSTNAME SURNAME CONTACT NUMBER EMAIL
Jeff Watson jwatson@ymail.com
Stephen Jones joness@ymail.com
James Joe j@isat.com
Kelly Ross kross@gsat.com
Abraham Clark aclark@ymail.com
DONATION
DONATION ID DONATOR ID DONATION PRICE DONATION DATE
KIC Fridge R May
Samsung inch
LCD R May
Sharp Microwave R May
Seat Dining room table R May
Lazyboy Sofa R May
VC Surround Sound System R May
DELIVERY
DELIVERY ID DELIVERY NOTES DISPATCHDATE DELIVERYDATE
Double packaging requested May May
Delivery to work address May May
Signature required May May
No notes May May
Birthday present wrapping required May May
Delivery to work address May May
RETURNS
RETURN ID RETURN DATE REASON CUSTOMER ID DONATIONID EMPLOYEEID
ret May Customer not satisfied with product
emp
ret May Product had broken section emp
INVOICE
INVOICE NUM CUSTOMER ID INVOICE DATE EMPLOYEE ID DONATION ID DELIVERY ID
May emp
May emp
May emp
May emp
May emp
May emp
Refer to Appendix A for all Marking rubrics.
Question Marks:
You will need to create the above tables to complete this Assignment.
Please create the tables and populate them using SQL Developer or SQL Plus.
Requirement Mark
Tables created successfully
Tables populated successfully
TOTAL
Question
Marks:
CHARITY AFRICA requires a report containing the combined customer name, employee id delivery notes, donation purchased and the invoice number. Create a SQL query to generate the required report. In your query, only display the results that have any invoice date before May
Question
Marks:
Management of CHARITY AFRICA would like to add a new table called Funding that at present will not have any referential integrity. The organisation would like an automatically generated unique id every time a record is inserted into the new table. The attributes the table must contain for now are fundingid funder, and funding amount.
Create the new table and implement a solution to automatically generate the unique ids with every new insert, In your solution provide an example of the insert statement.
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started