I am trying to find out a way in which to match all inbound flights for DFW & SFO to the nearest outbound flights from the lookup table while returning the outbound flt_nbr, flt_date flt_day and time. I have attached the sample inbound and lookup table. Any assistance would be greatly appreciated.