Fai una prova:
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)
Grazie!!
Fai una prova:
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)
Grazie!!