select a.invadjustid,b.waresn from TInvAdjust a,tinvadjust bwhere a.invadjustsn<>b.invadjustsn and a.invadjustid=b.invadjustid order by a.invadjustid desc