I have this script for now which works and does the merge properly. I would like an extra column that basically goes by row and indicates if the join was executed.