• I think the correct answer should be -

    select * from (select lname , datemodified , ROW_NUMBER() over (PARTITION by lname,jobtitle order by datemodified desc) as 'ct' from #DuplicateRow) a where ct <2