Hello all,
I have two dt and I want to create a new column in the primary dt based on the data from the secondary dt.
I want a JSL command that check the date in "dt1" date column and match a group number from "dt2" based on the start and end date. (timeframe)
dt1: (primary)
| date | Group |
| 5/17/2019 13:06 | |
| 5/17/2019 13:06 | |
| 5/23/2019 10:02 | |
| 5/24/2019 13:47 | |
dt2: (secondary)
| Group | start date | end date |
| 1 | 5/17/2019 20:15 | 5/18/2019 8:14 |
| 2 | 5/18/2019 8:15 | 5/18/2019 20:14 |
| 1 | 5/18/2019 20:15 | 5/19/2019 8:14 |
| 3 | 5/19/2019 8:15 | 5/19/2019 20:14 |
| 2 | 5/19/2019 20:15 | 5/20/2019 8:14 |
| 3 | 5/20/2019 8:15 | 5/20/2019 20:14 |
| 2 | 5/20/2019 20:15 | 5/21/2019 8:14 |
| 4 | 5/21/2019 8:15 | 5/21/2019 20:14 |
| 3 | 5/21/2019 20:15 | 5/22/2019 8:14 |
| 4 | 5/22/2019 8:15 | 5/22/2019 20:14 |
| 3 | 5/22/2019 20:15 | 5/23/2019 8:14 |
| 1 | 5/23/2019 8:15 | 5/23/2019 20:14 |
| 4 | 5/23/2019 20:15 | 5/24/2019 8:14 |
| 1 | 5/24/2019 8:15 | 5/24/2019 20:14 |
Your help will be highly appreciated.