Quantcast
Channel: SCN : Discussion List - SAP HANA Developer Center
Viewing all articles
Browse latest Browse all 6412

Inconsistent datatype: the expression has incomputable datatype: TIMESTAMP

$
0
0

Hi all,

 

I get this error when I try to do some operation on a field that is TIMESTAMP.

 

inconsistent datatype: the expression has incomputable datatype: TIMESTAMP.

 

For example: if I have a table where there is a field MY_DATE (TIMESTAMP) and I try to execute this query:

 

SELECT MY_DATE, (MY_DATE - 1) FROM MY_TABLE:

 

then I got the error:

 

 

* 266: inconsistent datatype: the expression has incomputable datatype: TIMESTAMP is invalid for sub operator

 

Can anyone help me?

 

Thank you,

Gennaro.


Viewing all articles
Browse latest Browse all 6412

Trending Articles