0% found this document useful (0 votes)
347 views8 pages

ER Diagram of a Company - GeeksforGeeks

The document provides an overview of an Entity-Relationship (ER) Diagram for a company, detailing the relationships between various entities such as employees, departments, projects, and dependents. It describes the attributes of each entity, including primary keys, and outlines the relationships, such as employees working in departments and managers controlling departments. The ER diagram serves as a communication tool to analyze the database structure and understand the interactions among different entities.
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)
347 views8 pages

ER Diagram of a Company - GeeksforGeeks

The document provides an overview of an Entity-Relationship (ER) Diagram for a company, detailing the relationships between various entities such as employees, departments, projects, and dependents. It describes the attributes of each entity, including primary keys, and outlines the relationships, such as employees working in departments and managers controlling departments. The ER diagram serves as a communication tool to analyze the database structure and understand the interactions among different entities.
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/ 8

1/30/25, 11:08 AM ER Diagram of a Company - GeeksforGeeks

ER Diagram of a Company
Last Updated : 02 Jul, 2024

ER Diagram

is known as Entity-Relationship Diagram, it is used to analyze to


structure of the Database. It shows relationships between entities and
their attributes. An ER Model provides a means of communication. ER
diagram of the Company has the following description :

Company has several departments.


Each department may have several Locations.
Departments are identified by a name, d_no, Location.
A Manager control a particular department.
Each department is associated with number of projects.
Aptitude Engineering Mathematics Discrete Mathematics Operating System DBMS Computer Netw
Employees are identified by name, id, address, job, date_of_joining.
An employee works in only one department but can work on several
project.
We also keep track of number of hours worked by an employee on a
single project.
Each employee has a dependent
Dependent has D_name, Gender, and relationship.

ER Diagram of Company :

https://www.geeksforgeeks.org/er-diagram-of-a-company/ 1/8
1/30/25, 11:08 AM ER Diagram of a Company - GeeksforGeeks

This Company ER diagram illustrates key information about Company,


including entities such as employee, department, project and
dependent. It allows to understand the relationships between entities.

Entities

and their

Attributes

are

Employee Entity : Attributes of Employee Entity are Name, Id,


Address, Gender, Dob and Doj. Id is Primary Key for Employee Entity.
Department Entity : Attributes of Department Entity are D_no, Name
and Location. D_no is Primary Key for Department Entity.
Project Entity : Attributes of Project Entity are P_No, Name and
Location. P_No is Primary Key for Project Entity.
Dependent Entity : Attributes of Dependent Entity are D_no, Gender
and relationship.

Relationships

are :

Employees works in Departments – Many employee works in one


Department but one employee can not work in many departments.

https://www.geeksforgeeks.org/er-diagram-of-a-company/ 2/8
1/30/25, 11:08 AM ER Diagram of a Company - GeeksforGeeks

Manager controls a Department – employee works under the


manager of the Department and the manager records the date of
joining of employee in the department.
Department has many Projects – One department has many
projects but one project can not come under many departments.
Employee works on project – One employee works on several
projects and the number of hours worked by the employee on a
single project is recorded.
Employee has dependents – Each Employee has dependents. Each
dependent is dependent of only one employee.

ER Diagram in DBMS

Dreaming of M.Tech in IIT? Get AIR under 100 with our GATE 2026
CSE & DA courses! Get flexible weekday/weekend options, live
mentorship, and mock tests. Access exclusive features like All India
Mock Tests, and Doubt Solving—your GATE success starts now!

Comment More info Next Article


What is EII(Enterprise Information
Advertise with us Integration)?

https://www.geeksforgeeks.org/er-diagram-of-a-company/ 3/8
1/30/25, 11:08 AM ER Diagram of a Company - GeeksforGeeks

Similar Reads
ER diagram of Bank Management System
ER diagram is known as Entity-Relationship diagram. It is used to analyze
to structure of the Database. It shows relationships between entities and…
3 min read

ER diagram of Library Management System


ER Diagram is known as Entity-Relationship Diagram, it is used to analyze
the structure of the Database. It shows relationships between entities…
3 min read

Can Two Relationships be Related in an ER diagram?


Answer: Yes, two relationships in an ER diagram can be related through
shared entities, linking tables, or generalization hierarchies.In traditional…
1 min read

How to Represent Composite Attribute in ER Diagram?


Answer: In an ER diagram, represent a composite attribute by
encapsulating its sub-parts in an oval or box connected to the entity.The…
1 min read

Difference between UML and ER diagram


UML and ER diagrams are crucial and can be used by software developers
and database designers while designing their software systems. UML is…
7 min read

DBMS Tutorial – Learn Database Management System


Database Management System (DBMS) is a software used to manage
data from a database. A database is a structured collection of data that i…
7 min read

SQL Query Interview Questions


SQL, or Structured Query Language, is the standard language for
managing and manipulating relational databases such as MySQL, Oracle…

https://www.geeksforgeeks.org/er-diagram-of-a-company/ 4/8
1/30/25, 11:08 AM ER Diagram of a Company - GeeksforGeeks
15+ min read

Database Schemas
A database schema defines the structure and organization of data within a
database. It outlines how data is logically stored, including the…
9 min read

Data Models in DBMS


A Data Model in Database Management System (DBMS) is the concept of
tools that are developed to summarize the description of the database.…
8 min read

Types of Databases
Databases are essential for storing and managing data in today’s digital
world. They serve as the backbone of various applications, from simple…
9 min read

Corporate & Communications Address:


A-143, 7th Floor, Sovereign Corporate
Tower, Sector- 136, Noida, Uttar Pradesh
(201305)

Registered Address:
K 061, Tower K, Gulshan Vivante
Apartment, Sector 137, Noida, Gautam
Buddh Nagar, Uttar Pradesh, 201305

Advertise with us

Company Explore

https://www.geeksforgeeks.org/er-diagram-of-a-company/ 5/8
1/30/25, 11:08 AM ER Diagram of a Company - GeeksforGeeks

About Us Job-A-Thon Hiring Challenge


Legal Hack-A-Thon
Privacy Policy GfG Weekly Contest
Careers Offline Classes (Delhi/NCR)
In Media DSA in JAVA/C++
Contact Us Master System Design
GFG Corporate Solution Master CP
Placement Training Program GeeksforGeeks Videos
Geeks Community

Languages DSA
Python Data Structures
Java Algorithms
C++ DSA for Beginners
PHP Basic DSA Problems
GoLang DSA Roadmap
SQL DSA Interview Questions
R Language Competitive Programming
Android Tutorial

Data Science & ML Web Technologies


Data Science With Python HTML
Data Science For Beginner CSS
Machine Learning JavaScript
ML Maths TypeScript
Data Visualisation ReactJS
Pandas NextJS
NumPy NodeJs
NLP Bootstrap
Deep Learning Tailwind CSS

Python Tutorial Computer Science


Python Programming Examples GATE CS Notes
Django Tutorial Operating Systems
Python Projects Computer Network
Python Tkinter Database Management System
Web Scraping Software Engineering
OpenCV Tutorial Digital Logic Design
Python Interview Question Engineering Maths

DevOps System Design


Git High Level Design
AWS Low Level Design
Docker UML Diagrams
Kubernetes Interview Guide
Azure Design Patterns
GCP OOAD
DevOps Roadmap System Design Bootcamp
Interview Questions

https://www.geeksforgeeks.org/er-diagram-of-a-company/ 6/8
1/30/25, 11:08 AM ER Diagram of a Company - GeeksforGeeks

School Subjects Commerce


Mathematics Accountancy
Physics Business Studies
Chemistry Economics
Biology Management
Social Science HR Management
English Grammar Finance
Income Tax

Databases Preparation Corner


SQL Company-Wise Recruitment Process
MYSQL Resume Templates
PostgreSQL Aptitude Preparation
PL/SQL Puzzles
MongoDB Company-Wise Preparation
Companies
Colleges

Competitive Exams More Tutorials


JEE Advanced Software Development
UGC NET Software Testing
UPSC Product Management
SSC CGL Project Management
SBI PO Linux
SBI Clerk Excel
IBPS PO All Cheat Sheets
IBPS Clerk Recent Articles

Free Online Tools Write & Earn


Typing Test Write an Article
Image Editor Improve an Article
Code Formatters Pick Topics to Write
Code Converters Share your Experiences
Currency Converter Internships
Random Number Generator
Random Password Generator

https://www.geeksforgeeks.org/er-diagram-of-a-company/ 7/8
1/30/25, 11:08 AM ER Diagram of a Company - GeeksforGeeks

DSA/Placements Development/Testing
DSA - Self Paced Course JavaScript Full Course
DSA in JavaScript - Self Paced Course React JS Course
DSA in Python - Self Paced React Native Course
C Programming Course Online - Learn C with Data Structures Django Web Development Course
Complete Interview Preparation Complete Bootstrap Course
Master Competitive Programming Full Stack Development - [LIVE]
Core CS Subject for Interview Preparation JAVA Backend Development - [LIVE]
Mastering System Design: LLD to HLD Complete Software Testing Course [LIVE]
Tech Interview 101 - From DSA to System Design [LIVE] Android Mastery with Kotlin [LIVE]
DSA to Development [HYBRID]
Placement Preparation Crash Course [LIVE]

Machine Learning/Data Science Programming Languages


Complete Machine Learning & Data Science Program - [LIVE] C Programming with Data Structures
Data Analytics Training using Excel, SQL, Python & PowerBI - C++ Programming Course
[LIVE] Java Programming Course
Data Science Training Program - [LIVE] Python Full Course
Mastering Generative AI and ChatGPT
Data Science Course with IBM Certification

Clouds/Devops GATE
DevOps Engineering GATE CS & IT Test Series - 2025
AWS Solutions Architect Certification GATE DA Test Series 2025
Salesforce Certified Administrator Course GATE CS & IT Course - 2025
GATE DA Course 2025

@GeeksforGeeks, Sanchhaya Education Private Limited, All rights reserved

https://www.geeksforgeeks.org/er-diagram-of-a-company/ 8/8

You might also like