Try this code.
--Declare some variables
Declare
@dw int,
@sun smalldatetime,
@sat smalldatetime
--Get current day of week
Select @dw=datepart(dw,getdate())
--If Saturday (7) set to 0
If @dw=7 Select @dw=0
--Calculate Sunday date
Select @sun=dateadd(d, -6-@dw, convert(char(10), getdate(), 101))
--Calculate Saturday date
Select @sat=@sun+6
--Optional display resulting dates
--Select Sun=@sun, Sat=@sat
--Select rows where date falls between dates calculated
Select * From Table_name
Where DateCol Between @sun and @sat
Note: If DateCol contains time as wel as date values, you'll need to add 1 to the calculated Saturday date.
Terry L. Broadbent - DBA
Computing Links:
faq183-874 contains "Suggestions for Getting Quick and Appropriate Answers" to your questions.