what is transaction in dbms

Solutions on MaxInterview for what is transaction in dbms by the best coders in the world

showing results for - "what is transaction in dbms"
Selyan
03 Nov 2020
1A transaction can be defined as a group of tasks. 
2A single task is the minimum processing unit which cannot be
3divided further.
4
5EG:-
6A’s Account
7--------------------------
8Open_Account(A)
9Old_Balance = A.balance
10New_Balance = Old_Balance - 500
11A.balance = New_Balance
12Close_Account(A)
13
14
15B’s Account
16---------------------------
17Open_Account(B)
18Old_Balance = B.balance
19New_Balance = Old_Balance + 500
20B.balance = New_Balance
21Close_Account(B)