SQL script for setting the Dataset's Status "Canceled" where DMP is published and them not "Finalized".
This commit is contained in:
parent
f29aec07cc
commit
493ab9763e
|
@ -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
|
||||||
|
)
|
Loading…
Reference in New Issue