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

This commit is contained in:
2026-02-28 22:12:22 +03:00
parent 4b119fbd7c
commit bb83c831d2
11 changed files with 143 additions and 90 deletions
+3 -1
View File
@@ -76,7 +76,9 @@ BEGIN
SELECT COUNT(*)
INTO v_orphan_route_count
FROM stg.flights AS f
LEFT JOIN stg.routes AS r ON f.route_no = r.route_no
LEFT JOIN stg.routes AS r
ON f.route_no = r.route_no
AND r.batch_id = v_batch_id
WHERE f.batch_id = v_batch_id
AND r.route_no IS NULL;