RED-8712: Fixed sql statement #388

Merged
dominique.eiflaender1 merged 1 commits from RED-8712 into release/2.349.x 2024-03-11 14:20:56 +01:00

View File

@ -1,7 +1,7 @@
Delete
from redaction.manual_redaction
from manual_redaction
where concat(annotation_id, file_id) in (SELECT concat(manual_redaction_entry_entity_annotation_id, id)
from redaction.file file
JOIN redaction.manual_redaction_entry_entity_positions pos
from file file
JOIN manual_redaction_entry_entity_positions pos
ON file.id = pos.manual_redaction_entry_entity_file_id
where file.number_of_pages < pos.page);