A
Amin
So this seems like a tricky one. OK, so let's say you have two fields:
[Name], [Every dinner eaten]. So if they go out to Mcdonalds, the record is
Mcdonalds, but if they stay home, the record is null. So for example, let's
say the table looks like this:
Ted Olive Garden
Ted McDonalds
Ted
Ted McDonalds
Ted Olive Garden
Ted
Bill McDonalds
Bill Olive Garden
Bill
I can get my query to produce this
Ted Olive Garden 2
McDonalds 2
0
Bill Olive Garden 2
McDonalds 1
0
But how do I get it to count the Null fields? It always gives me zero.
This is my code:
SELECT [Name], [Store], COUNT[Store] GROUP BY [name]
Any ideas would be much appreciated.
Thanks
Amin
[Name], [Every dinner eaten]. So if they go out to Mcdonalds, the record is
Mcdonalds, but if they stay home, the record is null. So for example, let's
say the table looks like this:
Ted Olive Garden
Ted McDonalds
Ted
Ted McDonalds
Ted Olive Garden
Ted
Bill McDonalds
Bill Olive Garden
Bill
I can get my query to produce this
Ted Olive Garden 2
McDonalds 2
0
Bill Olive Garden 2
McDonalds 1
0
But how do I get it to count the Null fields? It always gives me zero.
This is my code:
SELECT [Name], [Store], COUNT[Store] GROUP BY [name]
Any ideas would be much appreciated.
Thanks
Amin