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

we are a community of more than 2 million smartest coders
registration for
employee referral programs
are now open
get referred to google, amazon, flipkart and more
register now
  
pinned-register now
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