Answered step by step
Verified Expert Solution
Question
1 Approved Answer
i want you to draw the er and eer and the connection traps of these data element : 1 . Appointment: o appointment _ id
i want you to draw the er and eer and the connection traps of these data element :
Appointment:
o appointmentid Primary Key, NUMBER
o patientid Foreign Key, NUMBER
o type VARCHAR
o date.
o time
o doctorid Foreign Key, NUMBER:
Doctor:
o employeeid Primary Key, NUMBER
o specialist VARCHAR
Patient:
o patientid Primary Key, NUMBER
o firstname VARCHAR
o lastname VARCHAR
o phone VARCHAR
Bill:
o billno Primary Key, NUMBER
o doccharge NUMBER: Doctor's consultation charge.
o medcharge NUMBER: Charge medicines.
o nursingcharge NUMBER
o labcharge NUMBER:
Employee:
o employeeid Primary Key, NUMBER
o firstname VARCHAR
o lastname VARCHAR
o gender VARCHAR
o phone VARCHAR
o email VARCHAR
o departmentid Foreign Key, NUMBER
Department:
o departmentid Primary Key, NUMBER
o depname VARCHAR
o depmanager VARCHAR
and the relations are : AppointmentPatient Relationship:
o The patientid in the Appointment table references the patientid in the Patient table.
AppointmentDoctor Relationship:
o The doctorid in the Appointment table references the employeeid in the Doctor table.
BillPatient Relationship:
o The patientid in the Bill table references the patientid in the Patient table.
EmployeeDepartment Relationship:
o The departmentid in the Employee table references the departmentid in the Department table.
DepartmentManager Relationship:
o The depmanager in the Department table references the employeeid in the Employee table.
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