I have 2 tables one has the user_info and another has user_activies.
I have a query that fetches several rows from user_info table. What I want to add to this query is;
I want to fetch todays user activities and count them from user_activities table.
user_info
| id | name | views | lastlogin | regdate | group_id |
user_activities
| id | userid | activity | date |
Current query
select id, name, views, lastlogin 
from user_info 
where group_id = 2 
ORDER BY user_info.id ASC
How could I concatenate count of the total number of activities has been done today?
Thanks in advance!
 
     
     
     
    