Add the condition to the join()