我試圖確定表中最舊的記錄,並且結果有衝突。最舊記錄差異?
方案1
SELECT TOP 10 * FROM Ens_Util.Log ORDER BY TimeLogged ASC
SELECT TOP 10 text, TimeLogged, TraceCat, Type FROM Ens_Util.Log ORDER BY TimeLogged ASC
Text TimeLogged TraceCat Type
Email sent via mailserv:25 2016-05-08 01:00:01 (null) 4
[Requested record not found] 2016-05-08 01:01:13 (null) 2
[Requested record not found] 2016-05-08 01:04:39 (null) 2
[Requested record not found] 2016-05-08 01:04:53 (null) 2
[Requested record not found] 2016-05-08 01:05:22 (null) 2
[Requested record not found] 2016-05-08 01:05:45 (null) 2
[Requested record not found] 2016-05-08 01:05:58 (null) 2
[Requested record not found] 2016-05-08 01:05:58 (null) 2
[Requested record not found] 2016-05-08 01:06:08 (null) 2
[Requested record not found] 2016-05-08 01:06:15 (null) 2
場景2a
SELECT TOP 10 TimeLogged FROM Ens_Util.Log ORDER BY TimeLogged ASC
TimeLogged
2015-10-10 16:30:46
2015-10-10 21:15:07
2015-10-11 22:08:18
2015-10-12 21:57:00
2015-10-13 21:39:27
2015-10-14 23:40:15
2015-10-15 23:28:10
2015-10-16 23:36:52
2015-10-17 23:10:04
2015-10-18 22:32:49
場景2b
SELECT MIN(TimeLogged) FROM Ens_Util.Log
2015-10-10 16:30:46
問題
這到底是怎麼回事?爲何差異?什麼是最古老的記錄的日期? 2016-05-08
或2015-10-10
?
我會重新索引並重建統計數據,然後再次嘗試 – Peter4499