changed scripts in budni and soon
This commit is contained in:
@@ -1,6 +1,8 @@
|
||||
drop function if exists mmt_staging2.fn_PTO_PHA_ODS;
|
||||
CREATE OR REPLACE FUNCTION mmt_staging2.fn_PTO_PHA_ODS()
|
||||
RETURNS void AS $$
|
||||
declare __test_instance_id int;
|
||||
declare __file_syspk int;
|
||||
begin
|
||||
|
||||
/*************************************************************
|
||||
@@ -100,5 +102,24 @@ c2::int,c3::numeric,c5::numeric
|
||||
from mmt_staging2.PTOBST_PHA_Engine_oil_consumption_block
|
||||
where ods_record=1;
|
||||
|
||||
|
||||
|
||||
select file_syspk into __file_syspk from mmt_staging2.PTOBST_RPT_tractor_specs_block;
|
||||
select syspk into __test_instance_id from mmt_ods.test_instance where test_file_ref_no =__file_syspk;
|
||||
|
||||
|
||||
update mmt_ods.PTO_Key_Perf_Parameters
|
||||
set test_instance_id=__test_instance_id
|
||||
where test_file_ref_no=__file_syspk;
|
||||
|
||||
update mmt_ods.PTO_Perf_Results
|
||||
set test_instance_id=__test_instance_id
|
||||
where test_file_ref_no=__file_syspk;
|
||||
|
||||
update mmt_ods.pto_engine_oil_consumption
|
||||
set test_instance_id=__test_instance_id
|
||||
where test_file_ref_no=__file_syspk;
|
||||
|
||||
|
||||
end
|
||||
$$ LANGUAGE plpgsql;
|
||||
Reference in New Issue
Block a user