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

Lab Session 2

Lab session file of Software engineering affiliated with AKTU

Uploaded by

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

Lab Session 2

Lab session file of Software engineering affiliated with AKTU

Uploaded by

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

Lab Session – 02

OBJECT- To create an ER Diagram for Library Management System.

ER Diagram – ER diagram stands for Entity Relationship Diagram, also known as ERD is a diagram
that displays the relationship of entity sets stored in a database. In other words, ER diagrams help to
explain the logical structure of databases. ER diagrams are created based on three basic concepts: entities,
attributes and relationships..

ER Diagrams contain different symbols that use rectangles to represent entities, ovals to define attributes
and diamond shapes to represent relationships.

Steps for creation of ER Diagram


1. To identify all entity sets.
2. To find relationship between two entity sets.
3. Draw a simple ER diagram.
4. Find all attribute of each entity set.
5. Draw an attribute ER diagram.
6. To mention cardinality (mapping) constraints.
7. Review the diagram.

Table for Entity sets and Attributes for Library Management System

S.No Entity set Attributes

1. Student Name, stu_Id, Reg_no., Roll_no., Contact_no., Address.

2. Books Subject, Edition, Book_name, Price, Author_name.


3. Librarian Due_date, Return_date, Issue.
4. Fine Payment_date, Fine_amount.
5. Author Name , Age, Address.
ER Diagram for Library Management System.

Pin_code District
Return_date

Post Address
Due_date Issue.
_

Librarian Name Author

1 Age
Subject Book_name Written
by
Manage
M Books 1

Price

Edition Author_name.
1

Issue

Name
M M Fine
Pays
Stu_Id 1
Student Payment_date Fine_amount
.
Reg_no Contact_no

Roll_no
Address
_ District

Post
Pin_code
OBJECT- To create an ER Diagram for Hospital Management System.

Table for Entity sets and Attributes for Hospital Management System

S.No Entity set Attributes

1. Hospital Hospital_type, Document_id, Hospital_id, Place.

2. Medicines Medicine_name, Medicine_Id, Medicine_details, Type.


3. Doctors Dr_name, Dr_Id, Mobile, Specialization, Qualification.
4. Patients Name , Age, Address, Pat_Id.
5. Medical record Record_Id, Problem, Report, Payment, Date_of_examine.
ER Diagram for Hospital Management System.

Dr_Id
Dr_name
Pin_code
District Mobile

Doctors
Age
Address Post Specialization
sss
Name
Pat_Id has
Qualification

Patient

Hospital
Admit
in

has has
Medicine_name

Medicines
Details

Type Medicine_Id

Report

Medical records
Payment

Record_Id
Problem Date_of__exam
_Id ine

You might also like