This document provides an overview of database design and implementation, covering topics such as entity relationship diagrams, relational tables, data creation in MS Access, and more.
Contribute Materials
Your contribution can guide someone’s learning journey. Share your
documents today.
Running head:DATABASE DESIGN AND IMPLEMENTATION Database Design and Implementation Name of the Student Name of the University Author’s note:
Secure Best Marks with AI Grader
Need help grading? Try our AI Grader for instant feedback on your assignments.
1DATABASE DESIGN AND IMPLEMENTATION Table of Contents Entity Relationship Diagram:..........................................................................................................2 Relational Tables:............................................................................................................................3 Data Creation in MS Access:...........................................................................................................5 Form to input/update data for Candidate:........................................................................................6 Queries:............................................................................................................................................6 Report:.............................................................................................................................................7 Bibliography:...................................................................................................................................8
2DATABASE DESIGN AND IMPLEMENTATION Entity Relationship Diagram: Figure 1: Entity Relationship Diagram (Source: Created by Author) The above entity relationship diagram shows that eight entities are required to support the data requirements. The ERD shows that the RoomAdmission table is a bridge table that converts the many-to-many relationship into one-to-one and many-to-one relationship. The ERD also represent that the each admission has to be associated with the payment. The diagram clearly shows the cardinality and optionality of the entities. It is not necessary that each doctor will
3DATABASE DESIGN AND IMPLEMENTATION check a patient. However, each candidate has to go through checkup. As the real life process, the database will only accept prescription for a check or admission. Relational Tables: Candidate Table: Field NameData TypeField Size candidateIDAutoNumberLong Integer nameShort Text255 addressShort Text255 Checkup Table: Field NameData TypeField Size checkupIDAutoNumberLong Integer candidateIDNumberLong Integer outcomeShort Text255 doctorIDNumberLong Integer Doctor Table: Field NameData TypeField Size doctorIDAutoNumberLong Integer nameShort Text255 typeShort Text255
Paraphrase This Document
Need a fresh take? Get an instant paraphrase of this document with our AI Paraphraser
4DATABASE DESIGN AND IMPLEMENTATION Admission Table: Field NameData TypeField Size admissionIDAutoNumberLong Integer checkupIDNumberLong Integer admissionDateDate/TimeShort Date dischargeDateDate/TimeShort Date paymentMadeCurrencyAuto RoomAdmission Table: Field NameData TypeField Size roomIDNumberLong Integer admissionIDNumberLong Integer Room Table: Field NameData TypeField Size roomIDAutoNumberLong Integer typeShort Text255 chargeCurrencyAuto Candidate Table:
5DATABASE DESIGN AND IMPLEMENTATION Field NameData TypeField Size prescriptionIDAutoNumberLong Integer checkupIDNumberLong Integer medicineNameLong TextAuto Data Creation in MS Access: Figure 2: Database Created in MS Access (Source: Created by Author)
6DATABASE DESIGN AND IMPLEMENTATION Form to input/update data for Candidate: Figure 3: Candidate Data Insert/Update Form in MS Access (Source: Created by Author) The form shows the candidate add, update and delete options. Each operation is shown through buttons. The form also has navigation operations. At the bottom left side, the previous record navigation is present. At the bottom right side, the next record navigation is situated. Queries: Select:SELECT Doctor.* FROM Doctor; Select (Doctor) doctorIDnametype 1Samregular 2Jessicaon call Join:SELECT Candidate.name, Admission.admissionDate, Admission.dischargeDate, Room.typeFROMRoomINNERJOIN(((CandidateINNERJOINCheckupON Candidate.candidateID=Checkup.[candidateID])INNERJOINAdmissionON
Secure Best Marks with AI Grader
Need help grading? Try our AI Grader for instant feedback on your assignments.
7DATABASE DESIGN AND IMPLEMENTATION Checkup.checkupID=Admission.checkupID)INNERJOINRoomAdmisssionON Admission.admissionID=RoomAdmisssion.admissionID)ONRoom.roomID= RoomAdmisssion.roomID; Join (Room Allocation to Candidate) nameadmissionDatedischargeDatetype Minarva1/10/20191/30/2019general Sam2/1/20192/5/2019Private NumericFunction: SELECT Candidate.name, Sum(Payment.amount) AS SumOfamount FROM ((Candidate INNER JOIN Checkup ON Candidate.candidateID = Checkup.candidateID) INNER JOIN Admission ON Checkup.checkupID = Admission.checkupID) INNER JOIN Payment ON Admission.admissionID = Payment.admissionID GROUP BY Candidate.name; Numeric Function nameSumOfamount Minarva$4,200.00 Sam$3,900.00 Report: Figure 4: Room Allocation Report in MS Access (Source: Created by Author)
8DATABASE DESIGN AND IMPLEMENTATION Bibliography: Coronel, C. and Morris, S., 2016.Database systems: design, implementation, & management. Cengage Learning. Kralj, D. and Hren, N., 2018, January. Framework project of database development: Record keeping of protective equipment. In7. Međunarodni stručno-znanstveni skup" Zaštita na radu i zaštita zdravlja"/7th International Professional and Scientific Conference" Occupational safety and health". Liu, C., Springer, D., Li, Q., Moody, B., Juan, R.A., Chorro, F.J., Castells, F., Roig, J.M., Silva, I., Johnson, A.E. and Syed, Z., 2016. An open access database for the evaluation of heart sound algorithms.Physiological Measurement,37(12), p.2181. Pratt, R., Smatt, C. and Wynn Jr, D., 2017. Tourism through Travel Club: A Database Project.Information Systems Education Journal,15(2), p.40. Yang, Y., Liu, X. and Deng, R.H., 2018. Lightweight break-glass access control system for healthcareInternet-of-Things.IEEE Transactions on Industrial Informatics,14(8), pp.3610- 3617.