0% found this document useful (0 votes)
2 views6 pages

Er DIA

The document outlines the construction of an Entity-Relationship (ER) diagram for a hospital, detailing the relationships between patients and medical doctors, along with logs of tests and examinations. It explains various ER diagram symbols, including attributes, key attributes, multi-valued attributes, and participation types. Additionally, it discusses cardinality in relationships using Crow's Foot notation, illustrating different types of relationships such as one-to-one, one-to-many, many-to-one, and many-to-many.

Uploaded by

dhassahil
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)
2 views6 pages

Er DIA

The document outlines the construction of an Entity-Relationship (ER) diagram for a hospital, detailing the relationships between patients and medical doctors, along with logs of tests and examinations. It explains various ER diagram symbols, including attributes, key attributes, multi-valued attributes, and participation types. Additionally, it discusses cardinality in relationships using Crow's Foot notation, illustrating different types of relationships such as one-to-one, one-to-many, many-to-one, and many-to-many.

Uploaded by

dhassahil
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/ 6

Construct an ER diagram for a hospital along with a set of patients and a set of

medical doctors Associate with every patient a log of the several tests and
examinations conducted.

Ans:

Hotel ER Diagram
symbol Name Description

A basic attribute is represented by a single


Attribute
oval with its name written inside.

This is a special attribute that is used to


Key
uniquely identify an entity. It is represented
Attribute
by an oval with its name underlined.

These are the attributes that can have


Multi-
multiple values (like the Name attribute can
valued
have First and Last name) and are
Attribute
represented by a double oval.

Derived A derived attribute might not be physically


Attribute present in the database and could be
logically derived from any other attribute
(represented by a dotted oval).

It is an attribute that might be derived from


Weak Key any other attribute, but it would have unique
Attribute identifiers for the entity. It is represented by
a dotted oval with its name underlined.

2.4 ER Diagram Inheritance Symbols

Lastly, when we cover Entity-relationship diagram symbols, we have to consider the


inheritance between child and parent entities. Ideally, the inheritance for a relationship
between entities can be of these types.

Symbol Name Description

This depicts that not all the entities in


Partial
the set are a part of the relationship
Participation
and is depicted by a single line.

This means that all the entities in the


Total
set are in a relationship and are
Participation
depicted by a double line.
This means that the entities don’t
Optional
have a mandatory partition in the set
Participation
and are represented by a dotted line.
Furthermore, to understand these ER diagram symbols, you can look at the following
diagram that was created on EdrawMax Online. The diagram represents the structure of
a database for a hospital.

Crow’s Foot Notation in ER Diagrams


As you can see, there can be several Entity-relationship diagram notations that are
used to represent the structure and model of a database. Though, there are different
Crow’s Foot notations that can help you depict the uniqueness and relationship between
different entities (known as Cardinality).
In the Crow’s Foot notion, three major symbols can be used in different ways to depict
cardinality:

 A ring that represents a zero


 A dash that represents one.
 Crow’s Foot that represents many.

These ER diagram symbols can be paired in different ways to depict the overall
cardinality in our database. In these diagrams, the inner component depicts a minimum
while the outer component depicts a maximum value.

One to One
This is also known as a Mandatory One relationship in which one entity of set A can be
associated with a maximum of one entity of set B. For instance, one student can
register for several courses, but all the courses can only have a single registered user.

One to Many
In this, one entity of set A can be associated with multiple entities of set B. If you
consider a class, then one class can have multiple students enrolled. It is also known as
an Optional One cardinality.

Many to One
This means that many entities of Set A can be associated with at most one entity of Set
B. For example, many students can belong to the same class.

Many to Many
Lastly, in this cardinality, more than one entity of Set A can be associated with more
than one entity of Set B. For instance, several students in a class can be allocated to
multiple faculty members.
Source: Guru99

You might also like

pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy