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 Chriss Miller 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
Joined
Nov 9, 2001
Messages
301
Location
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.
 

Check this thread

thread183-65034


Thanks

John Fuhrman
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top