I have a DB that has a couple millions of records and growing, and every record has a timestamp field which includes YYYY/MM/DD : HH:SS
I produce weekly and monthly reports, I am using DATEPART in 3 custom columns to be able to group by Week and Month and Year.
Is there a better way to do this?
I produce weekly and monthly reports, I am using DATEPART in 3 custom columns to be able to group by Week and Month and Year.
Is there a better way to do this?