title: hive sql:having count multiple conditions
body: <p>How to achieve multiple conditions in having count clause? Such as <code>case when prob=1 then having count(cust_id)&lt;=3 or case when prob=0 then having count(cust_id)&lt;=2</code></p>
  
  <p>thanks in advance!</p>