Check out example codes for "sql begin transaction". It will help you in understanding the concepts better.

Code Example 1

--Applies to SQL Server and Azure SQL Database
 
BEGIN { TRAN | TRANSACTION }   
    [ { transaction_name | @tran_name_variable }  
      [ WITH MARK [ 'description' ] ]  
    ]  
[ ; ]

Learn ReactJs, React Native from akashmittal.com