SELECT CONVERT(NVARCHAR(10), DATEADD(DAY, number, dateadd(dd,-7 ,getdate())),120) AS GroupDay FROM master..spt_values WHERE TYPE = 'P' AND number <= 7
SELECT CONVERT(NVARCHAR(10), DATEADD(DAY, number, dateadd(dd,-7 ,getdate())),120) AS GroupDay FROM master..spt_values WHERE TYPE = 'P' AND number <= 7