분류 전체보기
-
[Careerthon] 데이터베이스 기초 2네트워크/CS Study 2023. 11. 16. 11:56
개요 DB의 종류 인덱스 B-트리 DB최적화 조인 DB의 종류 계층형 (1960 ~ ) 역사가 오래된 DBMS로 폴더와 파일등의 계층 구조로 데이터를 저장 하드디스크나 DVD 파일 시스템 현재 거의 사용되지 않음 네트워크형 (1960 ~ ) 계층형의 단점을 보완하여 데이터 간 N 대 N 구성이 가능한 망형 모델 구조가 복잡해 유지보수가 어려움 관계형 (1970 ~ ) key와 value로 이루어진 데이터들을 행과열로 구성된 테이블구조로 단순화 시킨 모델 SQL을 사용하여 데이터를 처리 데이터 모델링이 간단하지만 비정형 데이터들을 다루거나 실시간 분석에 적합하지 않음 MYSQL 객체지향형 (1980 ~ ) 객체지향 프로그래밍 개념에 기반하여 만든 데이터베이스 모델 비정형 데이터들을 데이터베이스화 할 수 있..
-
[Careerthon] 정규화의 필요성과 과정네트워크/CS Study 2023. 11. 15. 11:54
정규화 관계형데이터베이스 데이터 모델의 중복을 최소화하고 일관성과 유연성 확보를 위한 목적으로 데이터를 분해하는 과정이다. 정규화를 통해서 테이블 간의 중복된 데이터를 최소화하고 무결성을 유지하고 DB의 저장용량을 줄일 수 있다. 제1정규화에서 모든 도메인이 원자값으로만 되어 있도록 설계한다. 제2정규화에서 테이블의 모든 컬럼이 완전 함수적 종속을 만족하게 만든다. 제3정규화에서 기본키가 아닌 속성들은 기본키에만 의존하도록 바꾼다 BCNF단계에서 결정자 중 후보키가 아닌 것을 제거한다 이후 다치종속을 제거하는 제4정규형과 조인종속성을 제거하는 제5정규형단계가 있겠다.
-
[Careerthon] 데이터베이스 기초네트워크/CS Study 2023. 11. 15. 11:34
데이터베이스 일정한 규칙, 규약을 통해 구조화되어 저장된 데이터 모음 엔티티 사람, 장소, 물건 등 여러개의 속성을 지닌 명사를 의미함 릴레이션 DB에 정보를 구분하여 저장하는 기본 단위엔티티에 대한 데이터를 릴레이션에 담아서 관리한다 위 이미지와 같이 "회원"이라는 엔티티는 릴레이션이라는 방에 넣어서 DB 안에서 관리된다. 속성 릴레이션에서 관리하는 구체적이며 고유한 이름을 갖는 정보 도메인 릴레이션에서 관리하는 구체적이며 고유한 이름을 갖는 정보 필드와 레코드 키 관계형 데이터베시으에서 테이블 관의 관계를 설정 및 식별하고 테이블 내부의 레코드를 고유하게 식별하는 데 사용되는 속성 테이블 간의 관계 1 대 1 : 참조하는 테이블의 객체와 참조되는 테이블의 객체가 단 하나의 관계를 가지는 것 1 대 N..