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 Westi 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
Jul 20, 2001
3
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