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.
| Author |
Topic |
|
mattashfield
Starting Member
2 Posts |
Posted - 2010-07-08 : 17:08:04
|
| Hi,i have a project that starts in 5th April 2010 ending july 2010records are written to msSQL with dates starting 05/04/2010 (dd/mm/yyyy, UK date format) to the end of the project.over the period of the project i need to report on number of records since begining of the project(05/04/2010) by week where week 1 starts 05/04/2010.I thought of using datepart(wk, dateofrecord) but datepart(wk,..) starts in jan.how can i get the week of a record by defining when week 1 starts?hope someone can help. |
|
|
SwePeso
Patron Saint of Lost Yaks
30421 Posts |
Posted - 2010-07-08 : 17:31:28
|
So when do your week 1 start? N 56°04'39.26"E 12°55'05.63" |
 |
|
|
|
|
|