sql
This commit is contained in:
@@ -64,7 +64,8 @@ test_standard_desc,
|
||||
test_standard_id,
|
||||
acceptance_criteria,
|
||||
remarks,
|
||||
observations
|
||||
observations,
|
||||
test_purpose
|
||||
)
|
||||
select
|
||||
client_id,
|
||||
@@ -74,15 +75,15 @@ file_mnemonic,
|
||||
file_sheet_mnemonic,
|
||||
make,model,
|
||||
Test_Request_no,
|
||||
to_date(sample_receipt_date,'DD-MM-YYYY'),
|
||||
sample_receipt_date::Date,
|
||||
Test_report_No,
|
||||
Generation,
|
||||
Customer_Name,
|
||||
Test_Engineer,
|
||||
to_date(Test_Report_Date,'DD-MM-YYYY'),
|
||||
Test_Report_Date::Date,
|
||||
No_of_Sample,
|
||||
to_date(Test_Start_Date,'DD-MM-YYYY'),
|
||||
to_date(Test_End_Date, 'DD-MM-YYYY'),
|
||||
Test_Start_Date::Date,
|
||||
Test_End_Date::Date,
|
||||
Tractor_Sr_No,
|
||||
Test_Standard_Refer,
|
||||
test_location,
|
||||
@@ -95,7 +96,8 @@ test_standard_id::numeric,
|
||||
test_standard_ref
|
||||
acceptance_criteria,
|
||||
remarks,
|
||||
observations
|
||||
observations,
|
||||
test_purpose
|
||||
from
|
||||
staging2.IHTBTD_BTD_H1_block where trx_record =1;
|
||||
|
||||
@@ -214,6 +216,18 @@ set test_tractor_yn ='Y' where syspk in
|
||||
where b.file_syspk =a.file_syspk)
|
||||
and a.file_syspk =__file_syspk;
|
||||
|
||||
update transactional.test_instance_tractor_info a
|
||||
set
|
||||
wheel_drive_type = b.Drive,
|
||||
tractor_platform = b.Platform,
|
||||
tractor_engine_hp= b.Tractor_power_hp::numeric,
|
||||
generation= b.generation,
|
||||
domestic_export= b.domestic_export,
|
||||
tractor_sr_no = b.tractor_sr_no
|
||||
from staging2.IHTBTD_BTD_H1_block b
|
||||
where b.trx_record=1
|
||||
and a.file_sheet_mnemonic ='IHTBTD_BTD'
|
||||
and a.file_syspk =__file_syspk;
|
||||
|
||||
|
||||
insert into transactional.iht_brake_perf_test_results
|
||||
@@ -530,6 +544,19 @@ tractor_model =__model,
|
||||
tractor_make=__make
|
||||
where file_syspk=__file_syspk;
|
||||
|
||||
update transactional.test_instance
|
||||
set test_file_name =(select a.file_name from staging1.staging_generic_table a where file_syspk = __file_syspk limit 1)
|
||||
where file_syspk = __file_syspk;
|
||||
|
||||
|
||||
update transactional.test_instance
|
||||
set test_type = a.test_type,
|
||||
test_name= a.test_name
|
||||
from fw_core.test_file_sheet_format_master a
|
||||
where transactional.test_instance.file_sheet_mnemonic = a.file_sheet_mnemonic
|
||||
and transactional.test_instance.file_syspk=__file_syspk;
|
||||
|
||||
|
||||
perform fw_core.fn_insert_db_error ( __client_id, __function_id, 1001, 'Compegence', __file_syspk ,__file_mnemonic,__file_sheet_mnemonic ,null,'trx', 'fn_IHTBTD_BTD_TRX', err_state, err_msg, err_detail, err_hint, err_context,'success');
|
||||
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user