Some combination of these should be what you are looking for.Declare @CurrentDay datetimeSelect @CurrentDay = getdate()select Datefrom MyTablewhere Date between -- First Friday before a given date at midnight dateadd(dd,(datediff(dd,-3,@CurrentDay-1)/7)*7,-3) and -- First Thrusday after a given date at midnight dateadd(dd,(datediff(dd,-3,@CurrentDay+1)/7)*7,+3)select Datefrom MyTablewhere Date between -- First Friday on or before a given date at midnight dateadd(dd,(datediff(dd,-3,@CurrentDay)/7)*7,-3) and -- First Thrusday on or after a given date at midnight dateadd(dd,(datediff(dd,-3,@CurrentDay)/7)*7,+3)
CODO ERGO SUM