Consider like this table 1 is the main table, for each value in table 1 names has multiple sub names in Table 2. the output is to get the Table 1 comment value from table 2 where the last occurrence of 1,
so for Alerts referencing to table 2 the 1 has stopped at A1
For Phone referencing to table 2 the 1 has stopped at P2, When p3 value in table 2 is changed to 1 the table 1 comment is changed to p3.
If all 5 are 1 then the comment should be Done.
Hope that clarifies.