select os_cislo, cislo_pom, kod, cis_rozhod_ext, count(*) as pocet from absence where dat_do is null group by os_cislo, cislo_pom, kod, cis_rozhod_ext having count(*) > 1