This commit is contained in:
dheepa
2021-08-09 11:14:23 +00:00
parent a0d3257be0
commit f3cf5e1d2d
89 changed files with 4769 additions and 1508 deletions

View File

@@ -206,10 +206,12 @@ select split_part(column3,':',1),split_part(column3,':',2)
from staging2.stg_process_table_IHTCGM_CGM
where block_tag='IHTCGM_CGM_Lifting' and block_row_number=15;
insert into staging2.IHTCGM_CGM_H1_INT (c1,c2)
select 'Test Purpose',column10
from staging2.stg_process_table_IHTCGM_CGM a
where block_tag='IHTCGM_CGM_H1' and column3='Test Purpose';
where block_tag='IHTCGM_CGM_Weight_Tyre' and column3='Test Purpose';
update staging2.IHTCGM_CGM_H1_Int set model=__model;
execute 'update staging2.IHTCGM_CGM_H1_Int set
@@ -226,6 +228,8 @@ Test_Request_no,
Sample_Receipt_Date,
Test_report_No,
Tractor_Model,
Tractor_power_hp ,
variant ,
Generation,
Customer_Name,
Test_Engineer,
@@ -234,6 +238,8 @@ No_of_Sample,
Test_Start_Date,
Test_End_Date,
Tractor_Sr_No,
Drive ,
Platform ,
Test_Standard_Refer,
Test_Location,
Operator_Name,
@@ -249,10 +255,10 @@ FROM crosstab(
, row_number() OVER ()
, unnest(ARRAY[c2::text]) AS val
FROM staging2.IHTCGM_CGM_H1_INT
ORDER BY generate_series(1,15),2'
ORDER BY generate_series(1,15),syspk,2'
) t (col text,a_1 text,a_2 text,a_3 text,a_4 text,a_5 text,a_6 text,a_7 text,a_8 text,
a_9 text,a_10 text,a_11 text,a_12 text,a_13 text,a_14 text,a_15 text,a_16 text,a_17 text,
a_18 text,a_19 text,a_20 text);
a_18 text,a_19 text,a_20 text, a_21 text, a_22 text, a_23 text, a_24 text);
delete from staging2.IHTCGM_CGM_H1_Block where dummy_f is null ;
@@ -287,7 +293,7 @@ file_syspk='||p_file_syspk||',
file_mnemonic='''||p_file_mnemonic||''',
file_sheet_mnemonic='''||p_file_sheet_mnemonic||'''';
update staging2.IHTCGM_CGM_Weight_Tyre_Int set trx_record = 0 where block_row_number=3;
--update staging2.IHTCGM_CGM_Weight_Tyre_Int set trx_record = 0 where block_row_number=3;
/*block starts - IHTCGM_CGM_Weight_Block */