SELECT groups.groups_id,
groups.groups_name,
Count(list.groups_id) as New,
list.list_id
From list
LEFT JOIN groups ON groups.groups_id = list.groups_id
Group by groups.groups_id ASC
เดามั่วๆ แนวทาง
Date :
2018-04-25 17:11:19
By :
Hararock
No. 3
Guest
Code (SQL)
select max(groups.groups_name) as groupname,count(*) as groupcount from list
left join groups on groups.groups_id = list.groups_id group by list.groups_id