Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SQL

sql last week

select min(date), max(date)
from calendar
where week = datepart(week, getdate() - 7)
and year = datepart(year, getdate() - 7)
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #sql #week
ADD COMMENT
Topic
Name
1+6 =