Answers for "sql last week"

SQL
2

sql select data from last week

select id from tbname

where date between date_sub(now(),INTERVAL 1 WEEK) and now();
Posted by: Guest on July-31-2020
1

sql select data from last week

select id from tbname
where date between date_sub(now(),INTERVAL 1 WEEK) and now();
Posted by: Guest on April-07-2020
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

Code answers related to "SQL"

Browse Popular Code Answers by Language