Regarding to my practice, i was thinking about putting a report generator. a monthly, weekly and annual reports. i know how to use data grouping on reports but i dont have an idea on grouping it with these selections. is there any previous post related to this question?
I've been researching and i found something like this:[for weekly report]
i dont quite get it, it uses timestamp, i only got dates. and i cant apply it also.
Thanks
Dexter
I've been researching and i found something like this:[for weekly report]
Code:
DATEADD(WEEK, DATEDIFF(WEEK, '19000101', mydatefield), '19000101') as EveryMonday,
DATEADD(WEEK, DATEDIFF(WEEK, '19000101', mydatefield)+1, '19000101')-1 as EverySunday
FROM myitemtable
WHERE mydatefield >= '2011/05/30 00.00.000' and mydatefield <= '2011/06/05 23.59.59'
i dont quite get it, it uses timestamp, i only got dates. and i cant apply it also.
Thanks
Dexter