I have this query
SELECT TOP 1000 [lid]
,[userid]
,[datetime]
,[batch_id]
,[actionid]
,[pages]
,[group]
,[sitecode]
FROM [mydb].[dbo].[tbl_recon_scan]
GROUP BY CAST([datetime] AS DATE)
it seems not working with group by
.
I have looked at this and this guides, I could not find solution.
Anyone can tell me my problem with the query?