joining two relations (update)