I have a table called Transfers, and I would like to find all the records that have duplicate values on three columns Doc ID,Amount and Date.
Basically what I need is to find w
Consider using group by for three columnsgroup by doc_id,Amount,Date
select t.doc_id,t.date,t.amount
from transfers t
where t.date between $P{StartDate} and $P{EndDate}
group by doc_id,Amount,Date
having count(doc_id) >1;