Archive

database overview 본문

데이터분석/SQL

database overview

neonii 2024. 7. 6. 20:41
728x90

생활코딩 Coding Everday DATABASE 참고

database

  • 관계형 DB: Oracle, MySQL, MS SQL Server, PostgreSQL
  • ~관계형 DB: MongoDB

  • MySQL의 경우 DB client로 MySQL monitor을 사용할 수도, MySQL workbench를 사용할 수도 있다.
    • MySQL monitor: 명령어 기반, server만 있다면 어디서든 실행할 수 있다는 장점이 있음
    • MySQL workbench: GUI 기반

관계형 DB: structured query language SQL

  • 관계형 DB의 핵심 기능 JOIN을 활용하면, 중복으로 인한 불필요한 용량을 줄일 수 있다.
    "every table in the database needs to have a single theme"
  • DB 이용자에게 table/schema/database server 각각에 대해 차등적인 권한을 부여할 수 있다.

data modeling

  1. 업무 파악
  2. 개념적 모델링: ER diagram
    - identifier: 식별자가 될 수 있는 candidate key는 primary key
    - cardinality: 1:1, n:1, n:m
    - optionality: mandatory는 I로 optional은 O로 표현
  3. 논리적 데이터 모델링: ER diagram을 관계형 DB에 활용하기 위해 표 형태로 변환
  4. 물리적 데이터 모델링

normalization

  • first normal form: atomic columns
  • second normal form: no partial dependecies
  • thrid normal form: no transitive dependencies

 

728x90

'데이터분석 > SQL' 카테고리의 다른 글

MySQL overview  (0) 2025.01.30