Which of the following joins is possible in SQL
-
EQUI-JOIN
-
NON EQUI-JOIN
-
Both A. and B.
-
None of the Above
SQL supports both EQUI-JOIN (joining using equality operator) and NON-EQUI-JOIN (joining using operators other than =, such as <, >, BETWEEN, etc.). An EQUI-JOIN is a join condition using =, while NON-EQUI-JOIN uses any other comparison operator.
'Both A and B' is correct. SQL supports EQUI-JOINs, which match rows using an equality condition (e.g., a.id = b.id), and NON-EQUI-JOINs, which match rows using any other comparison operator (e.g., a.value BETWEEN b.low AND b.high, or using <, >, !=). Both are valid, standard join types supported by SQL — neither is exclusive of the other, so restricting the answer to just one type would be incomplete, and 'none of the above' is clearly wrong since both types demonstrably exist.