I have two tables both contains "callid,callnumber,callduration"..now i want to get a call which have same callnumber whereas callduration is greater than a given value.i.e
Select a.callnumber
         , b.callnumber
      from table a
      INNER JOIN table b ON (    a.callnumber = b.callnumber 
                       AND a.callduration-b.callduration > value );
but this returns multiple results fulfilling the creteria whereas i just want a call which have minimum duration difference.