Hello Guys,
I have a database full of log information that has a record for every hour of every day.
So I have 24 records all with the same 'dateCreated' field and then the 'timeCreated' field changes for each hour of that day.
So grouping the query results of the database into days is very simple, just a quick 'GROUP BY dateCreated' does the trick, however i now have the requirement to group that data into weeks, months and years.
What is the best way of achieving this? is it even possible?
Thanks,
Rob
I have a database full of log information that has a record for every hour of every day.
So I have 24 records all with the same 'dateCreated' field and then the 'timeCreated' field changes for each hour of that day.
So grouping the query results of the database into days is very simple, just a quick 'GROUP BY dateCreated' does the trick, however i now have the requirement to group that data into weeks, months and years.
What is the best way of achieving this? is it even possible?
Thanks,
Rob