You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

25 lines
689 B

update tbs_budget_condition set brand_id = SUBSTRING_INDEX(target_level_path_ids,'_',1)
update tbs_budget set center_combo = concat(center_type,'_',center_id)
update vtb_verification v
left join tbs_activity act on act.id = v.activity_id
set v.activity_code = act.activity_code
where v.verification_main_code like 'DHX%'
select tbs_budget.id from tbs_budget
LEFT JOIN tbs_budget_condition
on tbs_budget_condition.budget_id = tbs_budget.id
where tbs_budget.del_flag = 0
and tbs_budget_condition.del_flag = 0
and tbs_budget.condition_flag = 0
and tbs_budget_condition.id is not null
GROUP BY tbs_budget.id
update tbs_budget set condition_flag = 1
where id in (
)