Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Problem attempting to recreate Date function from MS Access to SQL

Status
Not open for further replies.

Jacque

Technical User
Nov 9, 2001
301
US
I'm using SQL Server 2008
[machinegun] MS Access 2007

Here is the piece of the MS Access query that I'm trying to recreate, I know enough MS Access to fill a thimble but Dateserial has me stumped. :-(

DateDiff("ww",Dateserial((Year(table.Date-6),(((((Month(Table.Date-6)-1)/3)+1)-1)*3)+1,1),table.Date-6) AS Week


Any help would be appreciated. [hairpull3]
Thanks.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top