Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Define all primary keys, foreign keys and data (20 marks) Populate the tables with sufficient data to adequately test all aspects of your queriesShippers Drug
Define all primary keys, foreign keys and data (20 marks) Populate the tables with sufficient data to adequately test all aspects of your queriesShippers Drug Stores consists of a chain of retail stores across Canada. Each store has a unique store number. You will need to retain for each store its address and telephone #. Each store employs a number of pharmacists. The name and employee id for each pharmacist will be kept in the database. lOne pharmacist is the head pharmacist for the store. Employee ids are unique across the company. The company dispenses a wide range of pharmaceutical (drug) products. Each product has a description as well as a unique DIN (Drug Identifying Number) and is dispensed at a standard price for all stores. Some pharmaceutical products have adverse affects when taken in conjunction with other pharmaceutical products. These product combinations need to be dened. It is important to realize that any particular product can interact adversely with many other products and vice versa. Each store maintains its own physical inventory of these products and will need to know the current quantity it has on hand as well as the reorder level relevant for that particular store. Reorder levels may differ between stores. Customer information is stored only once centrally and shared by each store. It will include name, address email and phone it. Where a customer has signed up for online access a user name and password will also be retained. When initially presented by a customer, details for the medical prescription are entered as well by the store receiving and processing it. Prescriptions are assigned a unique id. The date written and the date presented need to be recorded as well as the prescribing physician. The name. phone and email are retained for each physician that has prescriptions on le. A prescription will be for only 1 product. and the total quantity dispensed for each product as well as the unit of measure needs to be maintained in the database. For simplicity assume that there are no repeats. All past dispensing activity for prescriptions is retained on le. When a prescription is dispensed (lled), the pharmacist dispensing that prescription will be recorded for that prescription as well as the date that it was dispensed
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started