top 2 行么我忘记SQL Server2000支持不支持啦@_@

解决方案 »

  1.   

    select * from t A where 通话开始时间 in (select 通话开始时间 from t where 主叫号码=A.主叫号码 order by 通话开始时间)
      

  2.   

    select * from t A where 通话开始时间 in (select top 2 通话开始时间 from t where 主叫号码=A.主叫号码 order by 通话开始时间)
      

  3.   

    select top 2 PhoneID, StartTime, EndTime from MyTable
    group by PhoneID
      

  4.   

    这个问题类似的提了好多遍了..
    在playyer(小干部儿)的那篇文章中都有提到建议你去看看.
      

  5.   

    "playyer(小干部儿)的那篇文章" 
    我在那里可以找到