I assume you're using SQL Assistant and an ODBC connection.
You should get an error message "5407 Invalid operation for DateTime".
Do a SHOW TABLE and check if the columns are INT instead of TIME.
To avoid this switch to .NET or change one of the following options in ODBC:
set the "DateTime Format" to "AAA" or check "Disable Parsing"
And then it's:
sel end_time - start_time hour to second from activity_time;
Dieter
↧