RSS Forums RSS
Please support our MS SQL advertiser: Programming Forums

query for creating report group by weeks (with start date and end date of the week)

Join Date: Jul 2006
Posts: 17
Reputation: newMeg is an unknown quantity at this point 
Rep Power: 3
Solved Threads: 0
newMeg newMeg is offline Offline
Newbie Poster

Help Re: query for creating report group by weeks (with start date and end date of the week)

  #7  
Apr 23rd, 2007
Hi David,

Thanks for the reply. But I was wondering why do we use date part as datepart function is to get the date different either in weeks or days or months right?

From the sql u just provided, i'm not sure but i guess it was missing the date type for datepart(dy,wk). I added the dy and there was no error but the result of the query returns a number for the weeks.

Attached is the result of the query.

Hey sorry you had to bear with me, but i sthis how the result should be. return an integer representation of the date part or the weeks date?
Attached Images
File Type: jpg sqlnew.JPG (38.1 KB, 5 views)
Reply With Quote  
Forums | Blogs | Tutorials | Code Snippets | Whitepapers | RSS Feeds | Advertising
All times are GMT -4. The time now is 10:16 am.
Newsletter Archive - Sitemap - Privacy Statement - Acceptable Use Policy - Contact Us
Forum system based on vBulletin Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
©2003 - 2008 DaniWeb® LLC