A função NEXT VALUE FOR não é permitida nas cláusulas WHEN MATCHED, WHEN NOT MATCHED ou WHEN NOT MATCHED BY SOURCE de uma ...