Is there anyway to have HAVING and WHERE clauses work in conjecture with each other? ie psuedocode:
CASE
HAVING count(children) > 3 THEN WHERE nationality = 'Mexican'
HAVING count(children) = 2 THEN WHERE nationality = 'American'
HAVING count(children) = 1 THEN WHERE nationality = 'Japanese'
END
You can wrap your query inside of another
SELECT