Basically this code below returns the right information, but I need to add the quantities together to bring back one record. Is there any way of doing this?
select category.category_name, (equipment.total_stock-equipment.stock_out) AS Current_Stock, equipment.stock_out from EQUIPMENT, CATEGORY WHERE EQUIPMENT.CATEGORY_ID = CATEGORY.CATEGORY_ID and category.category_name = 'Power Tools'
You want to use the SUM function and a GROUP BY clause.