I\'m trying to get the most recent Friday in SQL Server 2008.
I have this. It gets the beginning of the week (monday) then subtracts 3 days to get Friday.
SELECT CONVERT(VARCHAR(12),GETDATE()) AS Today, CASE WHEN (DATEPART(DW,GETDATE())< 7) THEN CONVERT(VARCHAR(12),(DATEADD(dd,-(DATEPART(DW,GETDATE())+1),GETDATE()))) ELSE CONVERT(VARCHAR(12),(DATEADD(d,- 1,GETDATE()))) END AS [Last Friday]