You would need something that tells you the order, yes. But if you can explain why you need them in that order (or what order you’re putting them in) maybe I can help.
Either way, it’s going to be using the Order By clause, it’s just what you’re using that on for meeting your needs.
The goal is to maintain a recipe order list, if a recipe is called multiple times in different quantities, I want it to total them all up but collapse to the 1st occurence of the recipe, while maintaining the sequence integrity..
Sample Data:
| Brick | 1234 | 1 |
| File | 111 | 1 |
| Brick | 1234 | 3 |
| Brick | 1234 | 4 |
| Taco | 1212 | 1 |
Desired:
| ItemName | RecipeID | ItemCount |
| Brick | 1234 | 8 |
| File | 111 | 1 |
| Taco | 1212 | 1 |


