We use cookies to give you the best experience possible. By continuing we’ll assume you’re on board with our cookie policy

Entity Relationship Diagram

essay
The whole doc is available only for registered users

A limited time offer! Get a custom sample essay written according to your requirements urgent 3h delivery guaranteed

Order Now

Databases are used to store structured data that are stored in tables. The structure of this data, together with other constraints, can be designed using a variety of techniques. One of which is called as entity-relationship modeling (ERM).  The basic object that the entity-relationship model represents is an entity, which is a thing in the real world with an independent existence (such as person, car, house, etc) or it may be an object with a conceptual existence (such as company, job, courses, etc).Entity is represented as table in database. Each entity has attribute that describes it (name, age, address, etc) (Elmasri & Navathe 2002). Diagram made for ERM. Process is an entity relationship diagram (ERD).

Figure 1: Entity Relationship Diagram (ERD)

Source: Powell (2006), Beginning Database Design

An ERD is a type of conceptual data model or semantic data model. Tables (entity) can have various types of relationships between them. The different types of inter-table relationships that can be formed between different tables can be best described as displayed in Entity Relationship Diagrams (ERDs). An ERD displays tables and relationships between those tables. Figure 1 shows an example ERD for tables in a schema containing published books. A table is often referred to as an entity in an ERD (Powell 2006).

Multiplicity is the type of relationship that exists between entities in database. There are three types of multiplicities (relationship) one-to-one, one-to-many and many-to-many; and they are described in details in below paragraphs.

One-to-one relationships are often created to remove frequently NULL valued fields from a table (Powell 2006). This type of relationship rarely exists in any database model. In figure 2 (a) one-to-one relationship is shown between Rank entity and Edition entity. Here this relationship implies that there is exactly one row in the rank entity for every row in Edition entity.

(a) One-to-one
(b) One-to-many

Figure 2: Relationship; (a) One-to-one, (b) One-to-many

Source: Powell (2006), Beginning Database Design

One-to-many relationships are extremely common in the relational database model between tables (Powell 2006). In figure 2 (b) one-to-many relationship is shown between Author entity and Publication entity. Here this relationship implies that there can be many published work for each author.

(c) Many-to-many

Figure 3: Relationship; (c) Many-to-many

Source: Powell (2006), Beginning Database Design

A many-to-many relationship means that for every one record in one table there are many possible records in another related table, and visa versa for both tables (Powell 2006). In figure 3 (c) Many-to-many relationship is shown between Publisher entity and Publication entity. Here this relationship implies that a publisher can publish many books and a single book can be published by many publishers, when assuming multiple editions of a single book. One another example of this type of relationship is many students enrolled in many courses at a university. Student can take many courses and similarly course has many students enrolled result in a many-to-many relationship between students and courses.

References:

Powell Gavin. Beginning Database Design. Indianapolis, Indiana. Wiley Publishing 2006.

Elmasri & Navathe. Fundamentals of Database Systems. 3rd edition. Pearson Education 2002.

Related Topics

We can write a custom essay

According to Your Specific Requirements

Order an essay
icon
300+
Materials Daily
icon
100,000+ Subjects
2000+ Topics
icon
Free Plagiarism
Checker
icon
All Materials
are Cataloged Well

Sorry, but copying text is forbidden on this website. If you need this or any other sample, we can send it to you via email.

By clicking "SEND", you agree to our terms of service and privacy policy. We'll occasionally send you account related and promo emails.
Sorry, but only registered users have full access

How about getting this access
immediately?

Your Answer Is Very Helpful For Us
Thank You A Lot!

logo

Emma Taylor

online

Hi there!
Would you like to get such a paper?
How about getting a customized one?

Can't find What you were Looking for?

Get access to our huge, continuously updated knowledge base

The next update will be in:
14 : 59 : 59