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

SQL View Help

Status
Not open for further replies.

MarksNOC

MIS
Joined
Jul 20, 2001
Messages
3
Location
US
I'm trying to create a sql view that shows records in a table older that 7 days based on the value of the date field. Would someone please show me the correct syntax. MS Access seems to have different syntax.
 

Create View vWDatesOlderThan7Days As

Select * From table_name
Where date_col < dateadd(day,-7,getdate()) Terry L. Broadbent
Life would be easier if I had the source code. -Anonymous
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top