SELECT COUNT(VALUE)
FROM TABLE
WHERE ID ='ID'
AND BETWEEN 'DATE1' AND 'DATE2'
- It will give total count value for the specified date
But I need the count for each date how to do that…eg date is 1/1/2012 to 4/1/2012….I need count for each date like 1,2,3,4.
You add a
GROUP BYclauseThe catch using dates is to get rid of the time part. Using
CONVERTwith style 101 does just that.