I have the following query:
update scores as c
set c.score = c.score + 0.5
where c.user_id in (select u.acc_id from users as u, tweets as t
where u.acc_id=t.author_original_id and t.tweet_content LIKE '%music%')
As you can see I want to increase score by 0.5 for each time acc_id appears in Select query.
How to force WHERE ... IN clause to return duplicates? I can't use UNION here (as far as a can see). The similar questions have been asked before (here and there). Still, proposed solutions which require using Union, will not work here. Thanks!