Hi,I have just ran an update query that went wrong, luckily it was on an un-important field but i would like to know why i didn't get the results i expected.This select query give me 6300 rows and for these rows i want to update field "user1" to the vaule of "Hold"SELECT C.STATUS, H.SUBJECT, c.user1 FROM WCE_HISTORY H INNER JOIN WCE_LINKTO L ON H.UNIQUEID = L.LUNIQUEID INNER JOIN WCE_CONTACT C ON L.LENTITYID = C.UNIQUEID WHERE c.status = 'Prospect1' and H.SUBJECT LIKE '%Web meeting Invitation%' order by c.status
So i figured that if i tried the exists query it would look at the select rows and just do the 6300, it didn't it updated my entire database 240,000 rows so they all had teh value of "hold" in the "user1" field.UPDATE wce_contact SET user1 = 'Hold'WHERE EXISTS ( SELECT C.STATUS, H.SUBJECT, c.user1 FROM WCE_HISTORY H INNER JOIN WCE_LINKTO L ON H.UNIQUEID = L.LUNIQUEID INNER JOIN WCE_CONTACT C ON L.LENTITYID = C.UNIQUEID WHERE c.status = 'Prospect1' and H.SUBJECT LIKE '%Web meeting Invitation%');
Any advise would be great, thanks.