Исправлены критические замечания

This commit is contained in:
2026-01-18 21:33:46 +03:00
parent 762d539d52
commit ba74b521dc
11 changed files with 143 additions and 90 deletions
+3 -1
View File
@@ -65,7 +65,9 @@ BEGIN
SELECT COUNT(*)
INTO v_orphan_airplanes_count
FROM stg.seats AS s
LEFT JOIN stg.airplanes AS a ON s.airplane_code = a.airplane_code
LEFT JOIN stg.airplanes AS a
ON s.airplane_code = a.airplane_code
AND a.batch_id = v_batch_id
WHERE s.batch_id = v_batch_id
AND a.airplane_code IS NULL;