KnowledgeBoat Logo

Computer Science

The following SQL is which type of join :

SELECT CUSTOMER.CUST_ID, ORDER.CUST_ID, NAME, ORDER_ID
FROM CUSTOMER, ORDER
  1. Equi-join
  2. Natural join
  3. Outer join
  4. Cartesian product

SQL Joins & Grouping

1 Like

Answer

Cartesian product

Reason — This query uses a comma-separated list of table names in the FROM clause without specifying any join condition. In SQL, when we list multiple tables in the FROM clause separated by commas without specifying a join condition, it results in a Cartesian product.

Answered By

2 Likes


Related Questions