in Databases
365 views
0 votes
0 votes

in Databases
365 views

1 comment

IN C OPTION

A*B HAS FOUR COLUMNS TWO OF WHICH ARE CUSTOMER NAME. AS WHEN WE CROSS PRODUCT WE HAVE ALL COLUMNS.

SO WE DONT KNOW WHICH CUSTOMER NAME THEY ARE TALKING ABOUT
0
0

1 Answer

1 vote
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

2 Comments

But after it perform projection in which all redundant tuple removed????
0
0
after projection duplicates will remove , not redundant(extra)
0
0

Related questions