Prøv dette:
select sum(um.meta_value = '1') Sex1, sum(um.meta_value = '2') Sex2
from wp_usermeta um
join wp_users u on u.id = um.user_id
where um.meta_value = 1
group by date(u.user_registered)
Tak!!
Prøv dette:
select sum(um.meta_value = '1') Sex1, sum(um.meta_value = '2') Sex2
from wp_usermeta um
join wp_users u on u.id = um.user_id
where um.meta_value = 1
group by date(u.user_registered)
Tak!!