select * from 表 a where 日期字段<>'具体数' and not exists (select * from 表 b where 日期字段='具体数' and a.某个字段=b.某个字段)

解决方案 »

  1.   

    根据某一时间段内提取某个字段中的数据,提取出这些数据中以前没有的数据,用sqlserver怎么写---------?请举例说明
      

  2.   

    select * from 表 a where 日期字段>='具体时1' and 日期字段<='具体时间2' and not exists (select * from 表  where 日期字段<'具体时1' and   关键数据=a.关键数据)
      

  3.   

    declare @time datetime
    select * from Table1
    where DATEDIFF(millisecond,ti.time,@time)>0
    and id not in (select id from table1 where time between time1 and time2)
      

  4.   

    用 samfeng_2003(风云) 的方法就可以了