Database Transactions can occur concurrently by several users.  This can cause issues with data consistency.  To help resolve this problem, RDBMS can implement Read Consistency.   Q4. What is Read Consistency?       Q5. What are two problems that could occur without data/read consistency? 1. 2.     Q6. What is Data Locking and how/why is it used?

Database System Concepts
7th Edition
ISBN:9780078022159
Author:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Chapter1: Introduction
Section: Chapter Questions
Problem 1PE
icon
Related questions
Question

 

 

 

Database Transactions can occur concurrently by several users.  This can cause issues with data consistency.  To help resolve this problem, RDBMS can implement Read Consistency.

 

Q4. What is Read Consistency?

 

 

 

Q5. What are two problems that could occur without data/read consistency?

1.

2.

 

 

Q6. What is Data Locking and how/why is it used?

 

 

 

Q7. Please review the following SQL statements and answer the following questions.

  1. On which line does the first commit occur?
  2. Is this first commit implicit or explicit?
  3. Which SQL DML statement is rolled back when line 12 is run?
  4. Which SQL DML statement is committed on line 16?
  5. Is the commit in line 16 implicit or explicit?
  6. Assume 10 of the ‘SA_REP’ employees start with a salary of 1000.00. What is their salary when 17 is run?
    1. NOTE: For those of you who are familiar with programming, assume there is no infinite loop here.

 

1 select * from employees;

2 DROP TABLE Employee_Project_Assignment;

 

3 UPDATE employees

      4    SET salary = salary + salary * 1.05

5    WHERE job_id = 'ST_CLERK';

6 SAVEPOINT clerk_increase;

 

7 UPDATE employees

8    SET salary = salary + salary * 1.1

9    WHERE job_id = 'SA_REP';

10 SAVEPOINT sa_rep_increase;

 

11 SELECT SUM(salary) FROM employees;

 

12 ROLLBACK TO SAVEPOINT clerk_increase;

 

13 UPDATE employees

14    SET salary = salary + salary * 1.075

15    WHERE job_id = 'SA_REP';

16 COMMIT;

 

17 select * from employees;

 

 

 

 

 

 

 

 

 

Expert Solution
steps

Step by step

Solved in 4 steps

Blurred answer
Knowledge Booster
Fundamentals of Distributed DBMS
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
Similar questions
  • SEE MORE QUESTIONS
Recommended textbooks for you
Database System Concepts
Database System Concepts
Computer Science
ISBN:
9780078022159
Author:
Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:
McGraw-Hill Education
Starting Out with Python (4th Edition)
Starting Out with Python (4th Edition)
Computer Science
ISBN:
9780134444321
Author:
Tony Gaddis
Publisher:
PEARSON
Digital Fundamentals (11th Edition)
Digital Fundamentals (11th Edition)
Computer Science
ISBN:
9780132737968
Author:
Thomas L. Floyd
Publisher:
PEARSON
C How to Program (8th Edition)
C How to Program (8th Edition)
Computer Science
ISBN:
9780133976892
Author:
Paul J. Deitel, Harvey Deitel
Publisher:
PEARSON
Database Systems: Design, Implementation, & Manag…
Database Systems: Design, Implementation, & Manag…
Computer Science
ISBN:
9781337627900
Author:
Carlos Coronel, Steven Morris
Publisher:
Cengage Learning
Programmable Logic Controllers
Programmable Logic Controllers
Computer Science
ISBN:
9780073373843
Author:
Frank D. Petruzella
Publisher:
McGraw-Hill Education