2
I have a table that records steps of a drive.
For example:
Date - Movement - Product
2018-30-10 - produced - id1
2018-30-11 - packed - id1
2018-30-12- dispatched - id1
2018-30-10 - produced - id2
2018-30-10 - produced - id3
2018-30-11 - packed - id3
2018-30-10 - produced - id4
I would like a search to return the products that were packaged and not shipped.
But I could only do it inside a loop in my application.
I can do this with one consultation ?
Note that this solution is technically similar to what Roberto had already posted before (which already received my +1, inclusive), I just did in a slightly different order to help in understanding.
– Bacco