Perfect Pets Database Case Study
A practice called PerfectPets provides private healthcare for domestic pets through out America. This service is provided through various clinics located in the main cities of America. The Director of PerfectPets is concerned that there is a lack of communication within the practice, and particularly in the sharing of information and resources across the various clinics. To resolve this problem the Director has requested the creation of a centralized database system to assist in the more effective and efficient running of the practice. The Director has provided the following description of the current system.
Perfect Pets has many veterinary clinics located in the main cities of America. The details of each clinic include the clinic number, clinic address (consisting of the street, city, state, and zipcode), and the telephone and fax numbers. Each clinic has a Manager and a number of staff (for example vets, nurses, secretaries, cleaners). The clinic number is unique throughout the practice.
The details stored on each member of staff include the staff number, name (first and last), address (street, city, state, and zipcode), telephone number, date of birth, sex, social security number (SSN), position, and current annual salary. The staff number is unique throughout the practice.
When a pet owner first contacts a clinic of PerfectPets, the details of the pet owner are recorded, which include an owner number, owner name (first name and last name), address (street, city, state, and zipcode), and home telephone number. The owner number is unique to a particular clinic.
The details of the pet requiring treatment are noted, which include a pet number, pet name, type of pet, description, date of birth (if unknown, an approximate date is recorded), date registered at clinic, current status (alive/deceased), and the details of the pet owner. The pet number is unique to a particular clinic.
When a sick pet is brought to a clinic, it is examined by the vet on duty. The details of each examination are recorded and include an examination number, the date and time of the examination, the name of the vet, the pet number, pet name, type of pet, and a full description of the examination results. The examination number is unique to a particular clinic. As a result of the examination, the vet may propose treat mentes) for the pet.
PerfectPets provides various treatments for all types of pets. These treatments are provided at a standard rate across all clinics. The details of each treatment include a treatment number, a full description of the treatment, and the cost to the pet owner.
A standard rate of $20.00 is charged for each examination, which is recorded as a type of treatment. The treatment number uniquely identifies each type of treatment and is used by all PerfectPets clinics.
Based on the results of the examination of a sick pet, the vet may propose one or more types of treatment. For each type of treatment, the information recorded includes the examination number and date, the pet number, name and type, treat ment number, description, quantity of each type of treatment, and the dates the treatment is to begin and end. Any additional comments on the provision of each type of treatment are also recorded.
In some cases, it is necessary for a sick pet to be admitted to the clinic. Each clinic has 20-30 animal pens, each capable of holding between one and four pets. Each pen has a unique pen number, capacity, and status (an indication of availability). The sick pet is allocated to a pen and the details of the pet, any treatment(s) required by the pet, and any additional comments about the care of the pet are recorded. The details of the pet’s stay in the pen are also noted, which include a pen number, and the dates the pet was put into and taken out of the pen. Depending on the pet’s illness, there may be more than one pet in a pen at the same time. The pen number is unique to a particular clinic.
The pet owner is responsible for the cost of the treatment given to a pet. The owner is invoiced for the treatment arising from each examination, and the details recorded on the invoice include the invoice number, invoice date, owner number, owner name and full address, pet number, pet name, and the details of the treatment given. The invoice provides the cost for each type oftreatment and the total cost of all treatments given to the pet.
Additional data is also recorded on the payment of the invoice, including the date the invoice was paid and the method of payment (for example cash, Visa). The invoice number is unique throughout the practice.
Surgical, non-surgical, and pharmaceutical supplies
Each clinic maintains a stock of surgical supplies (for example syringes, sterile dressings, bandages) and non-surgical supplies (for example plastic bags, aprons, litter trays, pet name tags, pet food). The details of surgical and non-surgical sup plies include the item number and name, item description, quantity in stock (this is ascertained on the last day ofeach month), reorder level, reorder quantity, and cost. The item number uniquely identifies each type of surgical or non-surgical supply. The item number is unique for each surgical or non-surgical item and is used throughout the practice.
Each clinic also maintains a stock of pharmaceutical supplies (for example, anti biotics, painkillers). The details of pharmaceutical supplies include a drug number and name, description, dosage, method of administration, quantity in stock (this is ascertained on the last day of each month), reorder level, reorder quantity, and cost. The drug number uniquely identifies each type of pharmaceutical supply. The drug number is unique for each pharmaceutical supply and is used throughout the practice.
If the pet has to be seen by the vet at a later date, the owner and pet are given an appointment. The details of an appointment are recorded and include an appointment number, owner number, owner name (first name and last name), home telephone number, the pet number, pet name, type of pet, and the appointment date and time. The appointment number is unique to a particular clinic .
You will need to develop a database design for the PerfectPets case study contained in Appendix B of the Connolly, Begg, and Holowczak text for the course. Your solution should include an ER diagram (Part 1) and a logical database design (Part 2).
In the development of your ER diagram, you should perform the following steps to earn full points
- Identify entities.
- Identify the relationships that exist among the entities. Determine the multiplicity.
- Identify the attributes for each entity.
- Determine primary and foreign keys.
- Determine whether there are superclasssub-class relationships.
- Examine the 11 relationships to eliminate unnecessary entities andor relationships.
- Normalize you ER model to 3NF.
- Compare your ER model against section B.2 Transaction Requirements in your textbook appendix to confirm that all user transactions are supported.
In the development of your logical database design, your submitted solution to Part 2 should consist of SQL create statements. Section E.1 of textbook Appendix E will be helpful in development of your create statements. To earn full points, your SQL statements should
- Create all needed tables and attributes based on your ER diagram from part 1 above (Step 2 in textbook Appendix D will be helpful in completing this task).
- Identify all primary and foreign key attributes.
- Support integrity constraints, for example, required attributes, attribute domain consistency, entity integrity, multiplicity, and referential integrity.
- File Format: MS-Word .docx, SQL code .sql
- Page Count: 7
- Word Count: 1010
- Figures Included: Yes
- Lines of Code for SQL: 344