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 [table_name] AS T1, (SELECT [column_name] FROM [table_name] WHERE [column_name] = [value]) AS T2 SET T1.[column_name]=T2.[column_name] + 1 WHERE T1.[column_name] = [value];