I am getting the following error while running the query in SQL Server:
Subquery returned more than 1 value. This is not permitted when the subquery follows =, !=, <, <= , >, >= or
Can anyone please help me out
My code looks like this :
UPDATE a
SET a.id = (SELECT f.id
FROM f
JOIN a ON a.fun = [f].funny
WHERE a.fun = [f].funny);