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

@@ -230,6 +230,8 @@ Test_Request_no,
Sample_Receipt_Date,
Test_report_No,
Tractor_Model,
tractor_power_hp,
variant,
Generation,
Customer_Name,
Test_Engineer,
@@ -238,6 +240,8 @@ No_of_Sample,
Test_Start_Date,
Test_End_Date,
Tractor_Sr_No,
drive,
platform,
Test_Standard_Refer,
Test_Location,
Operator_Name,
@@ -253,10 +257,10 @@ FROM crosstab(
, row_number() OVER ()
, unnest(ARRAY[c2::text]) AS val
FROM staging2.IHTHLS_HLS_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.IHTHLS_HLS_H1_Block where dummy_f is null ;
@@ -357,7 +361,7 @@ FROM crosstab(
, row_number() OVER ()
, unnest(ARRAY[column15::text,column19::text]) AS val
FROM staging2.IHTHLS_HLS_Weight_Tyre_Int where block_row_number between 3 and 11
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);
delete from staging2.IHTHLS_HLS_Tyre_Details_Block where dummy_f is null ;