Database sum query

"select sum[Bin Quantity] from [Sheet1$] group by [Item Name] "
when i using above query the syntax error is coming

SELECT [Item Name], SUM([Bin Quantity]) AS [Total Quantity]
FROM [Sheet1$]
GROUP BY [Item Name]
TRY THIS

1 Like

Hi @Nishant_Dhamale

Try this

SELECT SUM('Bin Quantity') FROM [Sheet1$] GROUP BY [Item Name]

Hi @Nishant_Dhamale

Try using the below syntax:

SELECT [Item Name], SUM([Bin Quantity]) as TotalQuantity
FROM [Sheet1$]
GROUP BY [Item Name]

Hope it helps!!
Regards

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.