[7급 국가직 데이터베이스론 2021년 6번]

트랜잭션 T1과 T2가 아래와 같이 수행될 때, T1의 ㉠, ㉡의 출력 값은? (단, 팬텀(phantom)을 초래하는 위반들을 허용하지 않는다)
sale
no
name
price
1
a1
200
2
a2
150
3
b1
100
T1
T2
set transaction isolation
level repeatable read;
 
 
set transaction isolation
level repeatable read;
start transaction;
 
 
start transaction;
 
insert into sale 
values(4, ‘b2’, 50);
select ㉠ sum(price) 
from sale;
 
 
commit
update sale set price=price+100
where no=3;
 
select ㉡ sum(price) 
from sale;
 
commit
 
㉠ ㉡
데이터베이스론
  1. ①450 550
  2. ②450 600
  3. ③500 600
  4. ④500 500

선지를 골라 바로 채점해 보세요.

정답 ①

출처: 인사혁신처 공개 기출(공공데이터포털, 이용허락 제한 없음)

신고가 접수됐습니다. 감사합니다.

오류 신고