What is a transaction in DBMS?

SQL
Easy
Flipkart
117.2K views

This question defines a logical unit of work. It is a core concept for data consistency.

Why Interviewers Ask This

Transactions ensure data correctness. Interviewers check if you understand atomicity and grouping. This is vital for financial and critical systems.

How to Answer This Question

Define a transaction as a sequence of operations treated as a single unit. Mention start and commit points. Explain success/failure states. Link to ACID properties. Give a banking example.

Key Points to Cover

  • Logical unit definition
  • Commit/Rollback
  • All-or-nothing rule
  • ACID connection

Sample Answer

A transaction in DBMS is a logical unit of work consisting of one or more operations performed together. It must be executed entirely or not at all, ensuring data consistency. Transactions begin with a START command and end with COMMIT or ROLLBACK. They are governed by ACID properties to guarantee reliability. For instance, a money transfer involves debiting one account and crediting another within a single transaction.

Common Mistakes to Avoid

  • Confusing with queries
  • Ignoring rollback
  • No consistency mention

Practice This Question with AI

Answer this question orally or via text and get instant AI-powered feedback on your response quality, structure, and delivery.

Start Practicing

Related Interview Questions

Browse all 49 SQL questionsBrowse all 81 Flipkart questions