urtrivedi
Posting Virtuoso
1,714 posts since Dec 2008
Reputation Points: 299
Solved Threads: 362
Skill Endorsements: 24
When you are not using code posted by me then how you can expect result. use following query
select
a.id as 'id',
a.adjust as 'adjust',
a.counter as 'counterCode',
c.name as 'counterName',
a.clientName as 'clientName',
a.loginId as 'loginId',
a.exchRate as 'exchRate',
a.filledQty as 'filledQty',
a.ordStatus as 'ordStatus',
a.price as 'price',
a.quantity as 'quantity',
a.remark as 'remark',
a.settCurr as 'settCurr',
tradCurr=isNull(c.currency, b.currency),
a.traderCode as 'traderCode',
a.tradingAccNo as 'tradingAccNo',
a.transType as 'transType',
a.createdDate as 'createdDate',
b.id as 'exchId',
b.name as 'exchCode'
from rm_markettransaction a
left join RM_Exchange b
on a.rm_exchange_fk = b.id
left join RM_Counter c
on c.code = a.counter
where b.srcType='offline' and CONVERT(VARCHAR(10), a.createdDate, 120) = '2011-06-10'
urtrivedi
Posting Virtuoso
1,714 posts since Dec 2008
Reputation Points: 299
Solved Threads: 362
Skill Endorsements: 24