I am getting an error: plz help me........
Incorrect syntax near the keyword 'select'.
the bold select in the query gets error
select * from (SELECT Ci.iInstNumber AS InstNo,ci.dInstDate AS InstDate, Ci.fInstAmount AS InstAmount
FROM tblChitInstalments ci
WHERE Ci.dInstDate <=@TrDate
select isnull(sum(fAmount),0) as TotalPaid from tblChitReceipts where iRegId=@iRegId and cType='D'
Loading
Sandeep Singh ShekhawatPosted Oct 12, 2012, 6:50 AM
select * from (SELECT Ci.iInstNumber AS InstNo,ci.dInstDate AS InstDate, Ci.fInstAmount AS InstAmount
FROM tblChitInstalments ci
WHERE Ci.dInstDate <=@TrDate) ---you are missing this
2.
select isnull(sum(fAmount),0) as TotalPaid from tblChitReceipts where iRegId=@iRegId and cType='D'
Thanks
Sandeep
Santhosh Kumar JayaramanPosted Oct 11, 2012, 6:13 AM
do you have 2 select queries here?
1.SELECT Ci.iInstNumber AS InstNo,ci.dInstDate AS InstDate, Ci.fInstAmount AS InstAmount
FROM tblChitInstalments ci
WHERE Ci.dInstDate <=@TrDate
2. select isnull(sum(fAmount),0) as TotalPaid from tblChitReceipts where iRegId=@iRegId and cType='D'