日期:2014-05-16 浏览次数:20736 次
select type_id, int_value, start_time, end_time, (end_time-start_time) from [dbo].[OEE]
where end_time<1286921701 and start_time>1286885699 and type_id=10 and int_value in (1,2,4)
select type_id, int_value, start_time, end_time, (end_time-start_time) from [dbo].[OEE]
where type_id=2 and int_value=128
and start_time=(select start_time from [dbo].[OEE] as t1 where t1.type_id=10 and t1.int_value in(1,2,4) and t1.start_time>1286885699 and t1.end_time<1286921701) and
end_time=(select end_time from [dbo].[OEE] as t2 where t2.type_id=10 and t2.int_value in (1,2,4) and t2.start_time>1286885699 and t2.end_time<1286921701)
select type_id, int_value, start_time, end_time, (end_time-start_time) from [dbo].[OEE]
where type_id=2 and int_value=128
and start_time in (select start_time from [dbo].[OEE] as t1 where t1.type_id=10 and t1.int_value in(1,2,4) and t1.start_time>1286885699 and t1.end_time<1286921701) and
end_time in (select end_time from [dbo].[OEE] as t2 where t2.type_id=10 and t2.int_value in (1,2,4) and t2.start_time>1286885699 and t2.end_time<1286921701)