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
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