I got a bit confuse with term transaction. Suppose in transaction A we have two commands C1 and C2 and same in transaction B. Now both transaction come at same time then Are these observations correct?
All commands of transaction A C1 and C2 will be done first (assuming A enter first) , then only commands of transaction B will be executed.
Any command of transaction A or B can be executed but with assurance that If any of the command fails of any of the transaction then that transaction will be rollback.
If second case is true then in transaction by default, it do not lock any resource until its completion
If first case is true then by default transaction hold lock on resources until their completion.
thanks
Amit Aggarwal