I've written two queries below with results that look similar to this:
table : company_changes
| user_id | start_at | end_at | company_id |
|---|---|---|---|
| 189 | 2020-12-12 | 2021-03-02 | 88 |
| 189 | 2021-03-02 | 2050-01-01 | 169 |
table: enablement_changes
| user_id | start_at | end_at | enablement |
|---|---|---|---|
| 189 | 2020-12-12 | 2021-10-15 | disabled |
| 189 | 2021-10-15 | 2050-01-01 | enabled |
It is important that I know when users are at a certain company_id and are either enabled or disabled.
My desired results are a table like this:
| user_id | start_at | end_at | company_id | status |
|---|---|---|---|---|
| 189 | 2020-12-12 | 2021-03-02 | 88 | disabled |
| 189 | 2021-03-02 | 2021-10-15 | 169 | disabled |
| 189 | 2021-10-15 | 2050-01-01 | 169 | enabled |
I essentially want to combine the results of those queries together. The 2050-01-01 is an arbitrary date in the future. Since the user_id has not changed status or company_id then it shows as 2050-01-01 because it is the user's present state.
Any idea how to approach this?
Here is the fiddle: http://sqlfiddle.com/#!9/5c42b6
First time asking on Stackoverflow... Please let me know if my question was not in the correct format.

