Mysql
 sql >> Base de données >  >> RDS >> Mysql

compter les enregistrements en joignant les tables de questions et réponses

select count(q.id) as cnt
from questions q
join answers a on a.question_id = q.id
where q.solved_answer_id > 0
and a.created_by = 953