As part of a homework assignment I have been asked to create tables based on a case study, and all tables must be in 3NF. However, I've tried and tried to understand 3NF but I'm just not getting the hang of it and would appreciate some help.
The requirements of the case study are for a vet clinic:
- Allow pets to be booked in for appointments
- Record pet treatments
- Record which vet performed the treatment
- Record items sold by the business to provide info that allows the business to produce sstock lists for purchase from the suppliers
DOESNT NEED TO: RECORD ALL SALES
I have the following tables so far:
staff:
| staff_ID | firstName | lastName | gender | address_ID | contactNumber | partTimeOrFullTime | salary |
A staff address table:
| address_ID | staff_ID | number | street | city | county | postalCode |
The vet table:
| staff_ID | appointment_ID |
vet_nurse:
| staff_ID | appointment_ID |
An appointment table:
| appointment_ID | customer_ID | staff_ID | patient_ID | date | time |
initial_appointment table:
| appointment_ID | customer_ID | patient_ID | diagnosis | treatment |
followUp_appointment:
| appointment_ID | customer_ID | patient_ID | diagnosis | treatment |
patient:
| patient_ID | customer_ID | animal_type | gender | weight | height | previous_Appointments | previous_Treatment |
product:
| product_ID | name | product_Category | animal | price | quantity_Available | reOrder_Level |
product_sold:
| sale_ID | product_ID | sale_Date |
supplier:
| supplier_ID | product_ID | contactNumber | email |
suppliers_address:
| supplierAddress_ID | supplier_ID | doorNumber | street | city | town | postalCode |
inventory:
| name | product_ID | quantity_Available | price |
Thanks!