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

Date and Datetime in join - forum topic by sam99

$
0
0

Hi Team,
Do I need to cast Datetime column to Date when used in join? It seems I am getting same results with/without cast
With Cast: ON FISCAL_DAY_TO_YEAR.CALENDAR_DATE=CAST(SOL_SHIPMENTS.ACTUAL_SHIPMENT_DTM AS Date)
Without Cast: ON FISCAL_DAY_TO_YEAR.CALENDAR_DATE=SOL_SHIPMENTS.ACTUAL_SHIPMENT_DTM
I am trying to use without cast for a better join. Please let me know
Regards,
Sam

Forums: 

Viewing all articles
Browse latest Browse all 14773

Trending Articles



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