The general case of the JOIN operation is called a Theta-join:

The join condition is called theta. Theta can be any general boolean expression on the attributes of and , e.g.: