google -> having count

ornek

SELECT musteri_id
FROM satis_detay WHERE KITAP_ID IN ('X','Y')
group by musteri_id
having count(*)>1