학습 내용 기록
주제 선정 사유
- SQLD 시험 학습 문제 주제 중에 하나
- SQLD 자격증 강의에 포함되어 있음
주제에 대한 학습 레퍼런스
주제에 대한 학습 내용과 내가 이해한 것을 요약
- 엔터티(Entity)의 정의
- 우리가 표현하고 싶은 하나의 것(Thing). 개체
- 사람, 동물, 사물 등의 표현하고 싶은 개체
- 엔터티와 인스턴스
- 데이터베이스 관점에서 학생이라는 테이블이 존재한다면
- 엔터티는 학생 테이블 자체를 의미함
- 인스턴스는 학생 중 제임스라는 하나의 학생 개체를 의미함
- 그래서 엔터티는 인스턴스의 집합이라고도 말할 수 있음
- 데이터베이스 관점에서 학생이라는 테이블이 존재한다면
- 엔터티와 속성
- 데이터베이스 관점에서 학생이라는 테이블이 존재한다면
- 엔터티는 학생 테이블 자체를 의미함
- 속성은 학생 테이블에 들어갈 이름/나이/학년 등의 말 그대로 속성을 의미함
- 데이터베이스 관점에서 학생이라는 테이블이 존재한다면
- 엔터티의 특징
- 업무(서비스, 비즈니스)에서 필요로 하는 정보로 구성되어야 함
- 확실히 구분되는 하나의 엔터티를 만들어야 함
- 하나의 엔터티는 2개 이상의 인스턴스로 구성되어 있어야 함
- 인스턴스가 한 개 밖에 없는 엔터티는 집합이 아니기 때문에 엔터티가 아님
- 엔터티는 업무 프로세스에 활용 되어야 함
- 엔터티는 설명할 수 있는 속성이 존재해야 의미를 가짐
- 엔터티가 만들어졌다는 것은 다른 엔터티와의 연관성이 있음을 나타냄
엔터티의 특징 관련 문제 보기 |
엔터티는 업무 프로세스에 활용되어야 합니다 |
하나의 엔터티는 2개 이상의 인스턴스로 구성되어 있어야 합니다 |
주식별자만 존재하고 일반 속성은 전혀 없는 경우 엔터티가 아닙니다 |
엔터티는 업무에서 필요로 하는 정보로 구성되어야 합니다 |
관계가 설정되지 않은 엔터티는 부적절한 엔터티가 도출되었거나 다른 엔터티와의 직접적인 연결관계를 찾지 못한 것입니다 |
- 엔터티의 분류
- 유/무형에 따른 분류
- 유형 엔터티 : 물리적인 형태가 존재하는 엔터티 (상품 / 사람)
- 개념 엔터티 : 물리적인 형태가 아닌 관리해야 할 개념적인 정보로 구분된 엔터티 (학과 / 코스닥 종목)
- 사건 엔터티 : 특정한 이벤트에 종속되는 엔터티. 업무 수행에 발생하며 통계에 이용 (이벤트 응모 / 주문)
- 발생 시점에 따른 분류
- 기본/키 엔터티 : 관계가 아닌 독립적인 생성이 가능한 엔터티. 부모 역할을 함 (고객 / 상품)
- 중심 엔터티 : 기본 엔터티로부터 발생하며 업무에서 중심 역할 수행 (주문 / 배송)
- 행위 엔터티 : 두 개 이상의 부모 엔터티로부터 발생. 내용이 바뀌거나 양이 증가 (주문 내역 / 취소 내역)
- 유/무형에 따른 분류
- 엔터티의 네이밍
- 가능한 업무에서 사용하는 용어 사용
- 의미가 온전하게 드러나게 작성
- 가능한 축약어를 지양
- 단수 명사를 사용하고 띄어쓰기를 사용하지 않음
- 유일한 이름을 부여함
- 생성 의미대로 이름을 부여함
학습 회고 및 내용 평가
학습접근도
(쉽게 찾아볼 수 있다/찾다 보면 나온다/깊게 탐색해야 알아낼 수 있다)
학습 필요도
(반드시/그렇다/우선 순위가 아님)
학습 난이도
(바로 잘 풀어 설명할 수 있다/몇 번 더 복습해야 한다/아주 깊게 고민하고 탐구해야 한다)
학습 메타인지
(정확하게 학습계획과 수행 일치/하루 이틀 정도 계획에서 벗어남/일주일 이상 정도 계획에서 벗어남)
학습 평가 결론 및 계획 수정 사항
- 데이터베이스 이론 중, 쉬운 편에 속함
- 각 개념에 대해서 잘 이해하기 위해서는 더욱 상세한 내용 학습이 필요하지만, 이후 학습 예정
분류
#SQL#SQLD#SQLD자격증#데이터#쿼리#데이터모델링#데이터모델링 개념#데이터모델링 엔터티
'So, What I Learned > 자격증 공부' 카테고리의 다른 글
[WIL] SQLD - 데이터 모델링/속성(Attribute) (0) | 2024.05.19 |
---|---|
[WIL] SQLD - 데이터 모델링 / 데이터 모델링의 요소와 ERD (0) | 2024.05.19 |
[WIL] SQLD - 데이터모델링/3층 스키마 (0) | 2024.05.06 |
[WIL] SQLD - 데이터모델링/데이터모델링의 이해 (0) | 2024.05.06 |
[WIL] SQLD - 데이터/데이터베이스란? (0) | 2024.05.06 |