418 views
0 votes
0 votes
Suppose there are 2 relation S and R . S is Non-empty relation and R is an empty relation. How Cartesian product of two tables returns NULL?

I think join not possible both tables. As NULL table cannot satisfy any condition.rt?

1 Answer

0 votes
0 votes

The Cartesian product returns all the rows in all the tables listed in the query.  Each row in the first table is paired with all the rows in the second table. So if  S is non-empty and R is empty as per your question, it would return n(no. of rows in S) X zero(i.e.no of rows in table R = 0 rows 

Related questions

3 votes
3 votes
1 answer
1
ashish pal asked Jan 25, 2018
482 views
Answer given is 3But my answer is 2 . I have combined the Department and Project relation since the participation of Project was total.please someone explain why can't we...
0 votes
0 votes
2 answers
2
set2018 asked Oct 24, 2017
537 views
Assume COFFEE is the relation,find number of tuple1) 62) 43) 54) 3
0 votes
0 votes
1 answer
3
radha gogia asked Aug 15, 2015
701 views
The database can be configured to do ordered indexing on Ap or hashing on Ap. Which of the following statements is TRUE?(A) Ordered indexing will always outperform hashin...
5 votes
5 votes
1 answer
4
Vikrant Singh asked Dec 28, 2014
780 views
A relational table Employee (ENo, EName, Dept) has $88$ number of tuples. What will be the result of following SQL statement?SELECT COUNT (ENo) FROM Employee WHERE ENo NO...