Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

You are going to simulate a logging and rollback system for a simple database that encompasses individuals, their salary, department to which they are affiliated

You are going to simulate a logging and rollback system for a simple database that encompasses individuals, their salary, department to which they are affiliated to in the corporation, and their civil status.
As we are focusing on the conceptual side and will be running a simulation, we will not be using any specific RDBMS. After all, every RDBMS includes among their capabilities this logging and rollback functionality.
To simplify the problem, we will focus on the attributes 'Salary', 'Department' and Civil_status' of three individuals: the transaction list in the starting code will specify the update transactions that will be processed.
Below you'll find an image of the DB ( a simple .csv file):
['Unique_ID', 'First_name', 'Last_name', 'Salary', 'Department', 'Civil_status']
['1', 'John', 'Lennon', '230000', 'Projects', 'Married']
['2', 'Joan', 'Doe', '100000', 'Human Resources', 'Single']
['3', 'Mary', 'Carpenter', '250000', 'Projects', 'Separated']
['4', 'John', 'Ingham', '125000', 'Projects', 'Separated']
['5', 'Rachel', 'Sturgeon', '197000', 'Engineering', 'Married']
['6', 'Hanifa', 'Salima', '50000', 'Engineering', 'Married']
['7',' 'Femi', 'Okeke', '425000', 'Industries', 'Married']
['8', 'Moe', 'Khalifa', '325000', 'Industries', 'Married']
['9', 'Katy', 'Jones', '475000', 'Management', 'Single']
['10', 'Lin', 'Wang', '435000', 'Engineering', 'Married']
['11', 'Art', 'Blanket', '137000', 'Projects', 'Single']
['12', 'Vivek', 'Singh', '231000', 'Industries', 'Married']
['13'', 'Amal', 'Khan', '230000', 'Projects', 'Single']
['14', 'Richard', 'Carpenter', '123000', 'Human Resources', 'Single']
['15', 'Ryuichi', 'Sakamoto', '321000', 'Processing Facilities', 'Single']
image text in transcribed

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

More Books

Students also viewed these Databases questions

Question

6. Are my sources reliable?

Answered: 1 week ago

Question

5. Are my sources compelling?

Answered: 1 week ago