Iam updating an temporary table from the original table but it is having some issues can anyone help me for this problem here is my code and the error
The below given statement says Incorrect syntax near the keyword 'group'.
Update #tmpODU set Tn1Cnt=1,TnPay=isnull(sum(Amt),0)
From Table1
where Code COLLATE DATABASE_DEFAULT=TcCode
COLLATE DATABASE_DEFAULT and Del='R' and Date<=dateadd(M,@n1D,@dDate)
group by Code
can anyone help me...
thank you.....