Holding_maintenance - SQL update to exclude deleted volumes
authorBill Erickson <berickxx@gmail.com>
Wed, 29 Oct 2014 21:09:26 +0000 (17:09 -0400)
committerBill Erickson <berickxx@gmail.com>
Thu, 21 Mar 2019 19:46:23 +0000 (15:46 -0400)
    Cross-port: b1b43f2

KCLS/sql/HoldingsMaintenance/holdings_maintenance.SQL

index 5968ac5..6e1d324 100644 (file)
@@ -77,6 +77,7 @@ SELECT acn.create_date, acn.creator, acn.deleted, acn.edit_date, acn.editor, acn
        LEFT OUTER JOIN asset.copy AS acp
        ON acn.id = acp.call_number
        WHERE acn.record = tcn_value
+       AND acn.deleted = 'f'
        AND acp.id IS NULL