select count(PK) Count, DatePart(hh,ColumnTime) Hour from dbTable group by DatePart(hh,dbColumnTime)
M
MaksimP
@MaksimP
Posts
-
How to group by hour properly. [modified] -
How to get today's date// Try this: DateTime now = DateTime.Now; DateTime date = new DateTime(now.Year, now.Month, now.Day);
-
Get the date from SQL ServerYou can do it sql by using 'DatePart(ms,<dbColumnTime>)' function
-
Get the date from SQL Server