Cast/Convert the values to a Date
type for your group by.
GROUP BY CAST(myDateTime AS DATE)
More Related Contents:
- Is it possible to write single query on two table which are not connected to each other?
- T-SQL split string
- Can I Comma Delimit Multiple Rows Into One Column? [duplicate]
- How can I get column names from a table in SQL Server?
- Conditional WHERE clause in SQL Server
- How can I select the first day of a month in SQL?
- Multiple INSERT statements vs. single INSERT with multiple VALUES
- Split function equivalent in T-SQL?
- Is the NOLOCK (Sql Server hint) bad practice?
- Multi-statement Table Valued Function vs Inline Table Valued Function
- Select statement to find duplicates on certain fields
- Is having an ‘OR’ in an INNER JOIN condition a bad idea?
- Where value in column containing comma delimited values
- Parse comma-separated string to make IN List of strings in the Where clause
- SQL query to split column data into rows
- Bulk DELETE on SQL Server 2008 (Is there anything like Bulk Copy (bcp) for delete data?)
- Compare DATETIME and DATE ignoring time portion
- Split function in SQL Server 2008
- Cannot use a CONTAINS or FREETEXT predicate on table or indexed view because it is not full-text indexed
- SQL “between” not inclusive
- Can I set ignore_dup_key on for a primary key?
- Using PIVOT in SQL Server 2008
- Which SQL query is faster? Filter on Join criteria or Where clause?
- How to combine results of two queries into a single dataset
- When using GETDATE() in many places, is it better to use a variable?
- Executing SQL Server Agent Job from a stored procedure and returning job result
- SQL take just the numeric values from a varchar
- COALESCE Function in TSQL
- Using CASE Statement inside IN Clause
- SQL Server: +(unary) operator on non-numeric Strings