Computer Science
The following SQL is which type of join :
SELECT CUSTOMER.CUST_ID, ORDER.CUST_ID, NAME, ORDER_ID
FROM CUSTOMER, ORDER
- Equi-join
- Natural join
- Outer join
- 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
What is the meaning of "WHERE" clause in a GROUP BY query ?
- To filter out the summary groups
- To filter out the column groups
- To filter out the row and column values before creating groups
- None of the mentioned
The following SQL is which type of join :
SELECT CUSTOMER.CUST_ID, ORDER.CUST_ID, NAME, ORDER_ID FROM CUSTOMER, ORDER WHERE CUSTOMER.CUST_ID = ORDER.CUST_ID?
- Equi-join
- Natural join
- Outer join
- Cartesian product
Which product is returned in a join query have no join condition ?
- Equijoins
- Cartesian product
- Both (1) and (2)
- None of the mentioned
Which is a join condition contains an equality operator ?
- Equijoins
- Cartesian product
- Both (1) and (2)
- None of the mentioned