337 views

2 Answers

Best answer
1 votes
1 votes

8 tuples are returned.

R=A $\cup$ B

A.ID A.Name A.Age
5 Bala 19
10 Akash 21
15 Raj 18
20 Babbar 16
25 Monty 20
3 Rohan 12
8 Rahul 22

 

R $\times$ C

A.Id A.Name A.Age C.ID C.Name C.Age
5 Bala 19 9  Manish 19
5 Bala 19 18 Billu  22
10 Akash 21 9 Manish 19
10 Akash 21 18 Billu 22
... ...        
... ...        
25 Monty 20 9  Manish 19
25 Monty 20 18 Billu 22

8 Tuples returned after filtering.

selected by
1 votes
1 votes

A U B has 7 tuples (ID = 3,5,8,10,15,20,25) 
It is joined to C on the condition : EITHER A.id > 20 in A U B (Which is A = 25) OR C.id < 10 in C (Which is C =9)
2 tuples are returned. 

 

ID Name Age
25 Monty 20
9 Manish 19

 

Related questions

1 votes
1 votes
0 answers
1
1 votes
1 votes
1 answer
3
Shivam Kasat asked Dec 19, 2018
537 views
the table “Sales89” contains information about the address,zip,sale-date,price and inflamation-adjusted “real-price” of 222 sales of single family homes in calcut...