Browse Source

Merge branch 'master' of https://git.hostfl.ru/VolovikovAlex/Study2025

Volovikov Alexander 4 months ago
parent
commit
f1c5603683
1 changed files with 3 additions and 3 deletions
  1. 3 3
      _Infra/scripts/HomeWork20250206_Part2.sql

+ 3 - 3
_Infra/scripts/HomeWork20250206_Part2.sql

@@ -44,7 +44,6 @@
 			into var_interpolation.x0, var_interpolation.y0, var_interpolation.x1, var_interpolation.y1
 			into var_interpolation.x0, var_interpolation.y0, var_interpolation.x1, var_interpolation.y1
 			from
 			from
 			(
 			(
-			
 				select t1.temperature as x0, t1.correction as y0
 				select t1.temperature as x0, t1.correction as y0
 				from public.calc_temperatures_correction as t1
 				from public.calc_temperatures_correction as t1
 				where t1.temperature <= var_temperature
 				where t1.temperature <= var_temperature
@@ -70,10 +69,11 @@
 			
 			
 			end if;
 			end if;
 			
 			
-            var_result := (var_temperature - var_interpolation.x0) * (var_interpolation.y1 - var_interpolation.y0) / var_denominator + var_interpolation.y0;
-			raise notice 'Результат: %', var_result;
+                       var_result := (var_temperature - var_interpolation.x0) * (var_interpolation.y1 - var_interpolation.y0) / var_denominator + var_interpolation.y0;
 		
 		
 		end;
 		end;
 		end if;
 		end if;
 
 
+	        raise notice 'Результат: %', var_result;
+
  end $$;
  end $$;