0
I need to make a MYSQL query. I have a table in which I have column "data_emissao" and "data_expiration". I need to find all the lines where they have the same due date, but different dates of issue. How can I compare rows like this from the same table?
EX:
Produto | data_emissao | data_venc A | 02/01/2016 | 02/01/2020 B | 04/07/2013 | 02/01/2020
The SQL query should return the due date 02/01/2020
Junction taking into consideration that the due date is equal and the date of issuance of the product to the left less than the right?
– Jefferson Quesado
The date of issuance may be both higher and lower, that is, it only has the condition of being different.
– Christian
@Christian if the answer helped, please mark the answer as useful and correct.
– Paulo R. F. Amorim