Forum Discussion
Search Two Tables by using Two Columns
In the table below there are two customer I would like to check all dates to see if there is any change to each date in the second table, however when checking the dates I want to ignore the records where there is a null against a date as this illustrates that no change in dates. So the first customer would get a false against the filter Keep Record, however the second customer would have a true set, as the T2.Logon Date has a change to the record in the first table.
Customer ID |
| 123456789 |
| 987654321 |
T1.Registered Date |
| 01/01/2023 |
| 01/01/2023 |
T1.Start Date |
| 01/02/2023 |
| 01/02/2023 |
T1.Order Date |
| 01/03/2023 |
| 01/03/2023 |
T1. Logon Date |
| Null |
| Null |
T2.Registered Date |
| Null |
| Null |
T2.Start Date |
| Null |
| Null |
T2.Order Date |
| 01/02/2023 |
| Null |
T2. Logon Date |
| Null |
| 01/04/2023 |
Keep Record |
| FALSE |
| TRUE |