I have a query like this:
SELECT COUNT(*) AS amount FROM daily_individual_tracking WHERE sales = \'YES\' AND daily_individual_tracking_date BETWEEN \'2010-01
What exactly are you trying to count? The total number of distinct values of daily_individual_tracking_date? Do you need it in the same query as the count(*) query?