I need to make a MYSQL query. I have a table in which I have column "data_emission" and "date_wind". I need to find all the lines in which they have the same expiration 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