I need to check (from the same table) if there is an association between two events based on date-time.
One set of data will contain the ending date-time of certain
UPDATE `table1` AS `dest`, ( SELECT * FROM `table2` WHERE `id` = x ) AS `src` SET `dest`.`col1` = `src`.`col1` WHERE `dest`.`id` = x ;
Hope this works for you.