프로그래머스 - 프론트엔드 미니 데브코스 (2023. 01. 05 19:00 ~ 22:00)
[2022 동계 모각코] 1회차 회고록
1회차(2023.01.05 19:00 ~ 22:00) 오늘의 목표 1. 프로그래머스 - React 강의 듣기 2. Spring 개요, 강의, 책 찾기 1. 프로그래머스 - React 강의 듣기 React 소개 리액트는 페이스북에서 만들어졌고, 2013년 5월에
narlo23.tistory.com
김종익교수님 - DB 복습 (2023.01.07 11:00 ~ 13:00)
DBMS
특정한 enterprise에 대한 정보만 가지고 있다.
서로 연관이 있는 데이터의 집합
- 가치있는 데이터
- 상대적으로 큰 데이터
- 동시에 여러명의 사용자, 응용프로그램이 접근하는
Data, Data의 연관관계, 구조, 제약조건을 기술하기 위한 것이 Data Model
- Relational model
- Entity-Relationship data model
- Object-based data models
- Semi-structured data model (XML)
Schema
- logical schema : 프로그래밍의 타입에 해당
- physical schema
- instance : 값
DDL(Data Definition Language)
스키마를 정의할 수 있게 해주는 언어
- create table
DML(Data Manipulation Language)
데이터를 꺼낼 수 있게 해주는 언어
SQL Query Language
- select from where
Query Processing

Transaction management
한 단위의 작업을 트랜잭션이라고 함
atomicity, consistency, isolation, durability
Relational Model
superkey - 튜플을 유일하게 구분할 수 있는 속성
candidate key - minimal한 candidate key가 superkey
primary key - candidate key 중에 DBA가 선택한 하나의 키
foreign key - 다른 테이블에 있는 특정 튜플을 가리키고 싶을 때

projection : 테이블을 세로로 자르는 것
Domain Types in SQL
- char(n)
- varchar(n)
- int
- smallint
- numeric(p, d)
- real, double precision
- float(n)
update set where
create table
insert into values
delete from
drop table
alter table add
alter table drop
정렬
order by
desc : descending order
asc : ascending order
between A and B
A와 B 사이
union : 합집합
intersect : 교집합
except : 차집합
중복을 삭제한다.
중복을 삭제하지 않는 방법
- union all
- intersect all
- except all
null value
is null, is not null
aggregate functions
- avg
- min
- max
- sum
- count
group by - having
join operations
- natural join : 공통으로 가지는 attribute 값이 같은 경우 join => 의도하지 않은 값이 연결되는 문제 발생 가능성
- inner join
- outer join
- left outer join
- right outer join
- full outer join
view
create view as
transactions
- commit work
- rollback work
'SW Academy' 카테고리의 다른 글
[CNU SW Academy] 29일차(23.01.10) (0) | 2023.01.10 |
---|---|
[CNU SW Academy] 28일차(23.01.09) (0) | 2023.01.09 |
[CNU SW Academy] 27일차(23.01.06) (0) | 2023.01.06 |
[CNU SW Academy] 26일차(23.01.05) (0) | 2023.01.05 |
[CNU SW Academy] 25일차(23.01.04) (0) | 2023.01.04 |