Here there two table Transaction and Refundtransaction
I want to fetch the data using join and duplicate data should be fetch.
I am using this query
select tr.transactionid, tr.customerid, tr.custname,
rt.Amount, rt.Refund_Amount, rt.transactionid, rt.referenceid
from Transaction tr
left join RefundTransaction rt on rt.referenceid = tr.transactionid
It is not giving proper data. It is not selecting duplicate data from refund data
please help here i am inserting image from which you can get actual scenario.