[MySQL] Add condition to Virutal Fields
By using HAVING 'virtual_field' CONDITION we can add conditions to virtual fields that created at SELECT
Copy this code and paste it in your HTML
id,
user_id,
defeated_login_boss_id,
number_of_times,
SUM(number_of_times
) AS total
tb_user_login_boss_collections
WHERE defeated_login_boss_id
= 2
Report this snippet
Comments
Subscribe to comments