INSERT INTO rts_user_simulation_record (map_id, user_id, type, duration, start_time, end_time) SELECT map_id, user_id, 'SIM', duration, start_time, end_time FROM user_simulation_stats WHERE end_time > '2000-01-01 00:00:00';