I have two tables with data with people leaving a company from different data sources. In one column for leaving date there are some missing values and in these cases I want to take the dates from the other table.
The columns in the two tables look like this:
ID exit1 exit2
1 1 N/A 31/01/2016
2 2 01/02/2016 01/01/2021
3 3 01/10/2010 30/09/2019
4 4 N/A 31/12/2015
5 5 01/01/2016 30/09/2020
I want my result to be like this:
ID exit1
1 1 31/01/2016
2 2 01/02/2016
3 3 01/10/2010
4 4 31/12/2015
5 5 01/01/2016
Does anyone know how I could do this?
Thanks!