Hospital SQL Output Report
Hospital SQL Output Report
Objective:
To develop a SQL-based system that efficiently manages various aspects of a
hospital including patients, doctors, appointments, and medical records.
Database Design
Tables Created:
1. departments – Stores hospital department data
2. doctors – Stores doctor information
3. patients – Stores patient details
4. appointments – Tracks appointment bookings
5. medical_records – Stores patient diagnosis and treatment history
SQL Queries
1. Create Tables
CREATE TABLE departments (
dept_id INT PRIMARY KEY,
dept_name VARCHAR(100)
);
Output:
patient_id name age gender phone
1 Anil Kumar 45 Male 98765432
10
2 Sita Rani 60 Female 91234567
89
Output:
Output:
date_of_recor
name diagnosis treatment d
Anil Kumar Hypertension Medication 2025-06-10
Output:
dept_name doctor
Cardiology Dr. Sharma
Neurology Dr. Iyer
Orthopedics Dr. Patel
Conclusion
The Hospital Management System simplifies hospital operations and ensures
secure and structured access to essential healthcare data. It demonstrates
efficient handling of medical data through SQL-based queries.
Submitted by:
Name: Preethi Varsha
Roll No: [Your Roll Number]
Department: [Your Department]
College: [Your College Name]