insert into cw_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, 0, 0, getdate(), getdate(), 0 from cw_terminal_cw_terminal