0% found this document useful (0 votes)
362 views

CS 2203 Programming Assignment Unit 1

The document describes a database for a doctor's office with 3 tables: Doctor, Appointment, and Patient. The Doctor table stores doctor details like ID, name, phone number, and specialty. The Appointment table connects doctors and patients and records appointment details. The Patient table stores patient details like ID, name, phone, address, and assigned doctor. Together these 3 tables can track doctors, their patients, and appointment information.

Uploaded by

Jahid Mridha
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
362 views

CS 2203 Programming Assignment Unit 1

The document describes a database for a doctor's office with 3 tables: Doctor, Appointment, and Patient. The Doctor table stores doctor details like ID, name, phone number, and specialty. The Appointment table connects doctors and patients and records appointment details. The Patient table stores patient details like ID, name, phone, address, and assigned doctor. Together these 3 tables can track doctors, their patients, and appointment information.

Uploaded by

Jahid Mridha
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 2

COURSE NAME: Database 1

CODE: CS 2203-01
INSTRUCTOR: Rich Hoo
DATE: 22 / 06 / 2022

Doctor
Doc_ID Varchar/Number Unique NOT NULL

Doc_Name Text NOT NULL

Doc_PhoneNumber Number Unique NOT NULL

Speciality_Number Number -

Speciality Text -
Primary Key: Doc_ID
Degree of Relation: 5

Gives Appointments
Appointment
ID Varchar/Number Unique NOT NULL

Appointment_Date Date NOT NULL

Doc_ID Varchar/Number Unique NOT NULL

Patient_ID Varchar/Number Unique NOT NULL

BP Number NOT NULL

Pulse Number NOT NULL

Notes Varchar -

Medicines Varchar -
Primary Key: ID
Degree of Relation: 8
Takes Appointments
Patient
Patient_ID Varchar/Number Unique NOT NULL

Patient_Name Text NOT NULL

Patient_Phone Number Unique NOT NULL

Email Varchar NOT NULL

Address Varchar NOT NULL

Added_Date Date NOT NULL

Allergies Text -

Doc_ID -
Primary Key: Patient_ID
Degree of Relation: 8

You might also like