I have a single table with items and quantities as follows:
Items Quantity
xyz -12
xyz 12
xyz -12
xyz 12
xyz 12
abc -25
abc -25
abc 25
abc 25
abc 25
abc 25
I want to run a query that will Delete the first four xyz rows and the first four abc rows because they will net to a zero quantity. As you can see, using item as the key I could be left with (none), one or more rows by item. Any help would be greatly appreciated!
Items Quantity
xyz -12
xyz 12
xyz -12
xyz 12
xyz 12
abc -25
abc -25
abc 25
abc 25
abc 25
abc 25
I want to run a query that will Delete the first four xyz rows and the first four abc rows because they will net to a zero quantity. As you can see, using item as the key I could be left with (none), one or more rows by item. Any help would be greatly appreciated!