update tl_assessment_template set assessment_type = (select COALESCE( assessment_type, 'COMPREHENSIVE') from tl_occupation where object_id = tl_assessment_template.occupation_id) where level_id is null and occupation_id is not null;
update tl_assessment_template set level_id = (select assessment_level_id from tl_occupation where object_id = tl_assessment_template.occupation_id) where level_id is null and occupation_id is not null;

update tl_job set assessment_type = (select COALESCE( assessment_type, 'COMPREHENSIVE') from tl_occupation where object_id = tl_job.occupation_id) where level_id is null and occupation_id is not null;
update tl_job set level_id = (select assessment_level_id from tl_occupation where object_id = tl_job.occupation_id) where level_id is null and occupation_id is not null;
