Please start any new threads on our new site at https://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

 All Forums
 General SQL Server Forums
 New to SQL Server Programming
 Display weekly , monthly report

Author  Topic 

under2811
Constraint Violating Yak Guru

366 Posts

Posted - 2006-09-27 : 03:01:45
hello friends!

I want to display the reports in weekly format suppose

today is sept 27 2006, so i know from datepart(weekday,..) its value is 4 and end of this week is sept 30 2006 and again next week will start like that....also search should be monthly...

my report looks like
Weekly Report (09/27 - 10/12)
Week====09/27-09/30======10/01-10/07======10/08-10/12
Sales======50===============100===============80

like that my output looks like

T.I.A

SwePeso
Patron Saint of Lost Yaks

30421 Posts

Posted - 2006-09-27 : 03:16:45
Make use of the F_TABLE_DATE function found here http://www.sqlteam.com/forums/topic.asp?TOPIC_ID=61519


Peter Larsson
Helsingborg, Sweden
Go to Top of Page

under2811
Constraint Violating Yak Guru

366 Posts

Posted - 2006-09-27 : 03:44:41
hey...

gud memory!!

thanks
Go to Top of Page
   

- Advertisement -