select service_name, Category,OnHand, COUNT(status) as Pending,OnHand - COUNT(status) as Inventory from ViewForInventory where business_id=26 and [Type]=1 group by service_name, Category,OnHand order by service_name asc
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)