OK, it really hasn't taken me 4 days to run the script, but there have been some problems.
Firstly the script above works, the problem I had was that there were erroneous duplicate records in the EIM_CONTACT table, hence the return of the correlated sub select was more than one row.......so the...