Categories
Uncategorized

Database Systems and Big Data

Connect with Assignment Expert Now

Assignment Task

1. Consider the following Student table in a University Student Records database.

tudentId fName lName discipline

  • 432987 Peter Gates Computing
  • 452318 Mark Best Mathematics
  • 485496 Joanne Perry Psychology
  • 421267 David Murray Mathematics
  • 489023 Jane Johnson Computing
  • 458623 Nick Williams Psychology
  • 415634 Mary Cummins Mathematics

Assume that admissions office created the following transaction to create the required report:

COMMIT;

  • SET TRANSACTION ISOLATION LEVEL READ COMMITTED;
  • START TRANSACTION;
  • SELECT COUNT(*) AS ‘Number of Students’
  • FROM student;
  • SELECT discipline AS Discipline, COUNT(*) AS ‘Number of Students’
  • FROM student
  • GROUP BY discipline;
  • COMMIT;
  • Assume that when the above transaction has completed executing the first SELECT query that computes the grand total, two new students, who were allowed to late register, added themselves to the Student table,
  • each running an insert query on the Student table:
  • INSERT INTO student VALUES(465891,’John’,’Jobs’, ‘Computing’);
  • INSERT INTO student VALUES(434567,’Linda’,’Ford’, ‘Psychology’);

i) Explain the problem with the above described scenario involving multiple transactions running concurrently on the Student table.

ii) Explain how you would solve the problem from (i) using your knowledge of transaction management

2.Consider the following transaction scenario where Tis are transactions accessing several data items Xis:

Transaction Data Items Locked by Transaction Data Items Transaction is Waiting for

  • T1 X2 X1,X3
  • T2 X3, X10 X7, X8
  • T3 X8 X4, X5
  • T4 X7 X1
  • T5 X1,X5 X3
  • T6 X4,X9 X6
  • T7 X6 X5

i) Produce a wait-for-graph for the above transaction scenario. (5)

ii) Using the wait-for-graph from part (i), determine whether the transactions are in a deadlock and explain how you detected deadlock. That is, you need to identify all the cycles in the WFG. (3)

iii) Explain how you would resolve the deadlock if it is detected in part(ii)

This Statistics Assignment has been solved by our Statistics Experts at TVAssignmentHelp. Our Assignment Writing Experts are efficient to provide a fresh solution to this question. We are serving more than 10000+Students in Australia, UK & US by helping them to score HD in their academics. Our Experts are well trained to follow all marking rubrics & referencing style.

    

Be it a used or new solution, the quality of the work submitted by our assignment Experts remains unhampered. You may continue to expect the same or even better quality with the used and new assignment solution files respectively. There’s one thing to be noticed that you could choose one between the two and acquire an HD either way. You could choose new assignment solution file to get yourself an exclusive, plagiarism (with free Turnitin file), expert quality assignment or order an old solution file that was considered worthy of the highest distinction.

  • Uploaded By : Roman

  • Posted on : January 04th, 2020

  • Downloads : 0

Order New Solution

Can’t find what you’re looking for?

Apply on checkout*Coupon Code:- HNY2022

Get Flat 20% + 22%* Off on Our One-to-One Academic Assistance

CLICK HERE TO GET THIS ANSWER