need to know how to add the date missing with null data in the corresponding field
**05/28/2012 NULL 05/29/2012 NULL 05/30/2012 NULL 05/30/2012 Break
Declare @stDate datetime='05/28/2012' declare @eddate datetime='06/14/2012' select DATEADD(day,number,@stdate) from master..spt_values where type='P' and DATEADD(day,number,@stdate) <= @eddate
Here just join this result with your table on dates column to get the missing dates