100% satisfaction guarantee Immediately available after payment Both online and in PDF No strings attached 4.2 TrustPilot
logo-home
Presentation

Entity Relationship diagram with sample diagrams and Database tables.

Rating
-
Sold
-
Pages
3
Uploaded on
10-09-2024
Written in
2024/2025

Entity Relationship diagram with company and library Entity Diagrams. Database tables with sample database tables. It contains explanation of foreign key and primary key. Different examples with explanation are included in document.

Show more Read less
Institution
Course








Whoops! We can’t load your doc right now. Try again or contact support.

Written for

Institution
Course

Document information

Uploaded on
September 10, 2024
Number of pages
3
Written in
2024/2025
Type
Presentation
Person
Unknown

Subjects

Content preview

Entity Relationship Diagram
Entity relationship diagram is a symbolic representation of database relations. Each
symbol in entity relationship diagram has separate meaning. Every Entity appears in
rectangle and attributes appears in oval shape. Relationship appears inside diamond.
ER diagram represents relationship between different entities in database table.

Consider a company has departments such as sales, purchase, and billing.
Entity relationship diagram for company database have the following statements
• A company has departments and employees.
• A department must have at least one employee and can contain more than one
employee.
• One company employee can work only in one department.
Entities in the company database are
• Employee
• Sales Department
• Supervising
• billing

Attributes of employee table are employee ID, employee name, join date, phone number.
Attributes of sales Department table are employee ID, employee name, product name,
quantity.
Attributes of supervisor table are employee ID, employee name, attendance, date and
time, no of bills.
Attributes of billing table are employee ID, billing number, product name, price, quantity,
bill amount.
Identifying the relationship between entities:
• Sales department has many employees. So entities sales Department and
employee has one to many relationships.
• Sales department has many employees and they are supervised by one supervisor.
So entities sales Department and supervisor has many to one relationship.
• Many employees in sales department take products to billing section. So entities
billing and sales Department has one to many relationships.

ER diagram for company database:




Employee M
Has
Employee ID Many
Employee name 1
Join date
Phone Number Sales Dept

Employee ID
Supervisor M Employee name
1
Product name
Guides Quantity
Employee ID
Employee name
Date and time M
Attendance
No of bills
$3.09
Get access to the full document:

100% satisfaction guarantee
Immediately available after payment
Both online and in PDF
No strings attached

Get to know the seller
Seller avatar
CSstudynotes

Get to know the seller

Seller avatar
CSstudynotes Self
Follow You need to be logged in order to follow users or courses
Sold
0
Member since
1 year
Number of followers
0
Documents
1
Last sold
-
Computer Science StudyNotes

Store contains lot of Text book answers and study notes of computer science subject. Notes are easy to understand about particular topic in computer science.

0.0

0 reviews

5
0
4
0
3
0
2
0
1
0

Why students choose Stuvia

Created by fellow students, verified by reviews

Quality you can trust: written by students who passed their tests and reviewed by others who've used these notes.

Didn't get what you expected? Choose another document

No worries! You can instantly pick a different document that better fits what you're looking for.

Pay as you like, start learning right away

No subscription, no commitments. Pay the way you're used to via credit card and download your PDF document instantly.

Student with book image

“Bought, downloaded, and aced it. It really can be that simple.”

Alisha Student

Frequently asked questions