我正在尝试使用此查询获取日期时差:
SELECT BASESCORE,
Max(CONVERT(DATETIME, '')) - Min(CONVERT(DATETIME, '')) AS datediff
FROM log
GROUP BY BASESCORE
ORDER BY BASESCORE
它工作正常,但它给我的输出是错误的:
1900-01-01 00:00:00.000
1900-01-01 00:00:00.000
1900-01-01 00:00:00.000
1900-01-01 00:00:00.000
1900-01-01 00:00:00.000
......
我怎样才能从上面的查询中得到正确的结果!