I have the following structure on a table named LINEFAC:
OPERATION CUSTOMER
4C201900 720
3V191025 650
3V191021 720
3V191021 721
3V191021 720
3V191018 520
3V191017 198
3V191016 789
3V191021 798
3V191014 720
And I need to show the results only when, on the same operation number (first column), the customer (second column) are 720 and 721 at the same time.
So the query result for this example must be:
OPERATION CUSTOMER
3V191021 720
3V191021 721
3V191021 720
I tried several combinations with the WHERE, ROW_NUMBER and many more statements without retrieving the desired data.
Thanks in advance.