In an Oracle DB I have a table with content similar to this:
Market_Intro_Date Change_Date Author
-------------------------------------------
01.06.2025 10.07.2020 Meyer *
01.01.2025 30.06.2020 Harrin
01.01.2025 01.05.2020 Floyd
01.01.2025 15.04.2020 Peterson *
01.12.2024 20.03.2020 George
01.12.2024 10.03.2020 Smith
01.12.2024 15.01.2020 George *
01.01.2025 15.12.2019 Lee
01.01.2025 01.11.2019 Alfonso
01.01.2025 10.10.2019 Peterson *
01.07.2025 30.09.2019 Smith *
01.07.2024 20.09.2019 Lee
01.07.2024 10.09.2019 Meyer
01.07.2024 01.05.2019 Smith *
I need an SQL query that will return the first occurrence of every change of the market introduction date (marked with * at the end) along with the change date and the author.
So the result of the query will be:
Market_Intro_Date Change_Date Author
-------------------------------------------
01.06.2025 10.07.2020 Meyer
01.01.2025 15.04.2020 Peterson
01.12.2024 15.01.2020 George
01.01.2025 10.10.2019 Peterson
01.07.2024 01.05.2019 Smith
Thank you in advance
01.01.2025 15.04.2020 Petersonshould be01.07.2025 30.09.2019 Smith