Getting the last 12 weeks from a specific date is easy and can be retrieved by the following command in SQL-server. Its answer is 2014-08-17.
select Dateadd(Week, -12, '2015-08-17')
What I want is to get the last 12 weeks but ending at the end of week. I dont want to see last week of 6, 5, 4, 3, 2, 1 days. Please help.