ScottPletcher (1/21/2013)
Huh? I don't see anywhere a "datetime" data type is specified, only varchar. I don't see why the code couldn't run fine as is.I guess your actual data type is different than shown in your sample code?!
In the CASE expression, the WHEN clause outputs a DATETIME value, but the ELSE clause outputs a VARCHAR value.
Drew
J. Drew Allen
Business Intelligence Analyst
Philadelphia, PA