G
Guest
How do I calc the number of distinct values in a field.
Doing the following returns the distinct records (which in my case is 247).
I actually want to return just the number of these distinct records, i.e. 247)
Rgds,
Bruce
SELECT Distinct q_Stats_Pricelist.ProductID
FROM q_Stats_Pricelist
GROUP BY q_Stats_Pricelist.ProductID;
Doing the following returns the distinct records (which in my case is 247).
I actually want to return just the number of these distinct records, i.e. 247)
Rgds,
Bruce
SELECT Distinct q_Stats_Pricelist.ProductID
FROM q_Stats_Pricelist
GROUP BY q_Stats_Pricelist.ProductID;