Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

CASE STUDY Study the following case study and answer the questions that are based thereon. COINS 4 AFRICA is a privately-owned online store producing high

image text in transcribed
image text in transcribed
image text in transcribed
image text in transcribed
image text in transcribed
image text in transcribed
CASE STUDY Study the following case study and answer the questions that are based thereon. COINS 4 AFRICA is a privately-owned online store producing high quality currency and commemorative coins. COINS 4 AFRICA has grown from strength to strength due to excellent service and a wide variety of coins and delivery options which at present is all stored in a flat file system. The company at present is under pressure due to the increase in customers, employees, deliveries, coins and invoices. You have been contracted to perform the design and implementation of a database for COINS 4 AFRICA. The company opened their doors to the public five years ago and requires 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 Mat Smith 18 Water Rd 0877277521 11012 Julien msmith@isat.com jh@mcom.co.za Hendricks 22 Water Rd 0863257857 11013 Sam Clark 101 Summer 0834567891 sclark@mcom.co.za Lane 11014 Kevin Jones 55 0612547895 kj@isat.co.za Mountain Way 11015 Lucy Williams 5 Main Rd 0827238521 lw@mcal.co.za EMPLOYEE TABLE EMPLOYEE_ID FIRST SURNAME CONTACT DEPARTMENT ADDRESS EMAIL NAME NUMBER emp 101 Xander Davis 0877277521 sales 10 Main xand@isat.com Road emp 102 Steven Marks 0837377522 marketing 18 Water sm@isat.com Road emp 103 Jessica Andrews 0817117523 sales 21 Circle ja@isat.com Lane emp 104 Wayne Dryer 0797215244 sales emp105 Xolani Samson 0827122255 manager 1 Sea Road dryer@isat.com 12 Main xosam@isat.com Road COIN_DELIVERY TABLE DELIVERY_ID DISPATCH_DATE DELIVERY_DATE 511 DELIVERY_NOTES Double packaging requested Delivery to work address Signature required 15 May 2021 512 10 May 2021 12 May 2021 513 15 May 2021 17 May 2021 12 May 2021 514 No notes 12 May 2021 15 May 2021 515 516 Birthday present wrapping required Delivery to work address Double packaging requested 18 May 2021 20 May 2021 19 May 2021 25 May 2021 517 25 May 2021 27 May 2021 COIN TABLE COIN_ID PRODUCT PRICE QTY 7111 R 5999 10 7112 R 12 999 8 1oz Gold Kruger Rand 1oz Silver Kruger Rand Gold Big 5 Uncirculated Silver Big 5 Pack 7113 R 15 999 8 7114 R 7999 un 7115 R 11 999 15 1oz Gold Palaeontology 102 Silver Palaeontology 7116 R 7999 12 COIN_RETURNS TABLE RETURN_ID RETURN_DATE REASON CUSTOMER ID COIN_ID EMPLOYEE_ID ret001 25 May 2021 Customer not satisfied 11011 7116 emp101 with product Product missing part ret002 25 May 2021 11013 7114 emp103 INVOICE TABLE INVOICE_NUM CUSTOMER_ID INVOICE_DATE EMPLOYEE_ID COIN_ID DELIVERY_ID 8111 11011 emp103 7111 511 8112 11013 15 May 2021 15 May 2021 17 May 2021 7116 512 8113 emp101 emp101 11012 7112 513 8114 11015 emp102 7111 514 8115 11011 7115 515 17 May 2021 17 May 2021 18 May 2021 19 May 2021 8116 11015 emp102 emp103 emp105 7115 516 8117 11012 7112 517 8118 11013 19 May 2021 emplos 7112 517 Question 7 (Marks: 10) Create a PL/SQL query to display the customer name, employee name and the coln product returned. In your query also display the reason why the customer returned the coln along with the return date. Sample Output: CUSTOMER: S.Clark I EMPLOYEE: J.Andrews PRODUCT: Silver Big 5 Pack RETURN REASON: Product purchased was incorrect RETURN DATE: 25 May 2021 CUSTOMER: M.Smith EMPLOYEE: X.Davis PRODUCT: loz Silver Palaeontology RETURN REASON: Customer not satisfied with product RETURN DATE: 25 May 2021

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Principles Of Accounting

Authors: Steven M. Bragg

1st Edition

1642210773, 978-1642210774

More Books

Students also viewed these Accounting questions