This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
UPDATE movie_log | |
INNER JOIN ( | |
SELECT | |
item_id, | |
date, | |
view + | |
( | |
comment * | |
( | |
(view + mylist) / (view + comment + mylist) | |
) | |
) + mylist * 15 AS calculated_point | |
FROM movie_log | |
) AS temp | |
ON movie_log.item_id = temp.item_id | |
AND movie_log.date = temp.date | |
SET movie_log.point = calculated_point; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
メモ