Recent questions tagged tbb-dbms-2

0 votes
1 answer
1
Given a relation R(A, B, C, D, E, F, G, H) with keys BD and C and functional dependenciesD→G, E→F and H→C, decompose the R into the highest normal form possible.
2 votes
1 answer
11
Consider the following transaction involving two bank accounts $A$ and $B$.$\begin{array}{|l|} \hline \text{read(A);} \\ \hline A:=A-250; \\ \hline \text{write(A);} \\ \...
1 votes
1 answer
12
1 votes
1 answer
13
2 votes
1 answer
14
The above ER diagram depicts a book rental scheme.If this ER diagram is mapped to a relational model, to correctly depict this above scenario, the total number of relatio...
3 votes
2 answers
16
$\sigma_{A=B \text{ and } B=C \text{ and } C=A} \bigg( \Pi_A (R) \times \Pi_B (R) \times \Pi_C (R) \bigg)$The number of rows returned by the above relational algebraic ex...
3 votes
1 answer
17
What is the number of rows returned by an SQL query on the below EMP table?$\begin{array}{|c|c|c|} \hline \text{eno} & \text{ename} & \text{manager} \\ \hline 1 & A & \te...
3 votes
1 answer
24
Consider the following schedule:$\begin{array}{|l|l|} \hline T1 & T2 \\ \hline {} & \text{Read (A)} \\ \hline {} & A = A + 10 \\ \hline {} & \text{ Read (B)} \\ \hline...
3 votes
1 answer
26
Decompose the following table into BCNF:$R(ABCD)$$A \rightarrow C$$C \rightarrow A$$AB \rightarrow D$The result is:(AC) (ABD)(AC) (CBD)(AB)(BAD)Both (A) & (B)
3 votes
2 answers
28
A relation $R(P,Q,R,S)$ has $\{PQ, QR, RS, PS\}$ as candidate keys. The total number of superkeys possible for relation $R$ is ______
0 votes
1 answer
29
Consider the following schedule:$\begin{array}{|c|c|} \hline T1& T2 \\ \hline R(A) &{} \\ \hline R(B) & {} \\ \hline R(C) & {} \\ \hline {} & R(A) \\ \hline {} & R(B) \\...
1 votes
2 answers
30
The relation R (ABCDE) with FD set $\{AB \rightarrow CDE, \ A \rightarrow C, \ C \rightarrow D\}$ is in which of the following normal forms? 1NF but not in 2NF in both 2...