我有以下查询;
Select count(*) as poor
from records where deviceId='00019' and type='Poor' and timestamp between #14-Sep-2012 01:01:01# and #24-Sep-2012 01:01:01#
桌子就像;ID。deviceId、类型、时间戳
数据就像;
数据就像;
1, '00019', 'Poor', '19-Sep-2012 01:01:01'
2, '00019', 'Poor', '19-Sep-2012 01:01:01'
3, '00019', 'Poor', '19-Sep-2012 01:01:01'
4, '00019', 'Poor', '19-Sep-2012 01:01:01'
我正在尝试计算具有特定特定类型的设备。
请帮助..访问总是返回错误的数据。它返回 1 而 00019 有 4 个穷人条目