Answers for "how to get last week in sql"

SQL
0

sql last week

select min(date), max(date)
from calendar
where week = datepart(week, getdate() - 7)
and year = datepart(year, getdate() - 7)
Posted by: Guest on March-21-2020
0

date sql get the last week count

select * from dt_table where  `date` >= DATE_SUB(CURDATE(), INTERVAL 7 DAY)
Posted by: Guest on October-26-2020

Code answers related to "SQL"

Browse Popular Code Answers by Language