Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
I have the sample data as below.
| Age | A.Date | B.Date | Unique ID |
| 1 | 2019-02-01 12:02:23 | 2/20/2019 | ABC55 |
| 2 | 2019-02-04 12:01:48 | 2/20/2019 | ABC55 |
| 3 | 2019-02-05 12:02:12 | 2/20/2019 | ABC55 |
| 4 | 2019-02-06 12:01:45 | 2/20/2019 | ABC55 |
| 5 | 2019-02-07 12:02:00 | 2/20/2019 | ABC55 |
| 6 | 2019-02-08 12:02:26 | 2/20/2019 | ABC55 |
| 7 | 2019-02-11 12:01:54 | 2/20/2019 | ABC55 |
I need to create a new field in the script where it contains the Age for the maximum A.Date column.
For ABC55, the New Age field should contain 7 since the Maximum A.Date Timestamp is 2019-02-11 12:01:54
I need to create a New Age field for the Maximum A.Date column and this one only adds Max(A.Date) to the existing table