I used this tutorial: https://answers.flexsim.com/articles/19407/sql-tutorial-step-by-step-model-construction-29.html, which helped me (with some modifications) to register the label of my product and their arrival time in my database. However, I also need to register their quantity. I need a new record every time the label or the arrival time changes and each record should have the product quantity. It should work similarly to the dashboard in the attached model, but a new record every time the arrival time changes.
Example:
Etiqueta(Label) | Tiempo(arrival time in seconds) | Cantidad(Quantity) |
2904
|
5.11 | 1 |
2904 | 6 | 5 |
40405 | 6 | 5 |
40405 | 7 | 1 |
Right now my database is registering new records every time a product arrives, so I have several records like this:
Etiqueta(Label) | Tiempo (arrival time in seconds) | Cantidad (Quantity) |
2904 | 6 | 1 |
2904 | 6 | 1 |
2904 | 6 | 1 |
2904 | 6 | 1 |
Instead of just one: 2904, 6, 4.
I really need to solve this. Thanks in advance!