Answered step by step
Verified Expert Solution
Link Copied!

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 :
1. Appointment:
o appointment_id (Primary Key, NUMBER).
o patient_id (Foreign Key, NUMBER).
o type (VARCHAR2).
o date.
o time .
o doctor_id (Foreign Key, NUMBER):
2. Doctor:
o employee_id (Primary Key, NUMBER).
o specialist (VARCHAR2).
3. Patient:
o patient_id (Primary Key, NUMBER).
o first_name (VARCHAR2).
o last_name (VARCHAR2).
o phone (VARCHAR2).
4. Bill:
o bill_no (Primary Key, NUMBER).
o doc_charge (NUMBER): Doctor's consultation charge.
o med_charge (NUMBER): Charge medicines.
o nursing_charge (NUMBER).
o lab_charge (NUMBER):.
5. Employee:
o employee_id (Primary Key, NUMBER).
o first_name (VARCHAR2).
o last_name (VARCHAR2).
o gender (VARCHAR2).
o phone (VARCHAR2).
o email (VARCHAR2).
o department_id (Foreign Key, NUMBER).
6. Department:
o department_id (Primary Key, NUMBER).
o dep_name (VARCHAR2).
o dep_manager (VARCHAR2).
and the relations are : 1. Appointment-Patient Relationship:
o The patient_id in the Appointment table references the patient_id in the Patient table.
2. Appointment-Doctor Relationship:
o The doctor_id in the Appointment table references the employee_id in the Doctor table.
3. Bill-Patient Relationship:
o The patient_id in the Bill table references the patient_id in the Patient table.
4. Employee-Department Relationship:
o The department_id in the Employee table references the department_id in the Department table.
5. Department-Manager Relationship:
o The dep_manager in the Department table references the employee_id in the Employee table.

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

More Books

Students also viewed these Databases questions

Question

What is ethics?

Answered: 1 week ago

Question

When is it appropriate to use a root cause analysis

Answered: 1 week ago