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? Databases databases + – srestha asked Jul 27, 2018 srestha 418 views answer comment Share Follow See all 5 Comments See all 5 5 Comments reply Show 2 previous comments srestha commented Jul 27, 2018 reply Follow Share @Shaik suppose a condition S is non empty and R has 1 tuple, then what $S\times R$ will return? 0 votes 0 votes Shaik Masthan commented Jul 27, 2018 reply Follow Share Cartesian product always return m*n rows 1 votes 1 votes Shubham Shukla 6 commented Jul 27, 2018 reply Follow Share @srestha shaik is correct..! 0 votes 0 votes Please log in or register to add a comment.
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 Sayan Bose answered Jul 27, 2018 Sayan Bose comment Share Follow See all 0 reply Please log in or register to add a comment.