Hi, I hv the following query that is returning correct values.
However, I want to add one more condition to this query.
select b.btdnumber as btdnumber,
b.btdtrfno as bbtdtrfno,
a.btdtrfno as btdtrfnohidden,
a.BtdAcno as BtdAcno,
a.BtdCertNo as BtdCertNo,
a.BtdShare as BtdShare
from shrbatchdetail a
right outer join shrbatchdetail b
on a.btdrecid = b.btdrecid
and a.btdsellbuy = 'S'
Along with the above details and satisfying above conditions, I want
to get
c.shmName from shrShareMaster c where c.shmacno = b.btdacno
Pls help me to modify the query.
-Omav