Check out example codes for "sql last week". It will help you in understanding the concepts better.

Code Example 1

select min(date), max(date)
from calendar
where week = datepart(week, getdate() - 7)
and year = datepart(year, getdate() - 7)

Learn ReactJs, React Native from akashmittal.com