Archives of the TeradataForum
Message Posted: Fri, 02 Nov 2012 @ 20:46:18 GMT
I have always made sure to cast the hard coded dates as dates. Try this:
Select cast('2012-02-20' as date) - cast('2012-02-10' as date)
This should give the difference in days. I am sure there are some experts out there that have a better way of doing it.
|Copyright 2016 - All Rights Reserved|
|Last Modified: 23 Jun 2019|