|
Posted by eavery on 02/26/07 18:44
Ok, so I tried this:
create table part_table (
col1 int,
col2 datetime
) on psX ((datepart(dayofyear,col2)/7)+1)
and I got "Incorrect syntax near '('. "
select ((datepart(dayofyear,getdate())/7)+1) will give me the correct
week of the year that I want. (first week starts on the first day of
the year this way)
Navigation:
[Reply to this message]
|