Запись: wwwlir/Tetra/master/base/1594009357ocmugmkhw2/text.html на raw.githubusercontent.com
select p.inn, count(p) from rtneo$Payment p where (select count(p2) from rtneo$Payment p2 where p2.inn = p.inn and p2.date = p.date and not p2.inn = '' group by p2.inn, p2.date) > 1 group by p.inn, p.date order by p.inn