Windowed functions can only appear in the SELECT or ORDER BY clauses.The example mentioned in your question is invalid and will return an error:
select partid,product
from product
having count(partid) over
Having is to specify filter conditions for the group or or an aggregate returned in the previous step.
Echo