Datediff differences in US and Europe

Ivan Smahin ivan_smahin at paradigmasoft.com
Fri Jun 29 03:34:22 CDT 2012


On Jun 28, 2012, at 10:51 PM, jda wrote:

> BTW, I'm open to any other suggestion about how to determine, in SQL, if a record was added within a certain time X before the present. That is
> 
> select * from t1 WHERE dateAdded > current time - 14 days
> 
> Jon

select * from t1 where datediff( now(), f1, 'day') > 14

-- 
Best regards,
Ivan Smahin
Senior Software Engineer
Paradigma Software, Inc
Valentina - The Ultra-Fast Database
http://www.valentina-db.com



More information about the Valentina mailing list