I'm querying the eAgentLoginStat table and need help with the SQL. I want to get the shift duration for each agent per day, so I need to do a group by Timestamp and AgentID in the query. the problem is the timestamp doesn't group by day because it has the time in it. How can I convert the timestamp to just the date within the SQL? Do I use something like CAST or CONVERT (neither of which I'm sure how to use).
Thanks!
Thanks!