edited by
496 views
0 votes
0 votes

In SQL the statement

→ Select * from R ,S 

  is equivalent to:

  1. select * from R natural join S
    
  2. select * from R inner join S
    
  3. select * from R cross join S
    
  4. select * from R union join S
    
edited by

1 Answer

Best answer
1 votes
1 votes
IN given sql statement no condition is mentioned....so it displays all possible rows m*n.

- in inner join we generally use a condition like "table1.attributes (operator) table2.attributes" [here operator can be any valid one]

-in equijoin it is similar to innerjoin like above but here operator we use is only equality operator(=) and not any else between the attributes.

-in natural join you no need to mention equality condition also as it is implicitly understood....

so,

JOIN+NO CONDITION = CROSS-JOIN

JOIN+EQUALITY CONDITION = EQUI-JOIN

JOIN+ANY VALID CONDITION = INNER-JOIN
selected by
Answer:

Related questions

1 votes
1 votes
1 answer
1
Bikram asked Nov 26, 2016
334 views
Consider the join of relation R with a relation S. If R has $m$ tuples and S has $n$ tuples, then the maximum and minimum sizes of the join, respectively, are __________....
0 votes
0 votes
1 answer
2
Bikram asked Nov 26, 2016
245 views
A functional dependency of the form x → y is trivial ify ⊆ xy ⊂ xx ⊆ yx ⊂ y
0 votes
0 votes
1 answer
3
Bikram asked Nov 26, 2016
315 views
What does the following Tuple Relational Calculus query produce?The expression σθ1 (E1 ⋈θ2 E2) is the same as: E1 ⋈θ1^ θ2 E2 (σθ1 E1) ∧ (σθ2 E2 ) E1 ⋈ θ...