Good morning! I would like to know how I can make a query to obtain the results of my records depending on the date.
I have PEDPOS which is the order and I have CMOV which is the move that was made (101 delivered 102 returned) I have the date on which it was made every CMOV
What I want to do is for example if an article that has:
PEDPOS CMOV FECHA
123 102 20-02-17
123 101 22-03-17
Here as you can see this request is already discarded because it was delivered, as, what I want to know is how I can do to get those that are not yet delivered as for example this:
PEDPOS CMOV FECHA
124 102 15-03-17
124 101 23-03-17
124 102 04-04-17
Here the product is not returned yet, as it had previously been delivered but returned again