I am trying to calculate the amount of stock left after transactions have been made, however it is returning me errors. What could I be doing wrong with my GROUP BY as it is