가장 많이 묻는 면접 질문과 답변 & 온라인 테스트
면접 준비, 온라인 테스트, 튜토리얼, 라이브 연습을 위한 학습 플랫폼

집중 학습 경로, 모의고사, 면접 준비 콘텐츠로 실력을 키우세요.

WithoutBook은 주제별 면접 질문, 온라인 연습 테스트, 튜토리얼, 비교 가이드를 하나의 반응형 학습 공간으로 제공합니다.

Chapter 8

Transactions, ACID Properties, Schedules, and Serializability

Understand how DBMS ensures correctness when multiple operations and users interact with data simultaneously.

Inside this chapter

  1. What a Transaction Is
  2. ACID Properties
  3. Simple Transaction Example
  4. Schedules and Serializability
  5. Common Problems Without Proper Control
  6. Real Usage Example

Series navigation

Study the chapters in order for the clearest path from database fundamentals and SQL to transactions, indexing, recovery, distributed systems, tuning, and advanced DBMS engineering understanding. Use the navigation at the bottom to move smoothly across the full tutorial series.

Tutorial Home

Chapter 8

What a Transaction Is

A transaction is a logical unit of work that should either complete fully or not happen at all. Examples include transferring money between accounts, placing an order, reserving a seat, or updating inventory after payment.

Chapter 8

ACID Properties

  • Atomicity: all or nothing
  • Consistency: rules remain valid before and after the transaction
  • Isolation: concurrent transactions do not corrupt each other’s intermediate work
  • Durability: committed data survives crashes
Chapter 8

Simple Transaction Example

BEGIN TRANSACTION;
UPDATE Accounts SET balance = balance - 500 WHERE account_id = 1;
UPDATE Accounts SET balance = balance + 500 WHERE account_id = 2;
COMMIT;

If the second step fails after the first succeeds, a rollback must happen to preserve correctness.

Chapter 8

Schedules and Serializability

When multiple transactions run concurrently, their steps interleave to form a schedule. A schedule is considered serializable if the final result is equivalent to some serial execution. This concept is essential for correctness in multi-user systems.

Chapter 8

Common Problems Without Proper Control

  • Lost update
  • Dirty read
  • Non-repeatable read
  • Phantom read
Chapter 8

Real Usage Example

In a ticket-booking system, two users might try to reserve the last seat at the same time. Transaction isolation and concurrency control are what stop the system from selling the same seat twice.

Copyright © 2026, WithoutBook.