I would like to get number of rows that have same date. But one second must be negligible.
For example ; 2012-01-03 13:12:28 and 2012-01-03 13:12:27 should be perceived as the same.
( I have a table name is myTable and the datetime column name is date )
I hope you will help me..
It’s as simple as:
If you want to build it up from a variable, you could do this:
EDIT: As per your comment below, the following SQL should return what you’re after. Note that if a date contains ‘2012-01-03 13:12:28’ it will be counted for both :27 and :28.