Docsity

SQL Transactions and Concurrency, Schemes and Mind Maps of Natural Language Processing (NLP)

Toggle sidebar
bg1
Lab 4
Types of Transactions
Q1: Insert two new rows in the employee table using an implicit statement.
Syntax:
SET IMPLICIT_TRANSACTIONS ON
COMMIT TRANSACTION
Q2: Insert another row, update any row which you insert previously and run the select
command to see the data. Later roll back the statement using implicit transaction.
Q3: Insert 2 more rows using explicit transaction:
Syntax:
BEGIN TRAN;
INSERT INTO Person VALUES (3, 'Bunny', 'Bugs', '742 Evergreen Terrace', 'Springfield', 54 );
COMMIT TRAN;
Q4: Insert another row with explicit transaction and rollback at the end.
Q5: Create a new table tblInventory with (id, Product, ItemsInStock)
Q6: Concurrency from slides
•Dirty reads:
•Lost updates:
•Non-Repeatable reads:
•Phantom reads:

Partial preview of the text

Download SQL Transactions and Concurrency and more Schemes and Mind Maps Natural Language Processing (NLP) in PDF only on Docsity!

Lab 4

Types of Transactions

Q1: Insert two new rows in the employee table using an implicit statement. Syntax: SET IMPLICIT_TRANSACTIONS ON COMMIT TRANSACTION Q2: Insert another row, update any row which you insert previously and run the select command to see the data. Later roll back the statement using implicit transaction. Q3: Insert 2 more rows using explicit transaction: Syntax: BEGIN TRAN; INSERT INTO Person VALUES (3, 'Bunny', 'Bugs', '742 Evergreen Terrace', 'Springfield', 54 ); COMMIT TRAN; Q4: Insert another row with explicit transaction and rollback at the end. Q5: Create a new table tblInventory with (id, Product, ItemsInStock) Q6: Concurrency from slides

  • Dirty reads:
  • Lost updates:
  • Non-Repeatable reads:
  • Phantom reads: