Question: Case Study Study the following case study and answer the questions that are based thereon. CHARITY 4 AFRICA is a government initiative to allow individuals

Case Study
Study the following case study and answer the questions that are based thereon.
CHARITY 4 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 4 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 4 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
\table[[CUSTOMER_ID,FIRST_NAME,SURNAME,ADDRESS,CONTACT_NUMBER,EMAIL],[11011,Jack,Smith,18 Water Rd,0877277521,jsmith@ isat.com],[11012,Pat,Hendricks,22 Water Rd,0863257857,ph@ mcom.co.za],[11013,Andre,Clark,\table[[101 Summer],[Lane]],0834567891,aclark@ mcom.co.za],[11014,Kevin,Jones,\table[[55 Mountain],[way]],0612547895,kj@ isat.co.za],[11015,Lucy,Williams,5 Main rd,0827238521,Iw@ mcal.co.za]]
EMPLOYEE
\table[[EMPLOYEE_ID,FIRST_NAME,SURNAME,CONTACT_NUMBER,ADDRESS,EMAIL],[emp101,Jeff,Davis,0877277521,10 main road,jand@ isat.com],[emp102,Kevin,Marks,0837377522,\table[[18 water],[road]],km@ isat.com],[emp103,Adanya,Andrews,0817117523,21 circle lane,aa@ isat.com],[emp104,Adebayo,Dryer,0797215244,1 sea road,aryer@ isat.com],[emp105,Xolani,Samson,0827122255,12 main road,xosam@ isat.com]]
DONATOR
\table[[DONATOR_ID,FIRST_NAME,SURNAME,CONTACT_NUMBER,EMAIL],[20111,Jeff,Watson,0827172250,jwatson@ymail.com],[20112,Stephen,Jones,0837865670,joness@ymail.com],[20113,James,Joe,0878978650,jj@ isat.com],[20114,Kelly,Ross,0826575650,kross@gsat.com],[20115,Abraham,Clark,0797656430,aclark@ymail.com]]
DONATION
\table[[DONATION_ID,DONATOR_ID,DONATION,PRICE,DONATION_DATE],[7111,20111,KIC Fridge,R 599,1 May 2024],[7112,20112,\table[[Samsung 42 inch],[LCD]],R 1299,3 May 2024],[7113,20113,Sharp Microwave,R 1599,3 May 2024],[7114,20115,\table[[6 Seat Dining room],[table]],R 799,5 May 2024],[7115,20114,Lazyboy Sofa,R 1199,7 May 2024],[7116,20113,\table[[JVC Surround],[Sound System]],R 179,9 May 2024]]
DELIVERY
\table[[DELIVERY_ID,DELIVERY_NOTES,DISPATCH_DATE,DELIVERY_DATE],[511,Double packaging requested,10 May 2024,15 May 2024],[512,Delivery to work address,12 May 2024,15 May 2024],[513,Signature required,12 May 2024,17 May 2024],[514,No notes,12 May 2024,15 May 2024],[515,Birthday present wrapping required,18 May 2024,19 May 2024],[516,Delivery to work address,20 May 2024,25 May 2024]]
RETURNS
\table[[RETURN_ID,RETURN_DATE,REASON,CUSTOMER_ID,DONATION_ID,EMPLOYEE_ID],[ret001,25 May 2024,\table[[Customer not],[satisfied with],[product]],11011,7116,emp101],[ret002,25 May 2024,\table[[Product had],[broken section]],11013,7114,emp103]]
INVOICE
\table[[INVOICE_NUM,CUSTOMER_ID,INVOICE_DATE,EMPLOYEE_ID,DONATION_ID,DELIVERY_ID],[8111,11011,15 May 2024,emp103,7111,511],[8112,11013,15 May 2024,emp101,7114,512],[8113,11012,17 May 2024,emp101,7112,513],[8114,11015,17 May 2024,emp102,7113,514],[8115,11011,17 May 2024,emp102,7115,515],[8116,11015,18 May 2024,emp103,7116,516]]
Question 1
(Marks: 10)
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.
\table[[Requirement,Mark],[Tables created successfully,5],[Tables populated successfully,5],[TOTAL,10]]
Question 2
(Marks: 5)
CHARITY 4 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 18 May 2024.
Sample Results
\table[[8 CUSTONER,10 EMPLOVEE_D,DELNEEr_MOTES,[0 DONation,],[1 Jack, Smith,emp 103,Double packaging reqested,kIC Fridge,811115MRr24
Question 3
(Marks: 10)
Management of CHARITY 4 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 funding_id, 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.
Question 4
(Marks: 10)
Create a PL/SQL query to display the combined customer name, donation purchased, donation price and the reason that the d
 Case Study Study the following case study and answer the questions

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!