Why doesn’t the query below work:
INSERT INTO [ProcessStatus] ([ProcessId])
SELECT TMP.[ProcessId]
FROM (
SELECT DISTINCT
[ProcessId]
FROM [Process]
) TMP
error message is (returns added):
Subquery returned more than 1 value.
This is not permitted when the subquery follows =, !=, <, <= , >, >=
or when the subquery is used as an expression.
There may be a buggy trigger on the ProcessStatus table.