insert into dw_terminal_2_by_update_data_dependent_terminal (terminal_id, by_update_data_dependent_terminal_id, deleted, version, date_created, last_updated, update_counter) select terminal_update_data_depends_on_terminals_id, terminal_id, false, 0, curdate(), curdate(), 0 from dw_terminal_dw_terminal