--ABONE NO AYNI OLAN ABONELERİN LİSTESİ
select d.AboneNo, COUNT(d.tDocumentId) as 'Adet'
from tBatch as b
inner join tDocument as d on d.tBatchId =b.tBatchId
where ISNULL(b.Deleted,0)=0 and ISNULL(d.Deleted,0)=0
group by d.AboneNo having COUNT(d.tDocumentId)>1 order by...