# Data integrity

DATABASE data integrity, transaction, sequence, cardinality (230713)
1. 데이터 무결성에 대하여 설명하시오. > data integrity, 데이터 무결성은 컴퓨팅 분야에서 완전한 수명을 거치며 데이터의 정확성과 일관성을 유지하는 것을 가리킨다. > 특히 DB, RDBMS 에서 중요한 기능이다. 2. 데이터 무결성을 위한 제약조건 5가지를 나열하고 설명하시오. not null > null 값이 들어갈 수 없다. > 값을 무조건 지정해줘야 한다. unique > null값은 값이 정해지지 않은 것이므로 들어갈 수 있으나 값이 정해졌다면 유일한 값만 들어가야 한다. primary key > not null과 unique 둘다 적용된 것. null 값일 수 없고 고유한 값이 들어가야 한다. foreign key > 타 테이블의 primary key값을 이용해 들어오는 자리. 그러므로 참조한 테이블의 primary key값이 존재하지 않으면 들어갈 수 없다. check > insert 시

[CS] Learn SQL Day-77
Database Normalization It has to do with database design. Determines the structure of how data will be stored. Data redundancy Data Integrity Anomaly Data Redundancy Copy of the actual data. It's easy when it comes to data recovery. However, it has disadvantages such as difficulty in consistent data processing, waste of storage space, and reduced data efficiency. Data Integrity It means maintaining accuracy and consistency throughout the lifecycle of data. In other words, it

[CS] SQL 과 데이터베이스 정규화 Day-50
데이터베이스 정규화 데이터베이스 정규화는 설계와 관련이 있습니다. 설계에 따라 데이터가 어떻게 저장될지 그 구조를 결정하기 때문입니다. Data redundancy Data integrity Anomaly Data redundancy (중복성) 실제 데이터의 동일한 복사본이나, 부분적인 복사본을 뜻합니다. 데이터를 복구할 때 수월합니다. 단점 일관된 자료 처리의 어려움 저장 공간 낭비 데이터 효율성 감소 Data integrity (무결성) 데이터 정규화는 무결성을 강화하는 목적이 강합니다. 데이터의 수명 주기 동안 정확성과 일관성을 유지하는 것을 뜻합니다. 입력된 데이터가 오렴되지 않고, 입력된 그대로 데이터를 사용할 수 있습니다. Anomaly (현상) 기대한 데이터와 다른, 이상 현상을 뜻합니다. 갱신 이상(update anomaly) 삽입 이상(insertion anomaly) 삭제 이상(dele