Hello all.
I am trying to take a date time column and apply a data parameter to it, and then group on the date parameter.
Like:
The problem is with using the cast function in the group by clause. I get an error there. If I don't extract the date from the date time, then the group by has no effect, since every record has a different time.
Any help is appreciated.
-Mike
I am trying to take a date time column and apply a data parameter to it, and then group on the date parameter.
Like:
Code:
select c.calldate
from calls c
where cast(c.calldate as date)='06/03/03'
group by cast(c.calldate as date)
order by cast(c.calldate as date)
Any help is appreciated.
-Mike