|
in that case;
GROUP BY left(datetimefield,length(datetimefield)-6)
<added>
A note for any future readers.
Be careful when choosing to store data in a field that is not ideal or you are doing some "independent thinking" on how numeric and date/time data is stored. Consider the "What ifs" for sorting, analysing and displaying the information in future times.
</added>
__________________
Chris. ->> Links are advertising NOT optimising!! <<-
A foolish consistency is the hobgoblin of little minds
Thought for today:- I SEO the only industry where all the cowboys are Indians?
Last edited by chrishirst; 09-28-2006 at 02:39 AM..
Reason: added something
|