database - having count in multiple condition but in same table mysql -


can make having count on query syntax in multiple condition? query

select * absen keterangan = 'sakit' having count('keterangan') >= 1  , keterangan = 'alpa' having count('keterangan') > 5 

but in single condition work perferctly helped

yup can have multiple condition doesn't need write clause every time use , apply both conditions


Comments

Popular posts from this blog

Is there a better way to structure post methods in Class Based Views -

reflection - How to access the object-members of an object declaration in kotlin -

php - Doctrine Query Builder Error on Join: [Syntax Error] line 0, col 87: Error: Expected Literal, got 'JOIN' -