Question 21
Question 22
Question 23
S1: r1(X); r2(X); w1(X); r3(X); w2(X) S2: r2(X); r1(X); w2(X); r3(X); w1(X) S3: r3(X); r2(X); r1(X); w2(X); w1(X) S4: r2(X); w2(X); r3(X); r1(X); w1(X)
Question 24
Question 26
Question 28
Question 29
Works (emp_name, company_name, salary)Here, emp_name is primary key. Consider the following SQL query
Select emp_name From works T where salary > (select avg (salary) from works S where T.company _ name = S.company _ name)The above query is for following :
Question 30
Consider the following log sequence of two transactions on a bank account, with initial balance 12000, that transfer 2000 to a mortgage payment and then apply a 5% interest. 1. T1 start 2. T1 B old=1200 new=10000 3. T1 M old=0 new=2000 4. T1 commit 5. T2 start 6. T2 B old=10000 new=10500 7. T2 commit Suppose the database system crashes just before log record 7 is written. When the system is restarted, which one statement is true of the recovery procedure?
There are 48 questions to complete.