Key Properties of a DB :

  1. Data Consistency
  2. Data Durability
  3. Data Integrity
  4. Constraints

Every transaction (or operation) in DBs must follow these properties :

A.C.I.D

A --> Atomicity

C --> Consistency

I --> Isolation

D --> Distributed

Atomicity :

All statements in a transaction takes effect or none take place

Why ??

Say in a DB two transactions have to take place, say in two separate tables and machine crashes before second transaction takes place then our system will be in an inconsistent state

Eg :

image.png

Consistency :

Data will never go incorrect, no matter what constraints, cascades, triggers.

<aside>

Read More :

More on Consistency

</aside>

Isolation :