Computer Science/Database Design3 [데이터베이스 설계] Database Design Normalization 이 글은 "Database System Concepts, 7th edition"을 바탕으로 작성되었습니다. 1. Overview of Normalization 1) Features of Good Relational Designs instructor과 department table을 합쳤을 때, good design? redundancy -> 같은 dept_name의 building budget이 중복 incomplete -> new department를 추가했을때, 교수가 null값인 상황 -> ID에 null값이 들어감(삽입 이상) mozart를 삭제했을때 music과도 사라지게 됨 (삭제 이상) 2) A combined schema without repetition combine하는게 꼭 나쁘지는 않.. 2021. 12. 4. [데이터베이스 설계] Database Design Using the E-R Model(2) 이 글은 "Database System Concepts, 7th edition"을 바탕으로 작성되었습니다. 1. Reduction to Relation Schemas 1) Redcution to Relation Schemas ERD -> RDB 변환 규칙 entity와 relationship 각각이 table 하나로 변환 column으로 만드는 것은 변환 규칙이 다 정해줌 2) Representing Entity Sets strong: course (course_id,title,credits) weak: section(course_id,sec_id,sem,year) (strong pk와 합성) sec(course_ id) ->course(course_id) foreign key 3) Representat.. 2021. 11. 27. [데이터베이스 설계] Database Design Using the E-R Model(1) 이 글은 "Database System Concepts, 7th edition"을 바탕으로 작성되었습니다. 1. Database Design 1) Design Phases Initial phase (초기 단계) 데이터베이스 사용자 관점에서 data needs( requirement analysis)를 완전히 characterize (특성화)한다. Second phase (두번째 단계) : data model을 고른다. requirements (data needs)를 충족시킬 수 있는 데이터베이스의 개념적 스키마( conceptual schema modeling (ER model), RDB로 구체화하기 전 단계로 abstract한 형태의 RDB를 만듦)를 설계한다. functional requirement.. 2021. 11. 27. 이전 1 다음