|
Archives of the TeradataForumMessage 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. KRT
| ||||||||||||||||||||||||||||||||||||||||||||||||
| ||||||||||||||||||||||||||||||||||||||||||||||||
Copyright 2016 - All Rights Reserved | ||||||||||||||||||||||||||||||||||||||||||||||||
Last Modified: 15 Jun 2023 | ||||||||||||||||||||||||||||||||||||||||||||||||