Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Using this tables, please provide me with the screenshot of codes using my SQL : Open four terminal sessions. 1.1. In the first terminal, set

Using this tables, please provide me with the screenshot of codes using my SQL : Open four terminal sessions.

1.1. In the first terminal, set the isolation level to read uncommitted.

1.2. In the second terminal, set the isolation level to read committed.

1.3. In the third terminal, set the isolation level to repeatable read.

1.4. In the fourth terminal, set the isolation level to serializable.

Perform insert, delete, update, and select operations on the s, p, j, and spj tables.

When all four terminals are executed simultaneously, display a schedule with a dirty read in a screen dump (refer to textbook cases). Specify which combination (1, 2, 3, or 4) of terminals shows the dirty read.

When all four terminals are executed simultaneously, display a schedule with a non-repeatable read in a screen dump (refer to textbook cases). Specify which combination (1, 2, 3, or 4) of terminals shows the non-repeatable read.

When all four terminals are executed simultaneously, display a schedule with a phantom read in a screen dump (refer to textbook cases). Specify which combination (1, 2, 3, or 4) of terminals shows the phantom read.

When two terminals are set to serializable, T1 attempts to increase the qty of spj by 10%, and T2 simultaneously tries to decrease the qty supplied by s1 by -10. Capture the execution states of the two terminals and submit them.

image text in transcribedimage text in transcribed

\begin{tabular}{|c|c|c|c|} \hline \multirow[t]{4}{*}{ dept } & dno & dname & budget \\ \hline & D1 & Marketing & 10M \\ \hline & D2 & Development & 12M \\ \hline & D3 & Research & 5M \\ \hline \end{tabular} emp \begin{tabular}{|c|c|c|c|} \hline eno & ename & dno & salary \\ \hline E1 & Lopez & D1 & 40K \\ E2 & Cheng & D1 & 42K \\ E3 & Finzi & D2 & 30K \\ E4 & Saito & D2 & 35K \\ \hline \end{tabular} s \begin{tabular}{|c|c|c|c|} \hline sno & sname & status & city \\ \hline S1 & Smith & 20 & London \\ S2 & Jones & 10 & Paris \\ S3 & Blake & 30 & Paris \\ S4 & Clark & 20 & London \\ S5 & Adams & 30 & Athens \\ \hline \end{tabular} p \begin{tabular}{|c|c|c|c|c|} \hline pno & pname & color & weight & city \\ \hline P1 & Nut & Red & 12.0 & London \\ P2 & Bolt & Green & 17.0 & Paris \\ P3 & Screw & Blue & 17.0 & Oslo \\ P4 & Screw & Red & 14.0 & London \\ P5 & Cam & Blue & 12.0 & Paris \\ P6 & Cog & Red & 19.0 & London \\ \hline \end{tabular} sp \begin{tabular}{|l|l|l|} \hline sno & pno & 941 \\ \hline S1 & P1 & 300 \\ S1 & P2 & 200 \\ S1 & P3 & 400 \\ S1 & P4 & 200 \\ S1 & P5 & 100 \\ S1 & P6 & 100 \\ S2 & P1 & 300 \\ S2 & P2 & 400 \\ S3 & P2 & 200 \\ S4 & P2 & 200 \\ S4 & P4 & 300 \\ S4 & P5 & 400 \\ \hline \end{tabular} part_structure \begin{tabular}{|c|c|c|} \hline major pno & minor pno & qty \\ \hline P1 & P2 & 2 \\ P1 & P3 & 4 \\ P2 & P3 & 1 \\ P2 & P4 & 3 \\ P3 & P5 & 9 \\ P4 & P5 & 8 \\ P5 & P6 & 3 \\ \hline \end{tabular} 108 toletbois. 6.22 Workbench . 2. s,p,sp, pp(=part_structure), dept, emp, j, spj[1] Workbench . sp , sj, pj . . 1) sp,pj,sj spj spj select 2) parts city parts warehouses locations city . city city, locatiol city

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

Databases Illuminated

Authors: Catherine Ricardo

2nd Edition

1449606008, 978-1449606008

More Books

Students also viewed these Databases questions

Question

What are some of the subtasks involved in the love and sex task?

Answered: 1 week ago

Question

Write down the Limitation of Beer - Lamberts law?

Answered: 1 week ago

Question

Discuss the Hawthorne experiments in detail

Answered: 1 week ago

Question

Explain the characteristics of a good system of control

Answered: 1 week ago

Question

State the importance of control

Answered: 1 week ago