This question shows research effort; it is useful and clear
2
This question does not show any research effort; it is unclear or not useful
Bookmark this question.
Show activity on this post.
我最近在一次采访中被问到以下问题:
返回表中两个不同日期/时间之间的所有重复行。
我最好的猜测是:
SELECT *,
COUNT(LogDate) AS NumOccurrences
FROM LogTable
WHERE LogDate > "SomeDate"
AND LogDate < "SomeDate"
GROUP BY LogDate
HAVING ( COUNT(LogDate) > 1 )