Quantcast
Channel: Teradata Forums - Database
Viewing all articles
Browse latest Browse all 14773

Date and Datetime in join - response (1) by dnoeth

$
0
0

Hi Sam,
i did that CAST for many years, too :-)
And then i investigated what was ment to be a bug (similar to your example) and finally found a place in the manual where is stated that when you compare a DATE and a TIMESTAMP the TIMESTAMP is implicity CASTed to a DATE. This behaviour is probably based on Standard SQL, but i never checked it.
The join will be no better (i.e. faster), just simpler to write.
Dieter


Viewing all articles
Browse latest Browse all 14773

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>