Teradata SQL: Functions, Data Conversions, and Working with Time