我试图通过使用“条款”进行询问,但在这方面存在一些问题。
S_E1:
这里的数据是43。
select RECORD_TIMESTAMP as DateRecorded, ROUND (S_E1 ,2 )as S_E1
from TBL_SENSORS
Where RECORD_TIMESTAMP Between 4/28/2012 12 :00 AM
and 5/17/2012 12 :00 AM
And ( S_E1 Between 10 And 100 )
第二张S_E:
这里的数据是68。
select RECORD_TIMESTAMP as DateRecorded, ROUND (S_E2 ,2 )as S_E2
from TBL_SENSORS
Where RECORD_TIMESTAMP Between 4/28/2012 12 :00 AM
and 5/17/2012 12 :00 AM
And ( S_E2 Between 10 And 100 )
<<>Problem>:
但是,如果把这些问题与询问合并在一起,则提供错误的数据。 这给我带来了73个增长。 我认为,它应当给111个牢房。
select RECORD_TIMESTAMP as DateRecorded,
ROUND (S_E2 ,2 )as S_E2,
ROUND (S_E1 ,2 ) as S_E1
from TBL_SENSORS
Where RECORD_TIMESTAMP Between 4/28/2012 12 :00 AM
and 5/17/2012 12 :00 AM
And ( S_E2 Between 10 And 100)
and (S_E1 Between 10 And 100 )
请在此谈谈我错失之处。