drop function if exists fw_core.fn_validation_trx_count;
CREATE OR REPLACE FUNCTION fw_core.fn_validation_trx_count(p_date date)
 RETURNS void
 LANGUAGE plpgsql
AS $function$
begin

/*
selectfw_core.fn_validation_trx_count ('2021-04-12')
*/
 insert into fw_core.run_validation_count(schema_name,table_name,row_count) select 'staging2','budni_arc_perf_atmos_meas_test_block',count(*) from staging2.budni_arc_perf_atmos_meas_test_block where create_time::date =p_date;
 insert into fw_core.run_validation_count(schema_name,table_name,row_count) select 'staging2','budni_arc_spec_h1_block',count(*) from staging2.budni_arc_spec_h1_block where create_time::date =p_date;
 insert into fw_core.run_validation_count(schema_name,table_name,row_count) select 'staging2','budni_arc_test_obs_summary_block',count(*) from staging2.budni_arc_test_obs_summary_block where create_time::date =p_date;
 insert into fw_core.run_validation_count(schema_name,table_name,row_count) select 'staging2','budni_brk_other_observations_block',count(*) from staging2.budni_brk_other_observations_block where create_time::date =p_date;
 insert into fw_core.run_validation_count(schema_name,table_name,row_count) select 'staging2','budni_brk_parking_barke_test_block',count(*) from staging2.budni_brk_parking_barke_test_block where create_time::date =p_date;
 insert into fw_core.run_validation_count(schema_name,table_name,row_count) select 'staging2','budni_brk_service_cold_ballasted_25kmph_block',count(*) from staging2.budni_brk_service_cold_ballasted_25kmph_block where create_time::date =p_date;
 insert into fw_core.run_validation_count(schema_name,table_name,row_count) select 'staging2','budni_brk_service_cold_ballasted_maximum_block',count(*) from staging2.budni_brk_service_cold_ballasted_maximum_block where create_time::date =p_date;
 insert into fw_core.run_validation_count(schema_name,table_name,row_count) select 'staging2','budni_brk_service_cold_standard_25kmph_block',count(*) from staging2.budni_brk_service_cold_standard_25kmph_block where create_time::date =p_date;
 insert into fw_core.run_validation_count(schema_name,table_name,row_count) select 'staging2','budni_brk_service_cold_standard_maximum_block',count(*) from staging2.budni_brk_service_cold_standard_maximum_block where create_time::date =p_date;
 insert into fw_core.run_validation_count(schema_name,table_name,row_count) select 'staging2','budni_brk_service_fade_ballasted_25kmph_block',count(*) from staging2.budni_brk_service_fade_ballasted_25kmph_block where create_time::date =p_date;
 insert into fw_core.run_validation_count(schema_name,table_name,row_count) select 'staging2','budni_brk_service_fade_standard_maximum_block',count(*) from staging2.budni_brk_service_fade_standard_maximum_block where create_time::date =p_date;
 insert into fw_core.run_validation_count(schema_name,table_name,row_count) select 'staging2','budni_brk_spec_h1_block',count(*) from staging2.budni_brk_spec_h1_block where create_time::date =p_date;
 insert into fw_core.run_validation_count(schema_name,table_name,row_count) select 'staging2','budni_brk_test_obs_summary_block',count(*) from staging2.budni_brk_test_obs_summary_block where create_time::date =p_date;
 insert into fw_core.run_validation_count(schema_name,table_name,row_count) select 'staging2','budni_dbp_drawbar_perf_block',count(*) from staging2.budni_dbp_drawbar_perf_block where create_time::date =p_date;
 insert into fw_core.run_validation_count(schema_name,table_name,row_count) select 'staging2','budni_dbp_spec_h1_block',count(*) from staging2.budni_dbp_spec_h1_block where create_time::date =p_date;
 insert into fw_core.run_validation_count(schema_name,table_name,row_count) select 'staging2','budni_fld_cage_wheel_block',count(*) from staging2.budni_fld_cage_wheel_block where create_time::date =p_date;
 insert into fw_core.run_validation_count(schema_name,table_name,row_count) select 'staging2','budni_fld_impl_test_block',count(*) from staging2.budni_fld_impl_test_block where create_time::date =p_date;
 insert into fw_core.run_validation_count(schema_name,table_name,row_count) select 'staging2','budni_fld_spec_h1_block',count(*) from staging2.budni_fld_spec_h1_block where create_time::date =p_date;
 insert into fw_core.run_validation_count(schema_name,table_name,row_count) select 'staging2','budni_fld_sum_perf_test_block',count(*) from staging2.budni_fld_sum_perf_test_block where create_time::date =p_date;
 insert into fw_core.run_validation_count(schema_name,table_name,row_count) select 'staging2','budni_fld_test_obs_summary_block',count(*) from staging2.budni_fld_test_obs_summary_block where create_time::date =p_date;
 insert into fw_core.run_validation_count(schema_name,table_name,row_count) select 'staging2','budni_hdl_lifting_capacity_test_block',count(*) from staging2.budni_hdl_lifting_capacity_test_block where create_time::date =p_date;
 insert into fw_core.run_validation_count(schema_name,table_name,row_count) select 'staging2','budni_hdl_maintenance_of_lift_load_block',count(*) from staging2.budni_hdl_maintenance_of_lift_load_block where create_time::date =p_date;
 insert into fw_core.run_validation_count(schema_name,table_name,row_count) select 'staging2','budni_hdl_power_test_block',count(*) from staging2.budni_hdl_power_test_block where create_time::date =p_date;
 insert into fw_core.run_validation_count(schema_name,table_name,row_count) select 'staging2','budni_hdl_spec_h1_block',count(*) from staging2.budni_hdl_spec_h1_block where create_time::date =p_date;
 insert into fw_core.run_validation_count(schema_name,table_name,row_count) select 'staging2','budni_hdl_test_obs_summary_block',count(*) from staging2.budni_hdl_test_obs_summary_block where create_time::date =p_date;
 insert into fw_core.run_validation_count(schema_name,table_name,row_count) select 'staging2','budni_hlg_perf_test_block',count(*) from staging2.budni_hlg_perf_test_block where create_time::date =p_date;
 insert into fw_core.run_validation_count(schema_name,table_name,row_count) select 'staging2','budni_hlg_spec_h1_block',count(*) from staging2.budni_hlg_spec_h1_block where create_time::date =p_date;
 insert into fw_core.run_validation_count(schema_name,table_name,row_count) select 'staging2','budni_hlg_test_obs_summary_block',count(*) from staging2.budni_hlg_test_obs_summary_block where create_time::date =p_date;
 insert into fw_core.run_validation_count(schema_name,table_name,row_count) select 'staging2','budni_lcg_gravity_test_block',count(*) from staging2.budni_lcg_gravity_test_block where create_time::date =p_date;
 insert into fw_core.run_validation_count(schema_name,table_name,row_count) select 'staging2','budni_lcg_spec_h1_block',count(*) from staging2.budni_lcg_spec_h1_block where create_time::date =p_date;
 insert into fw_core.run_validation_count(schema_name,table_name,row_count) select 'staging2','budni_nmt_atmos_cond_2_block',count(*) from staging2.budni_nmt_atmos_cond_2_block where create_time::date =p_date;
 insert into fw_core.run_validation_count(schema_name,table_name,row_count) select 'staging2','budni_nmt_meas_results_1_block',count(*) from staging2.budni_nmt_meas_results_1_block where create_time::date =p_date;
 insert into fw_core.run_validation_count(schema_name,table_name,row_count) select 'staging2','budni_nmt_meas_results_2_block',count(*) from staging2.budni_nmt_meas_results_2_block where create_time::date =p_date;
 insert into fw_core.run_validation_count(schema_name,table_name,row_count) select 'staging2','budni_nmt_noise_at_bystander_position_block',count(*) from staging2.budni_nmt_noise_at_bystander_position_block where create_time::date =p_date;
 insert into fw_core.run_validation_count(schema_name,table_name,row_count) select 'staging2','budni_nmt_noise_at_operator_ear_level_block',count(*) from staging2.budni_nmt_noise_at_operator_ear_level_block where create_time::date =p_date;
 insert into fw_core.run_validation_count(schema_name,table_name,row_count) select 'staging2','budni_nmt_spec_h1_block',count(*) from staging2.budni_nmt_spec_h1_block where create_time::date =p_date;
 insert into fw_core.run_validation_count(schema_name,table_name,row_count) select 'staging2','budni_nmt_test_obs_summary_block',count(*) from staging2.budni_nmt_test_obs_summary_block where create_time::date =p_date;
 insert into fw_core.run_validation_count(schema_name,table_name,row_count) select 'staging2','[REDACTED]',count(*) from staging2.budni_pto_mmtkeyword1_block where create_time::date =p_date;
 insert into fw_core.run_validation_count(schema_name,table_name,row_count) select 'staging2','[REDACTED]',count(*) from staging2.budni_pto_mmtkeyword2_block where create_time::date =p_date;
 insert into fw_core.run_validation_count(schema_name,table_name,row_count) select 'staging2','budni_pto_perf_report_block',count(*) from staging2.budni_pto_perf_report_block where create_time::date =p_date;
 insert into fw_core.run_validation_count(schema_name,table_name,row_count) select 'staging2','budni_pto_spec_h1_block',count(*) from staging2.budni_pto_spec_h1_block where create_time::date =p_date;
 insert into fw_core.run_validation_count(schema_name,table_name,row_count) select 'staging2','budni_pto_summary_block',count(*) from staging2.budni_pto_summary_block where create_time::date =p_date;
 insert into fw_core.run_validation_count(schema_name,table_name,row_count) select 'staging2','budni_vmt_perf_meas_test_block',count(*) from staging2.budni_vmt_perf_meas_test_block where create_time::date =p_date;
 insert into fw_core.run_validation_count(schema_name,table_name,row_count) select 'staging2','budni_vmt_spec_h1_block',count(*) from staging2.budni_vmt_spec_h1_block where create_time::date =p_date;
 insert into fw_core.run_validation_count(schema_name,table_name,row_count) select 'staging2','budni_vmt_test_obs_summary_block',count(*) from staging2.budni_vmt_test_obs_summary_block where create_time::date =p_date;
 insert into fw_core.run_validation_count(schema_name,table_name,row_count) select 'staging2','dboecd_test_drawbar_performance_fuel_consumption_block',count(*) from staging2.dboecd_test_drawbar_performance_fuel_consumption_block where create_time::date =p_date;
 insert into fw_core.run_validation_count(schema_name,table_name,row_count) select 'staging2','dboecd_test_drawbar_performance_gear_performance_block',count(*) from staging2.dboecd_test_drawbar_performance_gear_performance_block where create_time::date =p_date;
 insert into fw_core.run_validation_count(schema_name,table_name,row_count) select 'staging2','dboecd_test_drawbar_performance_selected_summary_block',count(*) from staging2.dboecd_test_drawbar_performance_selected_summary_block where create_time::date =p_date;
 insert into fw_core.run_validation_count(schema_name,table_name,row_count) select 'staging2','dboecd_test_engine_rpm_engine_to_pto_block',count(*) from staging2.dboecd_test_engine_rpm_engine_to_pto_block where create_time::date =p_date;
 insert into fw_core.run_validation_count(schema_name,table_name,row_count) select 'staging2','dboecd_test_engine_rpm_required_pull_block',count(*) from staging2.dboecd_test_engine_rpm_required_pull_block where create_time::date =p_date;
 insert into fw_core.run_validation_count(schema_name,table_name,row_count) select 'staging2','dboecd_test_engine_rpm_rpm_block',count(*) from staging2.dboecd_test_engine_rpm_rpm_block where create_time::date =p_date;
 insert into fw_core.run_validation_count(schema_name,table_name,row_count) select 'staging2','dboecd_test_engine_rpm_tyre_details_block',count(*) from staging2.dboecd_test_engine_rpm_tyre_details_block where create_time::date =p_date;
 insert into fw_core.run_validation_count(schema_name,table_name,row_count) select 'staging2','dboecd_test_engine_rpm_weight_block',count(*) from staging2.dboecd_test_engine_rpm_weight_block where create_time::date =p_date;
 insert into fw_core.run_validation_count(schema_name,table_name,row_count) select 'staging2','dboecd_test_h1_block',count(*) from staging2.dboecd_test_h1_block where create_time::date =p_date;
 insert into fw_core.run_validation_count(schema_name,table_name,row_count) select 'staging2','dboecd_test_measurement_uncertainty_block',count(*) from staging2.dboecd_test_measurement_uncertainty_block where create_time::date =p_date;
 insert into fw_core.run_validation_count(schema_name,table_name,row_count) select 'staging2','dboecd_test_remarks_block',count(*) from staging2.dboecd_test_remarks_block where create_time::date =p_date;
 insert into fw_core.run_validation_count(schema_name,table_name,row_count) select 'staging2','dboecd_test_remarks_footer_block',count(*) from staging2.dboecd_test_remarks_footer_block where create_time::date =p_date;
 insert into fw_core.run_validation_count(schema_name,table_name,row_count) select 'staging2','dboecd_test_test_condition_block',count(*) from staging2.dboecd_test_test_condition_block where create_time::date =p_date;
 insert into fw_core.run_validation_count(schema_name,table_name,row_count) select 'staging2','dboecd_test_test_equipment_used_block',count(*) from staging2.dboecd_test_test_equipment_used_block where create_time::date =p_date;
 insert into fw_core.run_validation_count(schema_name,table_name,row_count) select 'staging2','dboecd_test_tractor_specifications_cleaner_block',count(*) from staging2.dboecd_test_tractor_specifications_cleaner_block where create_time::date =p_date;
 insert into fw_core.run_validation_count(schema_name,table_name,row_count) select 'staging2','dboecd_test_tractor_specifications_cylinders_block',count(*) from staging2.dboecd_test_tractor_specifications_cylinders_block where create_time::date =p_date;
 insert into fw_core.run_validation_count(schema_name,table_name,row_count) select 'staging2','dboecd_test_tractor_specifications_engine_details_block',count(*) from staging2.dboecd_test_tractor_specifications_engine_details_block where create_time::date =p_date;
 insert into fw_core.run_validation_count(schema_name,table_name,row_count) select 'staging2','dboecd_test_tractor_specifications_fuel_and_injection_block',count(*) from staging2.dboecd_test_tractor_specifications_fuel_and_injection_block where create_time::date =p_date;
 insert into fw_core.run_validation_count(schema_name,table_name,row_count) select 'staging2','dboecd_test_transmission_clutch_block',count(*) from staging2.dboecd_test_transmission_clutch_block where create_time::date =p_date;
 insert into fw_core.run_validation_count(schema_name,table_name,row_count) select 'staging2','dboecd_test_transmission_drawbar_block',count(*) from staging2.dboecd_test_transmission_drawbar_block where create_time::date =p_date;
 insert into fw_core.run_validation_count(schema_name,table_name,row_count) select 'staging2','dboecd_test_transmission_fuel_lubricant_block',count(*) from staging2.dboecd_test_transmission_fuel_lubricant_block where create_time::date =p_date;
 insert into fw_core.run_validation_count(schema_name,table_name,row_count) select 'staging2','dboecd_test_transmission_speed_chart_block',count(*) from staging2.dboecd_test_transmission_speed_chart_block where create_time::date =p_date;
 insert into fw_core.run_validation_count(schema_name,table_name,row_count) select 'staging2','dboecd_test_transmission_speed_chart_desc_block',count(*) from staging2.dboecd_test_transmission_speed_chart_desc_block where create_time::date =p_date;
 insert into fw_core.run_validation_count(schema_name,table_name,row_count) select 'staging2','dboecd_test_transmission_wheels_block',count(*) from staging2.dboecd_test_transmission_wheels_block where create_time::date =p_date;
 insert into fw_core.run_validation_count(schema_name,table_name,row_count) select 'staging2','dbstd_test_drawbar_performance_gear_performance_block',count(*) from staging2.dbstd_test_drawbar_performance_gear_performance_block where create_time::date =p_date;
 insert into fw_core.run_validation_count(schema_name,table_name,row_count) select 'staging2','dbstd_test_drawbar_performance_selected_summary_block',count(*) from staging2.dbstd_test_drawbar_performance_selected_summary_block where create_time::date =p_date;
 insert into fw_core.run_validation_count(schema_name,table_name,row_count) select 'staging2','dbstd_test_engine_rpm_engine_to_pto_block',count(*) from staging2.dbstd_test_engine_rpm_engine_to_pto_block where create_time::date =p_date;
 insert into fw_core.run_validation_count(schema_name,table_name,row_count) select 'staging2','dbstd_test_engine_rpm_required_pull_block',count(*) from staging2.dbstd_test_engine_rpm_required_pull_block where create_time::date =p_date;
 insert into fw_core.run_validation_count(schema_name,table_name,row_count) select 'staging2','dbstd_test_engine_rpm_rpm_block',count(*) from staging2.dbstd_test_engine_rpm_rpm_block where create_time::date =p_date;
 insert into fw_core.run_validation_count(schema_name,table_name,row_count) select 'staging2','dbstd_test_engine_rpm_tyre_details_block',count(*) from staging2.dbstd_test_engine_rpm_tyre_details_block where create_time::date =p_date;
 insert into fw_core.run_validation_count(schema_name,table_name,row_count) select 'staging2','dbstd_test_engine_rpm_weight_block',count(*) from staging2.dbstd_test_engine_rpm_weight_block where create_time::date =p_date;
 insert into fw_core.run_validation_count(schema_name,table_name,row_count) select 'staging2','dbstd_test_h1_block',count(*) from staging2.dbstd_test_h1_block where create_time::date =p_date;
 insert into fw_core.run_validation_count(schema_name,table_name,row_count) select 'staging2','dbstd_test_measurement_uncertainty_block',count(*) from staging2.dbstd_test_measurement_uncertainty_block where create_time::date =p_date;
 insert into fw_core.run_validation_count(schema_name,table_name,row_count) select 'staging2','dbstd_test_remarks_block',count(*) from staging2.dbstd_test_remarks_block where create_time::date =p_date;
 insert into fw_core.run_validation_count(schema_name,table_name,row_count) select 'staging2','dbstd_test_remarks_footer_block',count(*) from staging2.dbstd_test_remarks_footer_block where create_time::date =p_date;
 insert into fw_core.run_validation_count(schema_name,table_name,row_count) select 'staging2','dbstd_test_test_condition_block',count(*) from staging2.dbstd_test_test_condition_block where create_time::date =p_date;
 insert into fw_core.run_validation_count(schema_name,table_name,row_count) select 'staging2','dbstd_test_test_equipment_used_block',count(*) from staging2.dbstd_test_test_equipment_used_block where create_time::date =p_date;
 insert into fw_core.run_validation_count(schema_name,table_name,row_count) select 'staging2','dbstd_test_tractor_specifications_cleaner_block',count(*) from staging2.dbstd_test_tractor_specifications_cleaner_block where create_time::date =p_date;
 insert into fw_core.run_validation_count(schema_name,table_name,row_count) select 'staging2','dbstd_test_tractor_specifications_cylinders_block',count(*) from staging2.dbstd_test_tractor_specifications_cylinders_block where create_time::date =p_date;
 insert into fw_core.run_validation_count(schema_name,table_name,row_count) select 'staging2','dbstd_test_tractor_specifications_engine_details_block',count(*) from staging2.dbstd_test_tractor_specifications_engine_details_block where create_time::date =p_date;
 insert into fw_core.run_validation_count(schema_name,table_name,row_count) select 'staging2','dbstd_test_tractor_specifications_fuel_and_injection_block',count(*) from staging2.dbstd_test_tractor_specifications_fuel_and_injection_block where create_time::date =p_date;
 insert into fw_core.run_validation_count(schema_name,table_name,row_count) select 'staging2','dbstd_test_transmission_clutch_block',count(*) from staging2.dbstd_test_transmission_clutch_block where create_time::date =p_date;
 insert into fw_core.run_validation_count(schema_name,table_name,row_count) select 'staging2','dbstd_test_transmission_drawbar_block',count(*) from staging2.dbstd_test_transmission_drawbar_block where create_time::date =p_date;
 insert into fw_core.run_validation_count(schema_name,table_name,row_count) select 'staging2','dbstd_test_transmission_fuel_lubricant_block',count(*) from staging2.dbstd_test_transmission_fuel_lubricant_block where create_time::date =p_date;
 insert into fw_core.run_validation_count(schema_name,table_name,row_count) select 'staging2','dbstd_test_transmission_speed_chart_block',count(*) from staging2.dbstd_test_transmission_speed_chart_block where create_time::date =p_date;
 insert into fw_core.run_validation_count(schema_name,table_name,row_count) select 'staging2','dbstd_test_transmission_speed_chart_desc_block',count(*) from staging2.dbstd_test_transmission_speed_chart_desc_block where create_time::date =p_date;
 insert into fw_core.run_validation_count(schema_name,table_name,row_count) select 'staging2','dbstd_test_transmission_wheels_block',count(*) from staging2.dbstd_test_transmission_wheels_block where create_time::date =p_date;
 insert into fw_core.run_validation_count(schema_name,table_name,row_count) select 'staging2','ftdry_sum_comments_by_block',count(*) from staging2.ftdry_sum_comments_by_block where create_time::date =p_date;
 insert into fw_core.run_validation_count(schema_name,table_name,row_count) select 'staging2','ftdry_sum_implement_block',count(*) from staging2.ftdry_sum_implement_block where create_time::date =p_date;
 insert into fw_core.run_validation_count(schema_name,table_name,row_count) select 'staging2','ftdry_sum_test_condition_1_block',count(*) from staging2.ftdry_sum_test_condition_1_block where create_time::date =p_date;
 insert into fw_core.run_validation_count(schema_name,table_name,row_count) select 'staging2','ftdry_sum_test_condition_2_block',count(*) from staging2.ftdry_sum_test_condition_2_block where create_time::date =p_date;
 insert into fw_core.run_validation_count(schema_name,table_name,row_count) select 'staging2','ftdry_sum_trac_h1_block',count(*) from staging2.ftdry_sum_trac_h1_block where create_time::date =p_date;
 insert into fw_core.run_validation_count(schema_name,table_name,row_count) select 'staging2','ftdry_trs_engine_rpm_block',count(*) from staging2.ftdry_trs_engine_rpm_block where create_time::date =p_date;
 insert into fw_core.run_validation_count(schema_name,table_name,row_count) select 'staging2','ftdry_trs_h1_block',count(*) from staging2.ftdry_trs_h1_block where create_time::date =p_date;
 insert into fw_core.run_validation_count(schema_name,table_name,row_count) select 'staging2','ftdry_trs_implement_block',count(*) from staging2.ftdry_trs_implement_block where create_time::date =p_date;
 insert into fw_core.run_validation_count(schema_name,table_name,row_count) select 'staging2','ftdry_trs_spec_block',count(*) from staging2.ftdry_trs_spec_block where create_time::date =p_date;
 insert into fw_core.run_validation_count(schema_name,table_name,row_count) select 'staging2','fthlg_sum_comments_by_block',count(*) from staging2.fthlg_sum_comments_by_block where create_time::date =p_date;
 insert into fw_core.run_validation_count(schema_name,table_name,row_count) select 'staging2','fthlg_sum_test_condition_1_block',count(*) from staging2.fthlg_sum_test_condition_1_block where create_time::date =p_date;
 insert into fw_core.run_validation_count(schema_name,table_name,row_count) select 'staging2','fthlg_sum_test_condition_2_block',count(*) from staging2.fthlg_sum_test_condition_2_block where create_time::date =p_date;
 insert into fw_core.run_validation_count(schema_name,table_name,row_count) select 'staging2','fthlg_sum_trac_h1_block',count(*) from staging2.fthlg_sum_trac_h1_block where create_time::date =p_date;
 insert into fw_core.run_validation_count(schema_name,table_name,row_count) select 'staging2','fthlg_sum_trail_type_block',count(*) from staging2.fthlg_sum_trail_type_block where create_time::date =p_date;
 insert into fw_core.run_validation_count(schema_name,table_name,row_count) select 'staging2','fthlg_trs_engine_rpm_block',count(*) from staging2.fthlg_trs_engine_rpm_block where create_time::date =p_date;
 insert into fw_core.run_validation_count(schema_name,table_name,row_count) select 'staging2','fthlg_trs_h1_block',count(*) from staging2.fthlg_trs_h1_block where create_time::date =p_date;
 insert into fw_core.run_validation_count(schema_name,table_name,row_count) select 'staging2','fthlg_trs_spec_block',count(*) from staging2.fthlg_trs_spec_block where create_time::date =p_date;
 insert into fw_core.run_validation_count(schema_name,table_name,row_count) select 'staging2','fthlg_trs_trailer_block',count(*) from staging2.fthlg_trs_trailer_block where create_time::date =p_date;
 insert into fw_core.run_validation_count(schema_name,table_name,row_count) select 'staging2','ftwet_sum_cage_wheel_block',count(*) from staging2.ftwet_sum_cage_wheel_block where create_time::date =p_date;
 insert into fw_core.run_validation_count(schema_name,table_name,row_count) select 'staging2','ftwet_sum_comments_by_block',count(*) from staging2.ftwet_sum_comments_by_block where create_time::date =p_date;
 insert into fw_core.run_validation_count(schema_name,table_name,row_count) select 'staging2','ftwet_sum_implement_block',count(*) from staging2.ftwet_sum_implement_block where create_time::date =p_date;
 insert into fw_core.run_validation_count(schema_name,table_name,row_count) select 'staging2','ftwet_sum_test_condition_block',count(*) from staging2.ftwet_sum_test_condition_block where create_time::date =p_date;
 insert into fw_core.run_validation_count(schema_name,table_name,row_count) select 'staging2','ftwet_sum_trac_h1_block',count(*) from staging2.ftwet_sum_trac_h1_block where create_time::date =p_date;
 insert into fw_core.run_validation_count(schema_name,table_name,row_count) select 'staging2','ftwet_trs_engine_rpm_block',count(*) from staging2.ftwet_trs_engine_rpm_block where create_time::date =p_date;
 insert into fw_core.run_validation_count(schema_name,table_name,row_count) select 'staging2','ftwet_trs_h1_block',count(*) from staging2.ftwet_trs_h1_block where create_time::date =p_date;
 insert into fw_core.run_validation_count(schema_name,table_name,row_count) select 'staging2','ftwet_trs_implement_block',count(*) from staging2.ftwet_trs_implement_block where create_time::date =p_date;
 insert into fw_core.run_validation_count(schema_name,table_name,row_count) select 'staging2','ftwet_trs_spec_block',count(*) from staging2.ftwet_trs_spec_block where create_time::date =p_date;
 insert into fw_core.run_validation_count(schema_name,table_name,row_count) select 'staging2','ihtbt30_bt30_footer_block',count(*) from staging2.ihtbt30_bt30_footer_block where create_time::date =p_date;
 insert into fw_core.run_validation_count(schema_name,table_name,row_count) select 'staging2','ihtbt30_bt30_h1_block',count(*) from staging2.ihtbt30_bt30_h1_block where create_time::date =p_date;
 insert into fw_core.run_validation_count(schema_name,table_name,row_count) select 'staging2','ihtbt30_bt30_test_condition_block',count(*) from staging2.ihtbt30_bt30_test_condition_block where create_time::date =p_date;
 insert into fw_core.run_validation_count(schema_name,table_name,row_count) select 'staging2','ihtbt30_bt30_test_res_1_block',count(*) from staging2.ihtbt30_bt30_test_res_1_block where create_time::date =p_date;
 insert into fw_core.run_validation_count(schema_name,table_name,row_count) select 'staging2','ihtbt30_bt30_test_res_2_block',count(*) from staging2.ihtbt30_bt30_test_res_2_block where create_time::date =p_date;
 insert into fw_core.run_validation_count(schema_name,table_name,row_count) select 'staging2','ihtbt30_bt30_test_res_3_block',count(*) from staging2.ihtbt30_bt30_test_res_3_block where create_time::date =p_date;
 insert into fw_core.run_validation_count(schema_name,table_name,row_count) select 'staging2','ihtbt30_bt30_test_res_4_block',count(*) from staging2.ihtbt30_bt30_test_res_4_block where create_time::date =p_date;
 insert into fw_core.run_validation_count(schema_name,table_name,row_count) select 'staging2','ihtbt30_bt30_tyre_details_block',count(*) from staging2.ihtbt30_bt30_tyre_details_block where create_time::date =p_date;
 insert into fw_core.run_validation_count(schema_name,table_name,row_count) select 'staging2','ihtbt30_bt30_weight_block',count(*) from staging2.ihtbt30_bt30_weight_block where create_time::date =p_date;
 insert into fw_core.run_validation_count(schema_name,table_name,row_count) select 'staging2','ihtbt50_bt50_footer_block',count(*) from staging2.ihtbt50_bt50_footer_block where create_time::date =p_date;
 insert into fw_core.run_validation_count(schema_name,table_name,row_count) select 'staging2','ihtbt50_bt50_h1_block',count(*) from staging2.ihtbt50_bt50_h1_block where create_time::date =p_date;
 insert into fw_core.run_validation_count(schema_name,table_name,row_count) select 'staging2','ihtbt50_bt50_test_condition_block',count(*) from staging2.ihtbt50_bt50_test_condition_block where create_time::date =p_date;
 insert into fw_core.run_validation_count(schema_name,table_name,row_count) select 'staging2','ihtbt50_bt50_test_res_1_block',count(*) from staging2.ihtbt50_bt50_test_res_1_block where create_time::date =p_date;
 insert into fw_core.run_validation_count(schema_name,table_name,row_count) select 'staging2','ihtbt50_bt50_test_res_2_block',count(*) from staging2.ihtbt50_bt50_test_res_2_block where create_time::date =p_date;
 insert into fw_core.run_validation_count(schema_name,table_name,row_count) select 'staging2','ihtbt50_bt50_test_res_3_block',count(*) from staging2.ihtbt50_bt50_test_res_3_block where create_time::date =p_date;
 insert into fw_core.run_validation_count(schema_name,table_name,row_count) select 'staging2','ihtbt50_bt50_test_res_4_block',count(*) from staging2.ihtbt50_bt50_test_res_4_block where create_time::date =p_date;
 insert into fw_core.run_validation_count(schema_name,table_name,row_count) select 'staging2','ihtbt50_bt50_tyre_details_block',count(*) from staging2.ihtbt50_bt50_tyre_details_block where create_time::date =p_date;
 insert into fw_core.run_validation_count(schema_name,table_name,row_count) select 'staging2','ihtbt50_bt50_weight_block',count(*) from staging2.ihtbt50_bt50_weight_block where create_time::date =p_date;
 insert into fw_core.run_validation_count(schema_name,table_name,row_count) select 'staging2','ihtbtd_btd_footer_block',count(*) from staging2.ihtbtd_btd_footer_block where create_time::date =p_date;
 insert into fw_core.run_validation_count(schema_name,table_name,row_count) select 'staging2','ihtbtd_btd_h1_block',count(*) from staging2.ihtbtd_btd_h1_block where create_time::date =p_date;
 insert into fw_core.run_validation_count(schema_name,table_name,row_count) select 'staging2','ihtbtd_btd_test_condition_block',count(*) from staging2.ihtbtd_btd_test_condition_block where create_time::date =p_date;
 insert into fw_core.run_validation_count(schema_name,table_name,row_count) select 'staging2','ihtbtd_btd_test_res_1_block',count(*) from staging2.ihtbtd_btd_test_res_1_block where create_time::date =p_date;
 insert into fw_core.run_validation_count(schema_name,table_name,row_count) select 'staging2','ihtbtd_btd_test_res_2_block',count(*) from staging2.ihtbtd_btd_test_res_2_block where create_time::date =p_date;
 insert into fw_core.run_validation_count(schema_name,table_name,row_count) select 'staging2','ihtbtd_btd_test_res_3_block',count(*) from staging2.ihtbtd_btd_test_res_3_block where create_time::date =p_date;
 insert into fw_core.run_validation_count(schema_name,table_name,row_count) select 'staging2','ihtbtd_btd_test_res_4_block',count(*) from staging2.ihtbtd_btd_test_res_4_block where create_time::date =p_date;
 insert into fw_core.run_validation_count(schema_name,table_name,row_count) select 'staging2','ihtbtd_btd_test_res_5_block',count(*) from staging2.ihtbtd_btd_test_res_5_block where create_time::date =p_date;
 insert into fw_core.run_validation_count(schema_name,table_name,row_count) select 'staging2','ihtbtd_btd_test_res_6_block',count(*) from staging2.ihtbtd_btd_test_res_6_block where create_time::date =p_date;
 insert into fw_core.run_validation_count(schema_name,table_name,row_count) select 'staging2','ihtbtd_btd_tyre_details_block',count(*) from staging2.ihtbtd_btd_tyre_details_block where create_time::date =p_date;
 insert into fw_core.run_validation_count(schema_name,table_name,row_count) select 'staging2','ihtbtd_btd_weight_block',count(*) from staging2.ihtbtd_btd_weight_block where create_time::date =p_date;
 insert into fw_core.run_validation_count(schema_name,table_name,row_count) select 'staging2','ihtcgm_cgm_footer_block',count(*) from staging2.ihtcgm_cgm_footer_block where create_time::date =p_date;
 insert into fw_core.run_validation_count(schema_name,table_name,row_count) select 'staging2','ihtcgm_cgm_h1_block',count(*) from staging2.ihtcgm_cgm_h1_block where create_time::date =p_date;
 insert into fw_core.run_validation_count(schema_name,table_name,row_count) select 'staging2','ihtcgm_cgm_lifting_block',count(*) from staging2.ihtcgm_cgm_lifting_block where create_time::date =p_date;
 insert into fw_core.run_validation_count(schema_name,table_name,row_count) select 'staging2','ihtcgm_cgm_results_block',count(*) from staging2.ihtcgm_cgm_results_block where create_time::date =p_date;
 insert into fw_core.run_validation_count(schema_name,table_name,row_count) select 'staging2','ihtcgm_cgm_tyre_details_block',count(*) from staging2.ihtcgm_cgm_tyre_details_block where create_time::date =p_date;
 insert into fw_core.run_validation_count(schema_name,table_name,row_count) select 'staging2','ihtcgm_cgm_weight_block',count(*) from staging2.ihtcgm_cgm_weight_block where create_time::date =p_date;
 insert into fw_core.run_validation_count(schema_name,table_name,row_count) select 'staging2','ihtcgm_cgm_wheel_block',count(*) from staging2.ihtcgm_cgm_wheel_block where create_time::date =p_date;
 insert into fw_core.run_validation_count(schema_name,table_name,row_count) select 'staging2','ihtemt_emt_brake_pedal_block',count(*) from staging2.ihtemt_emt_brake_pedal_block where create_time::date =p_date;
 insert into fw_core.run_validation_count(schema_name,table_name,row_count) select 'staging2','ihtemt_emt_footer_block',count(*) from staging2.ihtemt_emt_footer_block where create_time::date =p_date;
 insert into fw_core.run_validation_count(schema_name,table_name,row_count) select 'staging2','ihtemt_emt_h1_block',count(*) from staging2.ihtemt_emt_h1_block where create_time::date =p_date;
 insert into fw_core.run_validation_count(schema_name,table_name,row_count) select 'staging2','ihtemt_emt_pedal_block',count(*) from staging2.ihtemt_emt_pedal_block where create_time::date =p_date;
 insert into fw_core.run_validation_count(schema_name,table_name,row_count) select 'staging2','ihtemt_emt_steering_block',count(*) from staging2.ihtemt_emt_steering_block where create_time::date =p_date;
 insert into fw_core.run_validation_count(schema_name,table_name,row_count) select 'staging2','ihtemt_emt_tyre_details_block',count(*) from staging2.ihtemt_emt_tyre_details_block where create_time::date =p_date;
 insert into fw_core.run_validation_count(schema_name,table_name,row_count) select 'staging2','ihtemt_emt_weight_block',count(*) from staging2.ihtemt_emt_weight_block where create_time::date =p_date;
 insert into fw_core.run_validation_count(schema_name,table_name,row_count) select 'staging2','ihtemt_emt_wheel_block',count(*) from staging2.ihtemt_emt_wheel_block where create_time::date =p_date;
 insert into fw_core.run_validation_count(schema_name,table_name,row_count) select 'staging2','ihtemt_std_raw_data_block',count(*) from staging2.ihtemt_std_raw_data_block where create_time::date =p_date;
 insert into fw_core.run_validation_count(schema_name,table_name,row_count) select 'staging2','ihtham_ham_atmos_cond_block',count(*) from staging2.ihtham_ham_atmos_cond_block where create_time::date =p_date;
 insert into fw_core.run_validation_count(schema_name,table_name,row_count) select 'staging2','ihtham_ham_drawbar_block',count(*) from staging2.ihtham_ham_drawbar_block where create_time::date =p_date;
 insert into fw_core.run_validation_count(schema_name,table_name,row_count) select 'staging2','ihtham_ham_engine_rpm_block',count(*) from staging2.ihtham_ham_engine_rpm_block where create_time::date =p_date;
 insert into fw_core.run_validation_count(schema_name,table_name,row_count) select 'staging2','ihtham_ham_footer_block',count(*) from staging2.ihtham_ham_footer_block where create_time::date =p_date;
 insert into fw_core.run_validation_count(schema_name,table_name,row_count) select 'staging2','ihtham_ham_h1_block',count(*) from staging2.ihtham_ham_h1_block where create_time::date =p_date;
 insert into fw_core.run_validation_count(schema_name,table_name,row_count) select 'staging2','ihtham_ham_results_block',count(*) from staging2.ihtham_ham_results_block where create_time::date =p_date;
 insert into fw_core.run_validation_count(schema_name,table_name,row_count) select 'staging2','ihtham_ham_tractor_block',count(*) from staging2.ihtham_ham_tractor_block where create_time::date =p_date;
 insert into fw_core.run_validation_count(schema_name,table_name,row_count) select 'staging2','ihtham_ham_tyre_details_block',count(*) from staging2.ihtham_ham_tyre_details_block where create_time::date =p_date;
 insert into fw_core.run_validation_count(schema_name,table_name,row_count) select 'staging2','ihtham_ham_weight_block',count(*) from staging2.ihtham_ham_weight_block where create_time::date =p_date;
 insert into fw_core.run_validation_count(schema_name,table_name,row_count) select 'staging2','ihthls_hls_footer_block',count(*) from staging2.ihthls_hls_footer_block where create_time::date =p_date;
 insert into fw_core.run_validation_count(schema_name,table_name,row_count) select 'staging2','ihthls_hls_h1_block',count(*) from staging2.ihthls_hls_h1_block where create_time::date =p_date;
 insert into fw_core.run_validation_count(schema_name,table_name,row_count) select 'staging2','ihthls_hls_numeric_block',count(*) from staging2.ihthls_hls_numeric_block where create_time::date =p_date;
 insert into fw_core.run_validation_count(schema_name,table_name,row_count) select 'staging2','ihthls_hls_tyre_details_block',count(*) from staging2.ihthls_hls_tyre_details_block where create_time::date =p_date;
 insert into fw_core.run_validation_count(schema_name,table_name,row_count) select 'staging2','ihthls_hls_weight_block',count(*) from staging2.ihthls_hls_weight_block where create_time::date =p_date;
 insert into fw_core.run_validation_count(schema_name,table_name,row_count) select 'staging2','ihthls_hls_wheel_block',count(*) from staging2.ihthls_hls_wheel_block where create_time::date =p_date;
 insert into fw_core.run_validation_count(schema_name,table_name,row_count) select 'staging2','ihtnst_nst_atmos_cond_block',count(*) from staging2.ihtnst_nst_atmos_cond_block where create_time::date =p_date;
 insert into fw_core.run_validation_count(schema_name,table_name,row_count) select 'staging2','ihtnst_nst_engine_rpm_block',count(*) from staging2.ihtnst_nst_engine_rpm_block where create_time::date =p_date;
 insert into fw_core.run_validation_count(schema_name,table_name,row_count) select 'staging2','ihtnst_nst_footer_block',count(*) from staging2.ihtnst_nst_footer_block where create_time::date =p_date;
 insert into fw_core.run_validation_count(schema_name,table_name,row_count) select 'staging2','ihtnst_nst_h1_block',count(*) from staging2.ihtnst_nst_h1_block where create_time::date =p_date;
 insert into fw_core.run_validation_count(schema_name,table_name,row_count) select 'staging2','ihtnst_nst_oel_noise_block',count(*) from staging2.ihtnst_nst_oel_noise_block where create_time::date =p_date;
 insert into fw_core.run_validation_count(schema_name,table_name,row_count) select 'staging2','ihtnst_nst_oel_noise_load_block',count(*) from staging2.ihtnst_nst_oel_noise_load_block where create_time::date =p_date;
 insert into fw_core.run_validation_count(schema_name,table_name,row_count) select 'staging2','ihtnst_nst_stand_noise_block',count(*) from staging2.ihtnst_nst_stand_noise_block where create_time::date =p_date;
 insert into fw_core.run_validation_count(schema_name,table_name,row_count) select 'staging2','ihtnst_nst_tyre_details_block',count(*) from staging2.ihtnst_nst_tyre_details_block where create_time::date =p_date;
 insert into fw_core.run_validation_count(schema_name,table_name,row_count) select 'staging2','ihtnst_nst_weight_block',count(*) from staging2.ihtnst_nst_weight_block where create_time::date =p_date;
 insert into fw_core.run_validation_count(schema_name,table_name,row_count) select 'staging2','ihtsll_sll_footer_block',count(*) from staging2.ihtsll_sll_footer_block where create_time::date =p_date;
 insert into fw_core.run_validation_count(schema_name,table_name,row_count) select 'staging2','ihtsll_sll_forward_block',count(*) from staging2.ihtsll_sll_forward_block where create_time::date =p_date;
 insert into fw_core.run_validation_count(schema_name,table_name,row_count) select 'staging2','ihtsll_sll_h1_block',count(*) from staging2.ihtsll_sll_h1_block where create_time::date =p_date;
 insert into fw_core.run_validation_count(schema_name,table_name,row_count) select 'staging2','ihtsll_sll_lead_lag_block',count(*) from staging2.ihtsll_sll_lead_lag_block where create_time::date =p_date;
 insert into fw_core.run_validation_count(schema_name,table_name,row_count) select 'staging2','ihtsll_sll_reverse_block',count(*) from staging2.ihtsll_sll_reverse_block where create_time::date =p_date;
 insert into fw_core.run_validation_count(schema_name,table_name,row_count) select 'staging2','ihtsll_sll_tyre_details_block',count(*) from staging2.ihtsll_sll_tyre_details_block where create_time::date =p_date;
 insert into fw_core.run_validation_count(schema_name,table_name,row_count) select 'staging2','ihtsll_sll_weight_block',count(*) from staging2.ihtsll_sll_weight_block where create_time::date =p_date;
 insert into fw_core.run_validation_count(schema_name,table_name,row_count) select 'staging2','ihtsll_sll_wheel_block',count(*) from staging2.ihtsll_sll_wheel_block where create_time::date =p_date;
 insert into fw_core.run_validation_count(schema_name,table_name,row_count) select 'staging2','ptoben_gvg_performance_governing_trails_block',count(*) from staging2.ptoben_gvg_performance_governing_trails_block where create_time::date =p_date;
 insert into fw_core.run_validation_count(schema_name,table_name,row_count) select 'staging2','ptoben_mpm_performance_boost_natural_block',count(*) from staging2.ptoben_mpm_performance_boost_natural_block where create_time::date =p_date;
 insert into fw_core.run_validation_count(schema_name,table_name,row_count) select 'staging2','ptoben_prf_2hrs_max_power_natural_ambient_block',count(*) from staging2.ptoben_prf_2hrs_max_power_natural_ambient_block where create_time::date =p_date;
 insert into fw_core.run_validation_count(schema_name,table_name,row_count) select 'staging2','ptoben_prf_2hrs_max_power_test_high_ambient_block',count(*) from staging2.ptoben_prf_2hrs_max_power_test_high_ambient_block where create_time::date =p_date;
 insert into fw_core.run_validation_count(schema_name,table_name,row_count) select 'staging2','ptoben_prf_engine_oil_consumption_block',count(*) from staging2.ptoben_prf_engine_oil_consumption_block where create_time::date =p_date;
 insert into fw_core.run_validation_count(schema_name,table_name,row_count) select 'staging2','ptoben_prf_key_performance_parameters_block',count(*) from staging2.ptoben_prf_key_performance_parameters_block where create_time::date =p_date;
 insert into fw_core.run_validation_count(schema_name,table_name,row_count) select 'staging2','ptoben_prf_smoke_test_block',count(*) from staging2.ptoben_prf_smoke_test_block where create_time::date =p_date;
 insert into fw_core.run_validation_count(schema_name,table_name,row_count) select 'staging2','ptoben_prf_tractor_specs_block',count(*) from staging2.ptoben_prf_tractor_specs_block where create_time::date =p_date;
 insert into fw_core.run_validation_count(schema_name,table_name,row_count) select 'staging2','ptoben_prf_varying_load_rated_rpm_block',count(*) from staging2.ptoben_prf_varying_load_rated_rpm_block where create_time::date =p_date;
 insert into fw_core.run_validation_count(schema_name,table_name,row_count) select 'staging2','ptoben_prf_varying_load_std_pto_block',count(*) from staging2.ptoben_prf_varying_load_std_pto_block where create_time::date =p_date;
 insert into fw_core.run_validation_count(schema_name,table_name,row_count) select 'staging2','ptoben_prf_varying_speed_natural_ambient_block',count(*) from staging2.ptoben_prf_varying_speed_natural_ambient_block where create_time::date =p_date;
 insert into fw_core.run_validation_count(schema_name,table_name,row_count) select 'staging2','ptoben_prf_varying_speed_test_high_ambient_block',count(*) from staging2.ptoben_prf_varying_speed_test_high_ambient_block where create_time::date =p_date;

insert into fw_core.run_validation_count(schema_name,table_name,row_count) select 'transactional','budni_air_cleaner_perf_results',count(*) from transactional.budni_air_cleaner_perf_results where create_timestamp::date =p_date;
 insert into fw_core.run_validation_count(schema_name,table_name,row_count) select 'transactional','budni_brake_perf_parking_brake_test_results',count(*) from transactional.budni_brake_perf_parking_brake_test_results where create_timestamp::date =p_date;
 insert into fw_core.run_validation_count(schema_name,table_name,row_count) select 'transactional','budni_brake_perf_service_brake_test_results',count(*) from transactional.budni_brake_perf_service_brake_test_results where create_timestamp::date =p_date;
 insert into fw_core.run_validation_count(schema_name,table_name,row_count) select 'transactional','budni_centre_of_gravity_location',count(*) from transactional.budni_centre_of_gravity_location where create_timestamp::date =p_date;
 insert into fw_core.run_validation_count(schema_name,table_name,row_count) select 'transactional','budni_drawbar_perf_results',count(*) from transactional.budni_drawbar_perf_results where create_timestamp::date =p_date;
 insert into fw_core.run_validation_count(schema_name,table_name,row_count) select 'transactional','budni_field_perf_results',count(*) from transactional.budni_field_perf_results where create_timestamp::date =p_date;
 insert into fw_core.run_validation_count(schema_name,table_name,row_count) select 'transactional','budni_haulage_perf_results',count(*) from transactional.budni_haulage_perf_results where create_timestamp::date =p_date;
 insert into fw_core.run_validation_count(schema_name,table_name,row_count) select 'transactional','budni_hydraulic_lifting_capacity_test_results',count(*) from transactional.budni_hydraulic_lifting_capacity_test_results where create_timestamp::date =p_date;
 insert into fw_core.run_validation_count(schema_name,table_name,row_count) select 'transactional','budni_hydraulic_maint_of_lift_load_results',count(*) from transactional.budni_hydraulic_maint_of_lift_load_results where create_timestamp::date =p_date;
 insert into fw_core.run_validation_count(schema_name,table_name,row_count) select 'transactional','budni_hydraulic_power_test_results',count(*) from transactional.budni_hydraulic_power_test_results where create_timestamp::date =p_date;
 insert into fw_core.run_validation_count(schema_name,table_name,row_count) select 'transactional','budni_noise_atmospheric_conditions',count(*) from transactional.budni_noise_atmospheric_conditions where create_timestamp::date =p_date;
 insert into fw_core.run_validation_count(schema_name,table_name,row_count) select 'transactional','budni_noise_measurement_results',count(*) from transactional.budni_noise_measurement_results where create_timestamp::date =p_date;
 insert into fw_core.run_validation_count(schema_name,table_name,row_count) select 'transactional','budni_pto_perf_results_details',count(*) from transactional.budni_pto_perf_results_details where create_timestamp::date =p_date;
 insert into fw_core.run_validation_count(schema_name,table_name,row_count) select 'transactional','budni_pto_perf_results_summary',count(*) from transactional.budni_pto_perf_results_summary where create_timestamp::date =p_date;
 insert into fw_core.run_validation_count(schema_name,table_name,row_count) select 'transactional','budni_test_observations',count(*) from transactional.budni_test_observations where create_timestamp::date =p_date;
 insert into fw_core.run_validation_count(schema_name,table_name,row_count) select 'transactional','budni_vibration_measurement',count(*) from transactional.budni_vibration_measurement where create_timestamp::date =p_date;
 insert into fw_core.run_validation_count(schema_name,table_name,row_count) select 'transactional','drawbar_perf_observations',count(*) from transactional.drawbar_perf_observations where create_timestamp::date =p_date;
 insert into fw_core.run_validation_count(schema_name,table_name,row_count) select 'transactional','drawbar_perf_oecd_results',count(*) from transactional.drawbar_perf_oecd_results where create_timestamp::date =p_date;
 insert into fw_core.run_validation_count(schema_name,table_name,row_count) select 'transactional','drawbar_perf_results',count(*) from transactional.drawbar_perf_results where create_timestamp::date =p_date;
 insert into fw_core.run_validation_count(schema_name,table_name,row_count) select 'transactional','drawbar_perf_results_summary',count(*) from transactional.drawbar_perf_results_summary where create_timestamp::date =p_date;
 insert into fw_core.run_validation_count(schema_name,table_name,row_count) select 'transactional','field_perf_summary',count(*) from transactional.field_perf_summary where create_timestamp::date =p_date;
 insert into fw_core.run_validation_count(schema_name,table_name,row_count) select 'transactional','field_perf_summary_implement_info',count(*) from transactional.field_perf_summary_implement_info where create_timestamp::date =p_date;
 insert into fw_core.run_validation_count(schema_name,table_name,row_count) select 'transactional','field_perf_summary_tractor_info',count(*) from transactional.field_perf_summary_tractor_info where create_timestamp::date =p_date;
 insert into fw_core.run_validation_count(schema_name,table_name,row_count) select 'transactional','field_perf_summary_trailer_info',count(*) from transactional.field_perf_summary_trailer_info where create_timestamp::date =p_date;
 insert into fw_core.run_validation_count(schema_name,table_name,row_count) select 'transactional','iht_brake_pedal_effort',count(*) from transactional.iht_brake_pedal_effort where create_timestamp::date =p_date;
 insert into fw_core.run_validation_count(schema_name,table_name,row_count) select 'transactional','iht_brake_perf_test_condition',count(*) from transactional.iht_brake_perf_test_condition where create_timestamp::date =p_date;
 insert into fw_core.run_validation_count(schema_name,table_name,row_count) select 'transactional','iht_brake_perf_test_results',count(*) from transactional.iht_brake_perf_test_results where create_timestamp::date =p_date;
 insert into fw_core.run_validation_count(schema_name,table_name,row_count) select 'transactional','iht_cgm_lifting_angle_load_details',count(*) from transactional.iht_cgm_lifting_angle_load_details where create_timestamp::date =p_date;
 insert into fw_core.run_validation_count(schema_name,table_name,row_count) select 'transactional','iht_cgm_results',count(*) from transactional.iht_cgm_results where create_timestamp::date =p_date;
 insert into fw_core.run_validation_count(schema_name,table_name,row_count) select 'transactional','iht_clutch_pedal_effort',count(*) from transactional.iht_clutch_pedal_effort where create_timestamp::date =p_date;
 insert into fw_core.run_validation_count(schema_name,table_name,row_count) select 'transactional','iht_gear_effort',count(*) from transactional.iht_gear_effort where create_timestamp::date =p_date;
 insert into fw_core.run_validation_count(schema_name,table_name,row_count) select 'transactional','iht_gear_max_speed',count(*) from transactional.iht_gear_max_speed where create_timestamp::date =p_date;
 insert into fw_core.run_validation_count(schema_name,table_name,row_count) select 'transactional','iht_hot_air_mapping_results',count(*) from transactional.iht_hot_air_mapping_results where create_timestamp::date =p_date;
 insert into fw_core.run_validation_count(schema_name,table_name,row_count) select 'transactional','iht_hyd_lift_sensitivity',count(*) from transactional.iht_hyd_lift_sensitivity where create_timestamp::date =p_date;
 insert into fw_core.run_validation_count(schema_name,table_name,row_count) select 'transactional','iht_noise_measurement_results',count(*) from transactional.iht_noise_measurement_results where create_timestamp::date =p_date;
 insert into fw_core.run_validation_count(schema_name,table_name,row_count) select 'transactional','iht_noise_measurement_test',count(*) from transactional.iht_noise_measurement_test where create_timestamp::date =p_date;
 insert into fw_core.run_validation_count(schema_name,table_name,row_count) select 'transactional','iht_pedal_effort',count(*) from transactional.iht_pedal_effort where create_timestamp::date =p_date;
 insert into fw_core.run_validation_count(schema_name,table_name,row_count) select 'transactional','iht_speed_lead_lag_measurement',count(*) from transactional.iht_speed_lead_lag_measurement where create_timestamp::date =p_date;
 insert into fw_core.run_validation_count(schema_name,table_name,row_count) select 'transactional','iht_steering_effort',count(*) from transactional.iht_steering_effort where create_timestamp::date =p_date;
 insert into fw_core.run_validation_count(schema_name,table_name,row_count) select 'transactional','iht_steering_effort_raw_data',count(*) from transactional.iht_steering_effort_raw_data where create_timestamp::date =p_date;
 insert into fw_core.run_validation_count(schema_name,table_name,row_count) select 'transactional','pto_engine_oil_consumption',count(*) from transactional.pto_engine_oil_consumption where create_timestamp::date =p_date;
 insert into fw_core.run_validation_count(schema_name,table_name,row_count) select 'transactional','pto_key_perf_parameters',count(*) from transactional.pto_key_perf_parameters where create_timestamp::date =p_date;
 insert into fw_core.run_validation_count(schema_name,table_name,row_count) select 'transactional','pto_multipoint_mapping',count(*) from transactional.pto_multipoint_mapping where create_timestamp::date =p_date;
 insert into fw_core.run_validation_count(schema_name,table_name,row_count) select 'transactional','pto_perf_governing_graph',count(*) from transactional.pto_perf_governing_graph where create_timestamp::date =p_date;
 insert into fw_core.run_validation_count(schema_name,table_name,row_count) select 'transactional','pto_perf_results',count(*) from transactional.pto_perf_results where create_timestamp::date =p_date;
 insert into fw_core.run_validation_count(schema_name,table_name,row_count) select 'transactional','pto_smoke_test',count(*) from transactional.pto_smoke_test where create_timestamp::date =p_date;
 insert into fw_core.run_validation_count(schema_name,table_name,row_count) select 'transactional','test_instance',count(*) from transactional.test_instance where create_timestamp::date =p_date;
 insert into fw_core.run_validation_count(schema_name,table_name,row_count) select 'transactional','test_instance_atmospheric_info',count(*) from transactional.test_instance_atmospheric_info where create_timestamp::date =p_date;
 insert into fw_core.run_validation_count(schema_name,table_name,row_count) select 'transactional','test_instance_drawbar_info',count(*) from transactional.test_instance_drawbar_info where create_timestamp::date =p_date;
 insert into fw_core.run_validation_count(schema_name,table_name,row_count) select 'transactional','test_instance_engine_info',count(*) from transactional.test_instance_engine_info where create_timestamp::date =p_date;
 insert into fw_core.run_validation_count(schema_name,table_name,row_count) select 'transactional','test_instance_equipment_info',count(*) from transactional.test_instance_equipment_info where create_timestamp::date =p_date;
 insert into fw_core.run_validation_count(schema_name,table_name,row_count) select 'transactional','test_instance_fuel_lubricant_info',count(*) from transactional.test_instance_fuel_lubricant_info where create_timestamp::date =p_date;
 insert into fw_core.run_validation_count(schema_name,table_name,row_count) select 'transactional','test_instance_gear_speed_chart',count(*) from transactional.test_instance_gear_speed_chart where create_timestamp::date =p_date;
 insert into fw_core.run_validation_count(schema_name,table_name,row_count) select 'transactional','test_instance_images',count(*) from transactional.test_instance_images where create_timestamp::date =p_date;
 insert into fw_core.run_validation_count(schema_name,table_name,row_count) select 'transactional','test_instance_implement_info',count(*) from transactional.test_instance_implement_info where create_timestamp::date =p_date;
 insert into fw_core.run_validation_count(schema_name,table_name,row_count) select 'transactional','test_instance_measurement_uncertainty',count(*) from transactional.test_instance_measurement_uncertainty where create_timestamp::date =p_date;
 insert into fw_core.run_validation_count(schema_name,table_name,row_count) select 'transactional','test_instance_tractor_info',count(*) from transactional.test_instance_tractor_info where create_timestamp::date =p_date;
 insert into fw_core.run_validation_count(schema_name,table_name,row_count) select 'transactional','test_instance_tractor_info_misc',count(*) from transactional.test_instance_tractor_info_misc where create_timestamp::date =p_date;
 insert into fw_core.run_validation_count(schema_name,table_name,row_count) select 'transactional','test_instance_trailer_info',count(*) from transactional.test_instance_trailer_info where create_timestamp::date =p_date;
 insert into fw_core.run_validation_count(schema_name,table_name,row_count) select 'transactional','test_instance_tyre_info',count(*) from transactional.test_instance_tyre_info where create_timestamp::date =p_date;
 insert into fw_core.run_validation_count(schema_name,table_name,row_count) select 'transactional','test_instance_weight_reaction',count(*) from transactional.test_instance_weight_reaction where create_timestamp::date =p_date;
 insert into fw_core.run_validation_count(schema_name,table_name,row_count) select 'transactional','test_instance_wheels_info',count(*) from transactional.test_instance_wheels_info where create_timestamp::date =p_date;
insert into fw_core.run_validation_count(schema_name,table_name,row_count) select 'transactional','test_lab_location_master',count(*) from transactional.test_lab_location_master where create_timestamp::date =p_date;
end
$function$

