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 SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Getting records for week using DatePart() 1

Status
Not open for further replies.

Mdiaz

Programmer
Jul 8, 2002
32
0
0
US
What would a SQL statement look like that retrieves records that fall within the current week, using the DatePart('ww',field) function?

Thanks,
Mike...
 
select * from table1 where DatePart(ww,field) = datepart(ww,getdate())
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top