Skip to content
Advertisement

Keeps counting all the text values instead of me providing a criteria in SQL

I have very simple query, to count the number of Cause Cancel from the Decision column. It keeps counting all the text values in the column and not just cause cancel.

Advertisement

Answer

I think you want a WHERE clause not a HAVING clause:

User contributions licensed under: CC BY-SA
3 People found this is helpful
Advertisement