I am trying to Join data from two different tables where there is not a direct link. I need the first entry from Table 2 that occurs after the entry in table 1 where an equipment ID matches. The data sources are from 2 systems that are not directly linked and Table 2 is only populated upon final consumption of a particualr item
For example. There is an entry in Table 1 at 5:00 pm for equipment A. Table 2 may then be populated at 5:02 for Equipment B, 5:10 for Equipment C and then maybe not until 5:15 for Equipment A. There will be additional entries after this for all pieces of equipment. I want to be able to join the entry in table 1 with the 5:15 entry in Table 2.
All attempts to date have resulted in many thousands of entries more than are in Table1.
Any guidance you could give would be greatly appreciated.
Thanks!
For example. There is an entry in Table 1 at 5:00 pm for equipment A. Table 2 may then be populated at 5:02 for Equipment B, 5:10 for Equipment C and then maybe not until 5:15 for Equipment A. There will be additional entries after this for all pieces of equipment. I want to be able to join the entry in table 1 with the 5:15 entry in Table 2.
All attempts to date have resulted in many thousands of entries more than are in Table1.
Any guidance you could give would be greatly appreciated.
Thanks!