Definition of a join operatoin