0% found this document useful (0 votes)
4 views3 pages

Entity

The document provides a structured explanation of key concepts in data modeling, including Entities, Attributes, Data Types, and Relationships. It defines entities as real-world objects that become tables in databases, attributes as properties of entities, data types as the kind of data attributes can hold, and relationships as connections between entities. Examples and types for each concept are provided to aid understanding and learning.

Uploaded by

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

Entity

The document provides a structured explanation of key concepts in data modeling, including Entities, Attributes, Data Types, and Relationships. It defines entities as real-world objects that become tables in databases, attributes as properties of entities, data types as the kind of data attributes can hold, and relationships as connections between entities. Examples and types for each concept are provided to aid understanding and learning.

Uploaded by

MELESE MISGANAW
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd

Sure!

Let’s make a complete, clear, and structured explanation of Entities, Attributes, Data
Types, and Relationships, including types and examples suitable for learning and system
modeling.

1. Entities
Definition:

 An entity is a real-world object, person, place, or concept about which a system stores
data.
 Entities usually become tables in databases.

Types of Entities:

1. Strong Entity
o Has a unique primary key to identify it.
o Exists independently.
o Example: Student, Book, Teacher
2. Weak Entity
o Cannot exist independently, depends on a strong entity.
o Identified by a partial key plus the primary key of the strong entity.
o Example:
 Dependent of Employee → EmployeeID + DependentName identifies
each dependent.
 OrderItem depends on Order (OrderID + ItemID)

2. Attributes
Definition:

 An attribute is a property or characteristic of an entity.

Types of Attributes:

1. Simple Attribute – Cannot be divided further.


o Example: Name, Age
2. Composite Attribute – Can be broken into smaller subparts.
o Example: Full Name → First Name + Last Name
3. Derived Attribute – Can be calculated from other attributes.
o Example: Age → Current Year – Birth Year
4. Multi-valued Attribute – Can have multiple values for one entity.
o Example: Phone Numbers, Skills

3. Data Types
Definition:

 Data type defines the kind of data an attribute can hold.

Common Data Types:

 Integer / Number: Age, Quantity


 Text / String: Name, Address
 Date / Time: Date of Birth, Order Date
 Boolean: Yes/No, True/False
 Decimal / Float: Price, Salary

4. Relationships of Data
Definition:

 A relationship describes how two or more entities are connected or associated.

Types of Relationships:

1. One-to-One (1:1)
o One entity is related to only one instance of another entity.
o Example: Each Student has one StudentID card.
2. One-to-Many (1:N)
o One entity is related to many instances of another entity.
o Example: A Teacher teaches many Courses, but each Course has only one
Teacher.
3. Many-to-Many (M:N)
o Many instances of one entity relate to many instances of another entity.
o Example: Students enroll in many Courses, and each Course has many
Students.

Quick Summary Table


Concept Definition Types Example
Real-world
Entity Strong / Weak Student, Dependent
object/concept
Simple, Composite, Name, Full Name, Age, Phone
Attribute Property of an entity
Derived, Multi-valued Numbers
Integer, String, Date,
Data Type Type of data stored Age (Integer), Name (String)
Boolean, Decimal
Connection between Teacher teaches Courses (1:N),
Relationship 1:1, 1:N, M:N
entities Student enrolls Courses (M:N)

💡 Memory Tip:

 Entity = Noun (object/concept)


 Attribute = Adjective about the entity
 Data Type = Kind of information
 Relationship = How entities connect

If you like, I can draw a full ERD-style diagram showing:

 Strong & Weak Entities


 Attributes with data types
 1:1, 1:N, and M:N relationships

This makes it very visual and easy to remember for students.

You might also like