Исправлены критические замечания
This commit is contained in:
1 parent
4b119fbd7c
commit
bb83c831d2
11 files changed
+143
-90
No files matched your search
@@ -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;
|
||||
|
||||
|
||||
Reference in new issue
Block a user