DateAdd(day, (-1* (DatePart(weekday, TIMESTAMP) % 7)) + 2, TIMESTAMP) -- If first day is sunday in SQL