SyntaxFix
Write A Post
Hire A Developer
Questions
Here's my go:
UPDATE test as t1 INNER JOIN test as t2 ON t1.NAME = t2.NAME AND t2.value IS NOT NULL SET t1.VALUE = t2.VALUE;
EDIT: Removed superfluous t1.id != t2.id condition.
t1.id != t2.id