Professional Documents
Culture Documents
Database Design Language For The Final Project
Database Design Language For The Final Project
Jessica Ndegwa
Pharmacy Database
A pharmacy has a database of different types of medicines. The database should store the
details of all prescriptions brought by patients. A prescription belongs to one patient. A patient
• Patient
- MRN is the primary key for the Patient table and cannot be null.
• Prescription
MRN)
- RxNum is the primary key for the Patient table and cannot be null.
- Both Patient and Prescription tables have the MRN field in common. The MRN field in the
Prescription table is a foreign key that must match the primary key of the Patient table.
• Patient
SK PhoneNum
• Prescription
AK MedName
SK MedName
FK MRN Patient