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

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
@@ -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;