Machine-translated by Google. Questions are authored in English.
Top

Discussion

The following SQL is which type of join: SELECT CUSTOMER_T. CUSTOMER_ID, ORDER_T. CUSTOMER_ID, NAME, ORDER_ID FROM CUSTOMER_T,ORDER_T WHERE CUSTOMER_T. CUSTOMER_ID = ORDER_T. CUSTOMER_ID

  • A.Equi-join
  • B.Natural join
  • C.Outer join
  • D.Cartesian join

Answer: A

Correct answer: Equi-join

The join condition tests two columns for equality, which is what makes it an equi-join, and both CUSTOMER_ID columns appear in the select list. A natural join would have dropped one of them; the presence of the duplicate is the distinguishing feature.

No comment is present. Be the first to comment.
Loading…

Post your comment

Please log in or register to post a comment.