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 ;

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

Answer: D

Correct answer: Cartesian join

Two tables are named in the FROM clause and no join condition is given, so every row of one is paired with every row of the other. The result has the product of the two row counts, which is almost never wanted - an accidental Cartesian product from a forgotten WHERE clause is the classic runaway query.

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

Post your comment

Please log in or register to post a comment.