I have the following query:
declare @onlyrecents2 as int = 1 declare @periodtype2 as nvarchar(15) = \'w\' declare @last_modified_date_date2 as datetime2 = \'