Contents

About the characteristics of Entity

   Aug 23, 2024     3 min read

This article examines the characteristics of Entity.

Hello!

Today, we’re going to learn about the fundamental concepts of database design: Entity.

Entities play an important role in databases and are essential for managing and organizing data systematically.

With a better understanding of the characteristics of the entity, you can design more efficient and consistent data models.

Let’s take a look at the main characteristics of the entity one by one.

Uniqueness

Description

The entity must represent a unique object in the database.

This means that each instance of the entity must have a unique identifier so that it can be distinguished from each other.

This identifier is defined as Primary Key.

Example

  • Customer entity: Customer ID must be unique, which can distinguish each customer.
  • Product entity: The product ID must be unique, which allows you to identify each product.

Attributes

Description

An entity consists of multiple properties.

Attributes represent attributes of an entity, each of which contains specific information about the entity.

Attributes are important components that describe the data elements of an entity.

Example

  • Customer entity: It may have properties such as name, contact, address, etc.
  • Product entity: may have attributes such as name, price, manufacturer, etc.

관계 (Relationships)

Description

An entity can relate to other entities.

These relationships indicate associations between entities within the database.

Relationships are important for maintaining data consistency and ensuring connectivity between data.

Example

  • Relationship between customer and order: Customer can place multiple orders, each of which belongs to one customer.
  • Relationship between product and order: One order may contain multiple products, each of which may be included in multiple orders.

Identifiability

Description

The entity must be uniquely identifiable.

This means that each entity instance must have its own properties.

Ensuring this identifiability is default key.

A default key is a set of attributes or attributes that uniquely identify each instance of an entity.

Example

  • Customer entity: Customer ID is the default key to uniquely identify each customer.
  • Order entity: Order ID is the default key to uniquely identify each order.

Data Integrity

Description

The entity must maintain data integrity.

This means that the entity’s data remains accurate and consistent.

To maintain data integrity, you must set the appropriate Constraint within the database.

Example

  • Customer entity: The customer’s email address must be unique and non-overlapping.
  • Product entity: The price of the product must be greater than zero and cannot be negative.

Abstraction

Description

The entity abstracts real-world objects so that they can be managed within a database.

Abstraction is the process of simplifying complex real-world objects to make them easier to manage within a database.

Example

  • Customer entity: Abstracts real-world customers and manages them with attributes such as name, contact, address, etc. within the database.
  • Product entity: Abstracts real-world products and manages them with attributes such as name, price, manufacturer, etc. within the database.

at the end of the day

An entity is the basic unit of database design, with features such as uniqueness, attributes, relationships, identifiability, data integrity, abstraction, and more.

Understanding and leveraging these features will help you design more efficient and consistent data models.

Designing a database that takes into account the characteristics of the entity will make it much easier to manage and utilize the data.

In this post, we learned about the main characteristics of the entity.

In the next post, we will talk about the relationship between entities and how to design it effectively.

Please look forward to it!