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 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
tableCUSTOMERIDFIRSTNAME,SURNAME,ADDRESS,CONTACTNUMBER,EMAILJack,Smith, Water Rdjsmith@ isat.comPat,Hendricks, Water Rdph@ mcom.cozaAndre,Clark,table SummerLaneaclark@ mcom.cozaKevin,Jones,table Mountainwaykj@ isat.cozaLucy,Williams, Main rdIw@ mcal.coza
EMPLOYEE
tableEMPLOYEEIDFIRSTNAME,SURNAME,CONTACTNUMBER,ADDRESS,EMAILempJeff,Davis, main road,jand@ isat.comempKevin,Marks,table waterroadkm@ isat.comempAdanya,Andrews, circle lane,aa@ isat.comempAdebayo,Dryer, sea road,aryer@ isat.comempXolani,Samson, main road,xosam@ isat.com
DONATOR
tableDONATORIDFIRSTNAME,SURNAME,CONTACTNUMBER,EMAILJeff,Watson,jwatson@ymail.comStephen,Jones,joness@ymail.comJames,Joe,jj@ isat.comKelly,Ross,kross@gsat.comAbraham,Clark,aclark@ymail.com
DONATION
tableDONATIONIDDONATORIDDONATION,PRICE,DONATIONDATEKIC Fridge,R May tableSamsung inchLCDR May Sharp Microwave,R May table Seat Dining roomtableR May Lazyboy Sofa,R May tableJVC SurroundSound SystemR May
DELIVERY
tableDELIVERYIDDELIVERYNOTES,DISPATCHDATE,DELIVERYDATEDouble 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
tableRETURNIDRETURNDATE,REASON,CUSTOMERIDDONATIONIDEMPLOYEEIDret May tableCustomer notsatisfied withproductempret May tableProduct hadbroken sectionemp
INVOICE
tableINVOICENUM,CUSTOMERIDINVOICEDATE,EMPLOYEEIDDONATIONIDDELIVERYID May emp May emp May emp May emp May emp May emp
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 SQLPlus
tableRequirementMarkTables 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
Sample Results
table CUSTONER, EMPLOVEEDDELNEErMOTES, DONation, Jack, Smith,emp Double packaging reqested,kIC Fridge,
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.
Question
Marks:
Create a PLSQL query to display the combined customer name, donation purchased, donation price and the reason that the d
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
