update tb_vnd set dt_hr_ult_alt = CURRENT_TIMESTAMP
where
    tb_vnd.dt_vnd >= '2015-03-06' and
	mod(tb_vnd.id_vnd, 100) = 3;
    
update tb_vnd_item set dt_hr_ult_alt = CURRENT_TIMESTAMP
from tb_vnd
where
    tb_vnd.id_emp = tb_vnd_item.id_emp and
    tb_vnd.id_vnd = tb_vnd_item.id_vnd and
    tb_vnd.dt_vnd >= '2015-03-06' and
    mod(tb_vnd.id_vnd, 100) = 3;
    
    
update tb_nf set dt_hr_ult_alt = CURRENT_TIMESTAMP
where
    tb_nf.dt_emis >= '2015-03-06' and
    mod(tb_nf.id_nf, 100) = 3;
    
update tb_nf_item set dt_hr_ult_alt = CURRENT_TIMESTAMP
from tb_nf
where
    tb_nf.id_emp = tb_nf_item.id_emp and
    tb_nf.id_nf = tb_nf_item.id_nf and
    tb_nf.dt_emis >= '2015-03-06' and
    mod(tb_nf.id_nf, 100) = 3;
    
update tb_nf_parc set dt_hr_ult_alt = CURRENT_TIMESTAMP
from tb_nf
where
    tb_nf.id_emp = tb_nf_parc.id_emp and
    tb_nf.id_nf = tb_nf_parc.id_nf and
    tb_nf.dt_emis >= '2015-03-06' and
    mod(tb_nf.id_nf, 100) = 3;
    
update tb_nf_xml set dt_hr_ult_alt = CURRENT_TIMESTAMP
from tb_nf
where
    tb_nf.id_emp = tb_nf_xml.id_emp and
    tb_nf.id_nf = tb_nf_xml.id_nf and
    tb_nf.dt_emis >= '2015-03-06' and
    mod(tb_nf.id_nf, 100) = 3;
    
update tb_nfe set dt_hr_ult_alt = CURRENT_TIMESTAMP
from tb_nf
where
    tb_nf.id_emp = tb_nfe.id_emp and
    tb_nf.id_nf = tb_nfe.id_nf and
    tb_nf.dt_emis >= '2015-03-06' and
    mod(tb_nf.id_nf, 100) = 3;
    
    
update tb_ct set dt_hr_ult_alt = CURRENT_TIMESTAMP
where
    tb_ct.dt_emis >= '2015-03-06' and
    mod(tb_ct.id_ct, 100) = 3;
    
    
update tb_bx_ct set dt_hr_ult_alt = CURRENT_TIMESTAMP
where
    tb_bx_ct.dt_bx >= '2015-03-06' and
    mod(tb_bx_ct.id_bx_ct, 100) = 3;


update tb_bx_ct_pagto set dt_hr_ult_alt = CURRENT_TIMESTAMP
from tb_bx_ct
where
    tb_bx_ct.id_emp = tb_bx_ct_pagto.id_emp and
    tb_bx_ct.id_bx_ct = tb_bx_ct_pagto.id_bx_ct and
    tb_bx_ct.dt_bx >= '2015-03-06' and
    mod(tb_bx_ct.id_bx_ct, 100) = 3;
    
update tb_bx_ct__ct set dt_hr_ult_alt = CURRENT_TIMESTAMP
from tb_bx_ct
where
    tb_bx_ct.id_emp = tb_bx_ct__ct.id_emp and
    tb_bx_ct.id_bx_ct = tb_bx_ct__ct.id_bx_ct and
    tb_bx_ct.dt_bx >= '2015-03-06' and
    mod(tb_bx_ct.id_bx_ct, 100) = 3;
	
update tb_mov_fnc set dt_hr_ult_alt = CURRENT_TIMESTAMP
where
    tb_mov_fnc.dt_lanc >= '2015-03-06' and
    mod(tb_mov_fnc.id_mov_fnc, 100) = 3;