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
Loading
Maneesh A NPosted Sep 2, 2013, 6:31 AM
Msg 8117, Level 16, State 1, Line 1
Operand data type varchar is invalid for sum operator.
Kunal VaishyaPosted Sep 2, 2013, 6:18 AM