recategorized by
62 views
1 votes
1 votes
Given that the relations $R(A,B)$ and $S(C,D)$.
$$\overset{R}{\begin{array}{|c|c|c|c|}
\hline
\textbf{A} & \textbf{B}
\\\hline
1 & a
\\\hline
2 & c
\\\hline
\end{array}}\qquad \overset{S}{\begin{array}{|c|c|c|c|}
\hline
\textbf{C} & \textbf{D}
\\\hline
1 & b
\\\hline
3 & d
\\\hline
\end{array}}$$
If the number of rows in $R \Join_{\langle A = C\rangle} S = a$(natural join), the number of rows in $R ⟕_{\langle A = C\rangle} S = b$ (left outer join), the number of rows in $R ⟖_{\langle A = C\rangle} S = c$ (right outer join), and the number of rows in $R ⟗_{\langle A = C\rangle} S = d$ (full outer join), then the value of $2a + 3b + 5c + 7d = $ ________
recategorized by

1 Answer

Best answer
1 votes
1 votes
Here, $a = 1,b = 2,c = 2,$ and $d = 3.$

Now, the value of $2a + 3b + 5c + 7d = 2+6+10+21 = 39.$
selected by
Answer:

Related questions

1 votes
1 votes
1 answer
1
gatecse asked Oct 15, 2020
46 views
Given the Sailors table$${\textbf{Sailors}}$$$${\begin{array}{|c|c|c|c|}\hline\textbf{Sid} & \textbf{Sname} & \textbf{Rating} & \textbf{Age}\\\hline1 & \text{Peter} & 10 ...
2 votes
2 votes
1 answer
2
gatecse asked Oct 15, 2020
106 views
Consider the following SQL query:SELECT * FROM Staff s, Branch b WHERE s.branchNo = b.branchNo AND (s.position = 'Manager' AND b.city = 'Bangalore');Which of the followin...