패닉
-
[DB이론] 2. 관계 기수성 ~ 정규화DB 2016. 8. 25. 17:05
관계의 형태에는 기수성 다대일 (Many to One) M:1 다대다 (Many to Many) M:M 일대일 (One to One) 1:1 대부분의 관계가 다대일 관계 1:1 관계는 실제로는 동일한 엔터티일 경우가 많다(속성을 분리하여 생성한 엔터티) 1:1 관계가 많이 나타난다면 엔터티가 명확하게 정의되지 않았음을 의미한다. M:M 다 풀려지지 않은 관계 정규화란? - 관계형 데이터베이스의 설계에서 중복을 최소화하게 데이터를 구조화하는 프로세스를 정규화라고 한다. 데이터베이스 정규화의 목표는 이상이 있는 관계를 재구성하여 작고 잘 조직된 관계를 생성하는 것에 있다. 일반적으로 정규화란 크고, 제대로 조직되지 않은 테이블들과 관계들을 작고 잘 조직된 테이블과 관계들로 나누는 것을 포함한다. 정규화의 목..
-
[DB이론] 1. 모델링 정의 ~ 관계DB 2016. 8. 25. 15:39
모델 : 복잡한 현실 또는 목표 세계의 정보를 추후 활용하기 위하여 약속된 표기방법으로 표현한 결과 모델링의 특징 1. 추상화/단순화2. 일반화3. 명확화 엔터티 실습 회원가입은 웹사이트나 매장에서 이루어지며, 성명, 주민등록번호, 핸드폰 번호, 집주소, 생년월일, 결혼기념일을 입력하면 회원번호를 발급하여 회원으로 등록하고 회원번호를 통해 회원들을 식별한다. 웹사이트에서 가입했는지 매장에서 가입했는지 회원의 가입경로에 따라 웹사이트를 통해 가입한 회원은 로그인아이디와 비밀번호를 추가로 관리하고, 매장에서 가입한 회원은 가입한 매장번호를 추가로 관리한다. 관계(relationship) - 엔터티 간의 업무적 연관성을 표현 데이터의 참조 무결성을 보장하기 위한 매우 중요한 업무 규칙관계명, 기수성(cardi..