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
You can use:
UPDATE Station AS st1, StationOld AS st2 SET st1.already_used = 1 WHERE st1.code = st2.code