SQL script for setting the Dataset's Status "Canceled" where DMP is published and them not "Finalized".

This commit is contained in:
gkolokythas 2020-01-08 11:46:16 +02:00
parent f29aec07cc
commit 493ab9763e
1 changed files with 8 additions and 0 deletions

View File

@ -0,0 +1,8 @@
UPDATE "Dataset" AS dataset
SET "Status" = 2
WHERE dataset."ID" in (
SELECT dataset1."ID"
FROM "Dataset" AS dataset1
INNER JOIN "DMP" AS dmp ON dmp."ID" = dataset1."DMP"
WHERE dmp."isPublic" = true AND dataset1."Status" = 0
)