Hey now, I can't find any info on this:
Using mysql 4, I'd like to do a multi-table update using a group by function in the set clause. Here's the sql (which works find if group by and avg() are removed):
UPDATE somelist, userrating
SET somelist.rating = avg(userrating.rating)
WHERE somelist.user_key = userrating.ref_user
GROUP BY userrating.ref_user;
Can anyone confirm that what I'm trying to do is impossible with mysql?
Thanks,
Tom