In a table there is a field pxfer_date that is datetime type.If a value in this field is '2000-02-01 00:00:00.000' and a query is ran against that field select YEAR( pxfer_date ) as tax_year from table
returns as expected: 2000Now then why does select cast( YEAR( pxfer_date ) + '0101' as INTEGER ) as eff_date from table
not return the expected: 20000101 but: 2101?TIAEducation is what you have after you've forgotten everything you learned in school