How can i select Company name with max count of Employers between 2 dates with using subquery, main problem is that i have 2 same dates with 2 max values, and i need to take only first of it in subquery
select Company.CompanyName from Company
where FoundingDate between (select top (1) with ties FoundingDate
from Company order by FoundingDate desc) and '2020-11-30'
group by Company.CompanyName