Please start any new threads on our new site at https://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

 All Forums
 SQL Server 2005 Forums
 Transact-SQL (2005)
 Writing a condition

Author  Topic 

JJ297
Aged Yak Warrior

940 Posts

Posted - 2008-09-09 : 10:50:32
Could someone help me I only want records that are older than 60 days. My field is called DryDte1. I tried this but it's not working

DATEDIFF("dd",DryDte1,GETDATE()) > 60

sakets_2000
Master Smack Fu Yak Hacker

1472 Posts

Posted - 2008-09-09 : 11:03:39
where DryDte1<(getdate()-60)
Go to Top of Page

JJ297
Aged Yak Warrior

940 Posts

Posted - 2008-09-09 : 11:12:42
Thanks!
Go to Top of Page
   

- Advertisement -