Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Please help me write and draw these requirements for this code 1. Requirements collection and analysis ? 2.Conceptual design: E-R Diagram ? 3. Logical schema

Please help me write and draw these requirements for this code

1. Requirements collection and analysis ?

2.Conceptual design: E-R Diagram ?

3. Logical schema design mapping ?

4. Physical schema design - Internal Schema ?

QUERY FOR CREATING COMPANY DATABSE

This code

CREATE DATABASE company;

USE company;

CREATE TABLE patients ( patient_id number(20) PRIMARY KEY, name VARCHAR2(50) NOT NULL, address VARCHAR2(100) NOT NULL, phone_number VARCHAR2(15) NOT NULL );

CREATE TABLE doctors ( doctor_id number(20) PRIMARY KEY, name VARCHAR(50) NOT NULL, specialty VARCHAR(50) NOT NULL, years_of_experience INT NOT NULL );

CREATE TABLE clinics ( clinic_id number(20) PRIMARY KEY, name VARCHAR(50) NOT NULL, address VARCHAR(100) NOT NULL, phone_number VARCHAR(15) NOT NULL );

CREATE TABLE appointments ( appointment_id number(20) PRIMARY KEY, patient_id number(20) NOT NULL, doctor_id number(20) NOT NULL, clinic_id number(20) NOT NULL, appointment_date DATE NOT NULL, FOREIGN KEY (patient_id) REFERENCES patients(patient_id), FOREIGN KEY (doctor_id) REFERENCES doctors(doctor_id), FOREIGN KEY (clinic_id) REFERENCES clinics(clinic_id) );

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

Advances In Databases And Information Systems 23rd European Conference Adbis 2019 Bled Slovenia September 8 11 2019 Proceedings Lncs 11695

Authors: Tatjana Welzer ,Johann Eder ,Vili Podgorelec ,Aida Kamisalic Latific

1st Edition

3030287297, 978-3030287290

More Books

Students also viewed these Databases questions

Question

=+ What behavioral solutions might you employ to conserve fluids?

Answered: 1 week ago

Question

Identify the elements that make up the employee reward package.

Answered: 1 week ago

Question

Understand the purpose, value and drawbacks of the interview.

Answered: 1 week ago