1
Good afternoon, doubt is very basic.
I am counting items from a single table to two specific "classes" (M and N) within the same column (two possible outputs is what I am calling a "class"). When I use the WHERE command with only one class the displayed result is correct:
Count how many type M occurrences
SELECT COUNT(Name)
FROM Data$
WHERE Policy_Group_Name = 'M'
or
Count how many type N occurrences
SELECT COUNT(Name)
FROM Data$
WHERE Policy_Group_Name = 'N'
But when I use the AND conditional and the two conditions I get 'O' or 'NULL' as a result:
Count how many occurrences of type M & N
SELECT COUNT(Name)
FROM Data$
WHERE Policy_Group_Name = 'M' AND Policy_Group_Name = 'N'
I don’t know where I’m going wrong, I know it must be something simple, but I can’t see, if anyone can help I appreciate.
Hug. Bia.
It did, thank you.
– Beatriz Campos
also WHERE Policy_group_name IN (’M' 'N')
– Motta