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 -

Qt QGraphicsScene is not accessable from QGraphicsView (on Qt 5.6.1) -

Python Tornado package error when running server -