Interesting question. The wrong answers were obvious. But the right answer I had to think about. I've never constructed a query like that before, using distinct in the HAVING clause's COUNT. I've used it in a simple select COUNT(distinct..., just not with the HAVING part.