i have an sql statement like this:
Code:
SELECT distinct store, dept, sku
FROM some_table
WHERE some_condition
i simply want to modify it to give me the count, i tried this, but it doesn't work:
Code:
SELECT count (distinct store, dept, sku)
FROM some_table
WHERE some_condition
what am i doing wrong? thank you very much for your help.