答案 0 :(得分:0)
这样做(在SQL Server中):
select t1.Payer, t1.[Transaction Date], t2.Status
from Table1 t1
left outer join Table2 t2
on t2.Payer = t1.Payer
and t2.[Transaction Date] = (
select min([Transaction Date])
from Table2
where Payer = t1.Payer
and [Transaction Date] >= t1.[Transaction Date])