having this question in mind
SELECT COUNT(DISTINCT productId) WHERE keyword='$keyword'
How can I get count of distinct row by condition
SELECT COUNT(DISTINCT productId -- THIS IS WHERE I NEED TO PUT CONDITION --) WHERE keyword='$keyword'
I need to cont distinct rows if that row doesn't have type <> 1
COUNTfunction?