sql server get date of previous sunday

Solutions on MaxInterview for sql server get date of previous sunday by the best coders in the world

showing results for - "sql server get date of previous sunday"
Zeb
06 Oct 2016
1--start of last week
2SELECT DATEADD(wk, DATEDIFF(wk, 6, GETDATE()), 0)
3
4--end of last week
5SELECT DATEADD(wk, DATEDIFF(wk, 6, GETDATE()), 6)
6
similar questions
queries leading to this page
sql server get date of previous sunday