nonequijoin
Nonequijoin, also known as a non-equijoin, is a type of join in relational databases where the join predicate uses an operator other than equality. Unlike an equijoin, which combines rows when keys are exactly equal (for example, A.id = B.id), a nonequijoin uses conditions such as <, >, <=, >=, !=, BETWEEN, or LIKE. In many database texts, the broader term theta join is used for a join with arbitrary comparison predicates, with nonequijoin referring specifically to non-equality predicates.
Non-equijoins are commonly used for range- or pattern-based joins. Examples include joining two tables on a
Performance and optimization considerations are important with nonequijoins. Because the join condition often does not preserve
In practice, nonequijoins are a flexible tool for querying relational data when exact key matches are not