Using case when counting results from another table

Printable View