Have a had a look at DATEPART explanation in books online?http://msdn.microsoft.com/en-us/library/ms174420.aspxNow, to get all records added during week you can do thisDECLARE @CurrentDateSET @CurrentDate = DATEADD(dd,DATEDIFF(dd,0,GETDATE()),0)SELECT * FROM YourTable WHERE DateColumn > DATEADD(dd,-1 * (DATEPART(dw,@CurrentDate)-1),@CurrentDate)
Also make sure SELECT @@DATEFIRST returns 7 which indicates you have set Sunday as first day of week (default option)Bsically the above query returns the day of week for current day and goes back 1 less than number of days to reach the first day (Sunday) of week and takes all records from it.