in Databases retagged by
702 views
1 vote
1 vote

Consider the following relation and instance of relation:

Supply(sid,Sname)  #sid is key

Parts(pid,Pname,Pcolor)  #pid is the key

Catalog(sid,pid)  #sid,pid is the key

Number of tuples returned by the above Query is ……...

in Databases retagged by
by
702 views

3 Comments

6?
0
0
Mine was 6 too but its 0
0
0
I think 100,null  on comparing with 100,5 will return false in SQL but not sure in RA. Maybe we have treat it the same here as well
0
0

1 Answer

3 votes
3 votes
Answer is 0. Bcoz no violet color in parts table.

(In cross product if any one of the table contains 0  record then no tuples will be selected.)

3 Comments

According to truthtable of subtraction

A B A-B
0 0 0
0 1 1
1 0 1
1 1 0

So,we will get 6 values.

0
0
what method is this? Can u explain?
0
0

@bhargav1 Dont post whatever u want

0
0

Related questions