SELECT SUM(SI.vItemName),SUM(SI.iNos),SUM(SI.deAmount),SUM(TS.dInvoiceDate),
FROM tblSales TS INNER JOIN tblSalesItem SI ON TS.iSalesID=SI.iSalesID
GROUP BY SI.vItemName, SI.iNos, SI.deAmount,TS.dInvoiceDate
Msg 156, Level 15, State 1, Line 2
Incorrect syntax near the keyword 'FROM'.
GET ME ANSWER SOON?PLS
SUM
2 Answers
Know the answer? Post it. Somebody with the same question will find it here.

Kunal VaishyaRank #990 · 2K reputationPosted Sep 2, 2013, 2:18 AM EDT
Maneesh A N179 reputationPosted Sep 2, 2013, 2:31 AM EDT
Msg 8117, Level 16, State 1, Line 1
Operand data type varchar is invalid for sum operator.