I 'know it can be done - I am just having trouble creating it'
I have two tables
1) Inventory
2) Holds
I want to run a query that will give me result the shows the total holds vs inventory qty on hand. I want to show all the items that have more holds than the current inventory level.
In theory the system will never allow a user to put on hold if there is not an enough inventory.
But I want to run the query on program startup to create a dashboard for the user to know those inventory items have 'issues'
There could be multiple holds per inventory item
I know it would involve sum and group by. But I am stuck trying to create the needed sql query.
Any help would be appreciated.
I have two tables
1) Inventory
2) Holds
I want to run a query that will give me result the shows the total holds vs inventory qty on hand. I want to show all the items that have more holds than the current inventory level.
In theory the system will never allow a user to put on hold if there is not an enough inventory.
But I want to run the query on program startup to create a dashboard for the user to know those inventory items have 'issues'
There could be multiple holds per inventory item
I know it would involve sum and group by. But I am stuck trying to create the needed sql query.
Any help would be appreciated.