Question: Required software: XAMPP + any html editor (example: Notepad++ or HTML-KIT 292) We are interested in building a database for Best Spa. We managed to

 Required software: XAMPP + any html editor (example: Notepad++ or HTML-KIT
292) We are interested in building a database for Best Spa. We

Required software: XAMPP + any html editor (example: Notepad++ or HTML-KIT 292) We are interested in building a database for Best Spa. We managed to get a template of their invoice (see attached document). Write a report where you describe your answers to the following Tasks: 1/ Propose a CDM based on the given invoice. (5%) Deadline for task 1/ : 15th November 2/ Make the LDM and create the tables in phpmyadmin (5%) 3/ Write the SQL queries corresponding to the following requirements (Test them under phpmyadmin and take screenshots of the results and paste them in your report): (5%) a) Show all information about all customers. b) Show the average invoice amount for each customer c) Show all information about invoices of a given customer (identified by idCustomer of your choice) d) Show the invoice number of the invoice which has the highest total. Show also the patient owner of this invoice e) Show all treatments done by each staff (identified by idStaff of your choice) Deadline for tasks 2 & 3:29th November 4/ Design an html form to add a customer and a file insert.php which will add the new customer in the database (5%) 5/ Design an html form where you have to enter the customer id and click submit button. A file list.php will be then executed and will show all the invoices of the corresponding customer (5%) 6/ BONUS (up to 3%): Work on the layout of the forms and the results (showing results in tables..) using css and html Deadline for Tasks 4 & 5: 13th December Best Spa INVOICE Salam Street, Maabila, 211 Invoice# 19-00120 Phone: 97 120 133 Email: bestspa@gmail.com DATE 24/06/2019 Customer id: 138764 INFO Name: Alya Salim Address: Muscat Phone: 98 232 232 Treatment Staff Duration Hourly rate AMOUNT Massage Tania 1 15 15.00 Manicure Muna 0.5 20 10.00 Hair cut and coloring Stefania 2 10 20.00 Total before discount 45.00 Discount 5% (4.50) TOTAL after discount 40.00 Additional requirements: A treatment can be done by many staff (but not at the same time). So "Massage" can be done by Tania or Muna for example. The hourly rate does not depend on the staff who does it The duration of the same treatment may be different from one customer to another. So one customer may spend 1 hour in massage while another will spend only half hour. Discount percentage is different from one customer to another. It does not depend on the treatments taken of the invoice total. However, the same customer will always get the same discount each time she comes to the spa. The spa owner is of course interested in seeing reports where she can find out the job done by each staff member

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!