Querying against truncated dates
I need to group by date in some stored procedures, unfortunately mydata is all date time format yyyymmdd hh:mm:SS:msmsms
Can someone tell me how to truncate the long datetime to just a date in a query or store procedue. There doesnot appear to be time related function for this. I am trying to calculate the number. I even tried to write a udf, but I couldn't get the date time function support to take the hours and min to zero. Even tried using the round function, but the datatype kept it from working...
Please Help
John Pennington
John Pennington
United Parcel Service
w(404) 828 6934
c (770) 714 5975
__________________
John Pennington
 
United Parcel Service
w(404) 828 6934
c (770) 714 5975
|