0% found this document useful (0 votes)
66 views2 pages

Blood Bank Management System Project

Uploaded by

catsbeingsillly
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
66 views2 pages

Blood Bank Management System Project

Uploaded by

catsbeingsillly
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 2

Blood Bank Management System

Project Description
The Blood Bank Management System is designed to facilitate the management of blood
donations, storage, and transfusion. This system ensures a smooth process in managing
donors, blood types, availability, and recipients. The system helps in organizing donor
information, available blood units, and their safe distribution to the patients in need. It also
provides information to hospitals about available blood stocks and the ability to request
blood from the system.

ER Diagram
The following ER diagram illustrates the key entities in the Blood Bank Management
System, including Donor, Blood, Hospital, and Recipient. Relationships between these
entities define how data is structured.

Relational Database Schema


The relational schema defines the structure of the database. Below are the key tables that
form the core of the Blood Bank Management System:

1. Donor (DonorID, DonorName, BloodType, Age, Contact, Address)

2. Blood (BloodID, BloodType, Quantity, DonorID)

3. Hospital (HospitalID, HospitalName, Location, Contact)

4. Recipient (RecipientID, RecipientName, BloodTypeNeeded, HospitalID)

5. BloodTransaction (TransactionID, BloodID, RecipientID, DateOfTransaction)

Normalization
The Donor table is normalized to 3NF to avoid redundancy and ensure data integrity. Below
is the normalized form of the Donor table:
1NF: Donor(DonorID, DonorName, BloodType, Age, Contact, Address)
2NF: Donor(DonorID, DonorName, BloodType), ContactDetails(ContactID, DonorID,
Contact, Address)
3NF: Donor(DonorID, DonorName, BloodType), ContactDetails(ContactID, DonorID,
Contact, Address)
This normalization ensures that all non-key attributes are functionally dependent on the
primary key.
SQL Queries
1. Retrieve all available blood types and quantities:

SELECT BloodType, SUM(Quantity) FROM Blood GROUP BY BloodType;

2. Find all donors with blood type 'O':

SELECT DonorName, Contact FROM Donor WHERE BloodType = 'O';

3. Get all transactions of a specific hospital:

SELECT HospitalName, BloodType, DateOfTransaction FROM BloodTransaction BT JOIN


Recipient R ON BT.RecipientID = R.RecipientID JOIN Hospital H ON R.HospitalID =
H.HospitalID WHERE H.HospitalName = 'XYZ Hospital';

4. List all donors who donated more than 3 times:

SELECT DonorName, COUNT(BloodID) FROM Blood WHERE DonorID IN (SELECT DonorID


FROM BloodTransaction GROUP BY DonorID HAVING COUNT(*) > 3);

Conclusion
The Blood Bank Management System provides an efficient solution for managing and
organizing blood donations, storage, and transfusions. The system ensures transparency,
reliability, and ease of access to blood resources for hospitals and recipients. By
implementing proper database management techniques like normalization and SQL
querying, the system avoids redundancy and maintains data integrity.

You might also like