/ Published in: MySQL
By using HAVING 'virtual_field' CONDITION we can add conditions to virtual fields that created at SELECT
Expand |
Embed | Plain Text
SELECT id, user_id, defeated_login_boss_id, number_of_times, SUM(number_of_times) AS total FROM tb_user_login_boss_collections WHERE defeated_login_boss_id = 2 GROUP BY user_id HAVING total > 9
You need to login to post a comment.
