H
hk_powerzone
I have tblInventory with ItemName, ModelNo
Lots of ItemNames and ModelNo's are duplicates so I want to get the following
view:
ItemName, ModelNo, DistinctCount
Ford, F150, 10
Ford, F250, 4
Chevrolet, 1500, 6
So here's the SQL I've been trying but I'm getting an error message:
SELECT Distinct ItemName, ModelNo, Count(Distinct ItemName, ModelNo) as
DistinctMakeModel FROM tblInventory Group By ItemName, ModelNo;
The error says: Syntax Error (missing operator) in query expression 'Count
(Distinct, ItemName, ModelNo)'.
Any ideas?
Lots of ItemNames and ModelNo's are duplicates so I want to get the following
view:
ItemName, ModelNo, DistinctCount
Ford, F150, 10
Ford, F250, 4
Chevrolet, 1500, 6
So here's the SQL I've been trying but I'm getting an error message:
SELECT Distinct ItemName, ModelNo, Count(Distinct ItemName, ModelNo) as
DistinctMakeModel FROM tblInventory Group By ItemName, ModelNo;
The error says: Syntax Error (missing operator) in query expression 'Count
(Distinct, ItemName, ModelNo)'.
Any ideas?