select dd,count(dd) from d group by dd having dd>='2013-04-01' and dd<='2013-04-07';
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)