group by datepart(dd,getdate())--只取日期group by convert(char(8),getdate(),112)--按20030209取日期