749 views
0 0 votes

1 Answer

1 1 vote
A) option A is inner join on Borrower and Depositor on customer-name so it will give all customers which having loan and account.

B) SELECT DISTINCT CUSTOMER-NAME FROM BORROWER WHERE CUSTOMER-NAME IN(SELECT CUSTOMER-NAME FROM DEPOSITOR);--> This will also return all different names of customers who taken loans.

C) this is cross product of two tables so it will give many redundant tuples. so this is wrong query according to question requirements.

Ans:C
Position:
Show:

Related questions

0 0 votes
1 1 answer
132
132 views
GO Classes asked Sep 25
132 views
Consider $\mathrm{Flights}(\mathrm{num},\mathrm{src},\mathrm{dst})$, where each tuple represents a directed flight from $\mathrm{src}$ to $\mathrm{dst}$.Let $\mathrm{F}_1...
0 0 votes
1 1 answer
96
96 views
GO Classes asked Sep 25
96 views
Consider $\mathrm{Employee}(\mathrm{eid},\mathrm{name},\mathrm{salary})$, $\mathrm{Project}(\mathrm{pid},\mathrm{title},\mathrm{budget})$, and $\mathrm{WorksOn}(\mathrm{e...
1 1 vote
1 1 answer
84
84 views
GO Classes asked Sep 25
84 views
Consider $\mathrm{Locations}(\mathrm{locationid},\mathrm{name},\mathrm{state},\mathrm{altitude})$$\mathrm{TreeCoverage}(\mathrm{locationid},\mathrm{treetype},\mathrm{year...
1 1 vote
1 1 answer
56
56 views
GO Classes asked Sep 25
56 views
Let $\mathrm{R}(\mathrm{A},\mathrm{B})$ and $\mathrm{S}(\mathrm{A},\mathrm{B})$ be relations under set semantics.Which expression is not always equivalent to the others?$...