When defining a foreign key constraint in SQL, we can specify three possible actions the database system can take (the default and two others) when a value referenced by the foreign key value is to be deleted or updated. Explain what the three possible actions do.
Give two reasons why SQL views are considered useful.
What is the acid test?
Transactions are designed to meet the “ACID” test:
Views are sometimes described as virtual. Describe what is meant by this.
What is Dirty data?
Dirty data means data written by a transaction that
has not yet committed.
What is a dirty read operation and what is the risk with them?
Which Transaction Isolation Levels exist in SQL?
Which of the SQL transaction isolation levels will disallow dirty read operations?
SERIALIZABLE
REPEATABLE READ
READ COMMITTED
Under which conditions is a view said to be updatable in SQL?
What does updatable mean in the context of a sql view?
inserts, updates or deletes can be applied
Give the names for the two operations which end a transaction and explain how the database is affected by each.
What is a transaction commit?
What is a transaction abort?
Is a dirty read operation one that should always be avoided?