translation

This is an AI translated post.

제이의 블로그

Conceptual Data Modeling

Select Language

  • English
  • 汉语
  • Español
  • Bahasa Indonesia
  • Português
  • Русский
  • 日本語
  • 한국어
  • Deutsch
  • Français
  • Italiano
  • Türkçe
  • Tiếng Việt
  • ไทย
  • Polski
  • Nederlands
  • हिन्दी
  • Magyar

Summarized by durumis AI

  • Conceptual data modeling is the process of separating entities, defining attributes, and expressing them as ERD, and uniquely identifying entities using identifiers and keys.
  • Relationships between entities arise from existence or behavior, and numerical relationships are expressed through cardinality such as 1:1, 1:N, and N:M.
  • The relationship between required data and optional data, as in a comment system, is represented through optionality, and is divided into Mandatory and Optional.

Conceptual data modeling is the process of separating related information into entity units and representing the relationships between entities as an ERD.

Entity Separation and Attribute Definition

An entity is something that exists and is independent and can store data.

Also, an attribute refers to the data that an entity has.

For example, teachers and students at a school meet the above conditions.

Here, a teacher is an entity that contains data such as name, age, and subject, and a student is also an entity that contains data such as name, grade, age, and student ID.

Here, the separated entities become tables in the relational database during the logical data modeling process, and the attributes become the columns of those tables.

Identifier and Key

Korea identifies each citizen uniquely through the resident registration number system.

At this time, the resident registration number of a resident is an identifier that identifies who the person is.

The resident registration number is unique to a specific person, so it does not overlap with other people.

When representing entities as ERDs, you should specify identifiers to uniquely identify the information.

Here, the specified identifier becomes aprimary key(Primary Key) during the logical data modeling process.


If there is no unique attribute that can be naturally designated as an identifier, asynthetic key(Artificial Key) is used.

However, synthetically generated keys are used universally because there is no risk of changes in all situations.


All attributes that can be used as identifiers in an entity are calledcandidate keys(Candidate Key), and

attributes that can be used as identifiers other than the primary key are calledalternate keys(Alternate Key).

And these alternate keys are good for indexing to improve performance.


In addition, in entities that represent the affiliation between departments and employees, department numbers and employee numbers are sometimes used as keys together. This is called acomposite key(Composite Key).

Relationship Identification

A relationship means the interaction between entities, and the relationship is divided into a relationship by existence and a relationship by action.

  • Relationship by Existence

For example, in a company, an employee cannot exist without a department, so it is a relationship by existence.

  • Relationship by Action

An employee can transfer departments through an application. This is a relationship by action.


This relationship is expressed as aforeign key(Foreign Key),join(Join) during the logical data modeling process.

Cardinality

The relationship between one entity and another entity is called cardinality. This represents the numerical relationship between each other.

This can be expressed as a 1:1 relationship (one-to-one), a 1:N relationship (one-to-many), and an N:M relationship (many-to-many) between each entity.

Among the above relationships, the N:M relationship cannot be expressed in a relational database, so an intermediate table is created to express it.

Optionality

Taking the comment system as an example, each comment must have one author, but the author may not write comments.

In this case, it has a relationship between Author (Mandatory) - Comment (Optional).

Mandatory is called Mandatory, and optional options are called Optional.


That is, it expresses whether an entity instance must have the data or must have it optionally.




Jay
제이의 블로그
1인분이 목표인 초보 개발자
Jay
Logical Data Modeling Logical data modeling is the process of transforming a conceptual data model into the relational database paradigm based on mapping rules, handling 1:1, 1:N, and N:M relationships, and ensuring data integrity through normalization. It refines tables throu

April 9, 2024

Kanban Board Project 2 Logical Data Modeling This document explains how to perform logical data modeling based on the conceptual data modeling ERD, step by step, and proposes solutions to difficulties that arise during the normalization process. In particular, it discusses in detail the consideratio

April 9, 2024

Kanban Board Project 1 Conceptual Data Modeling The Kanban Board project was a Wanted Backend internship assignment. I implemented the project again for practice with relational data modeling and conducted conceptual data modeling. Through the process of separating entities, defining identifiers, and i

April 9, 2024

ddㅍㅍㅍ There is no preview of durumis AI.
토렌(TOREN)
토렌(TOREN)
토렌(TOREN)
토렌(TOREN)

March 25, 2024

Hello There is no preview of durumis AI.
토렌(TOREN)
토렌(TOREN)
토렌(TOREN)
토렌(TOREN)

March 25, 2024

Hello There is no preview of durumis AI.
토렌(TOREN)
토렌(TOREN)
토렌(TOREN)
토렌(TOREN)

March 25, 2024

iyaaa No preview of durumis AI.
Axel Giovanni Manurung
Axel Giovanni Manurung
Axel Giovanni Manurung
Axel Giovanni Manurung

February 28, 2024

[Disability Awareness Column] Terms that Disabled and Non-disabled People Encounter in Everyday Life The term "disabled person" was created to convey respect for the human rights of people with disabilities and to emphasize social responsibility. Using the right terms is important to create a society where disabled people and non-disabled people respect
NEWS FDN (다큐)
NEWS FDN (다큐)
NEWS FDN (다큐)
NEWS FDN (다큐)
NEWS FDN (다큐)

April 12, 2024

What is Crawling? A web crawler is a software that automatically navigates web pages on the internet and collects information. It is an essential technology for search engines to understand the content of web pages and reflect it in search results. The crawling process inv
여행가고싶은블로거지만여행에대해다루진않을수있어요
여행가고싶은블로거지만여행에대해다루진않을수있어요
Virtual crawling bot image
여행가고싶은블로거지만여행에대해다루진않을수있어요
여행가고싶은블로거지만여행에대해다루진않을수있어요

April 26, 2024