I have two date columns like these:
date_col_1 date_col_2
2020-02-01 2023-01-01
2020-03-01 2023-02-01
2020-04-01 .
. .
. .
. .
2022-12-01 2023-12-01
What I want is whenever date_col_2 > max(date_col_1), all the values greater than max(date_col_1) should go under the last value of the date_col_1 like this,
date_col_1
2020-02-01
2020-03-01
2020-04-01
.
.
.
2022-12-01
Append here
2023-01-01
2023-02-01
2023-03-01
.
.
.
I have tried various ways, nothing is giving the desired result. TIA