edited by
184 views
1 votes
1 votes

Consider the relations $R(A,B,C)$ and $S(B,C,D)$ and the following SQL queries.

  1. Select distinct $\ast$ from $R,S;$
  2. Select distinct $\ast$ from $R,S$ where $R.C = S.C;$
  3. Select distinct $\ast$ from $R,S$ where $R.C = S.C$ and $R.B = S.B;$
  4. Select distinct $\ast$ from $R,S$ where $R.C != S.C;$

Match the following Table where the first column refers to the four given SQL queries
$$
\begin{array}{|c|cl|}\hline
i. &a. & \text{Equi Join} \\
\hline
ii. &b.& \text{Natural Join}\\
\hline
iii. &c.& \text{Theta Join}\\
\hline
iv. &d.& \text{Cross Product}\\
\hline
\end{array}$$

  1. $i-d,ii-a,iii-c,iv-b$
  2. $i-b,ii-a,iii-d,iv-c$
  3. $i-d,ii-a,iii-b,iv-c$
  4. $i-c,ii-a,iii-b,iv-d$
edited by

1 Answer

Answer:

Related questions

2 votes
2 votes
1 answer
3
gatecse asked Oct 8, 2020
274 views
Consider the following relation instance.$$\textbf{Student}$$$$\begin{array}{|c|c|c|c|c|}\hline \textbf{Roll}& \textbf{FirstName} & \textbf{LastName} & \textbf{Weight}\\\...