I have two tables and I need to create a join between them:

Table 1:

| Session | Player | Date Start |
| --- | --- | --- |
| 1234 | A | 20 Sept 2022 13:25 |
| 1234 | A | 20 Sept 2022 14:23 |
| 4532 | B | 20 Sept 2022 14:43 |
| 4532 | B | 20 Sept 2022 14:46 |
| 1234 | A | 20 Sept 2022 14:50 |
| 1456 | A | 20 Sept 2022 16:24 |
| 1456 | A | 20 Sept 2022 16:48 |

Table 2:

| Session | Player | Date End |
| --- | --- | --- |
| 1234 | A | 20 Sept 2022 13:28 |
| 1234 | A | 20 Sept 2022 14:30 |
| 4532 | B | 20 Sept 2022 14:45 |
| 4532 | B | 20 Sept 2022 14:49 |
| 1234 | A | 20 Sept 2022 14:52 |
| 1456 | A | 20 Sept 2022 16:29 |
| 1456 | A | 20 Sept 2022 16:49 |

The Date End should be between 2 consecutive Date Start for the same session and player

| Session | Player | Date Start | Date End |
| --- | --- | --- | --- |
| 1234 | A | 20 Sept 2022 13:25 | 20 Sept 2022 13:28 |
| 1234 | A | 20 Sept 2022 14:23 | 20 Sept 2022 14:30 |
| 4532 | B | 20 Sept 2022 14:43 | 20 Sept 2022 14:45 |
| 4532 | B | 20 Sept 2022 14:46 | 20 Sept 2022 14:49 |
| 1234 | A | 20 Sept 2022 14:50 | 20 Sept 2022 14:52 |
| 1456 | A | 20 Sept 2022 16:24 | 20 Sept 2022 16:29 |
| 1456 | A | 20 Sept 2022 16:48 | 20 Sept 2022 16:49 |