![]() |
|
Archives of the TeradataForumMessage Posted: Wed, 06 Dec 2006 @ 18:51:17 GMT
It's a parser problem: You have to use brackets for CASE/COALESCE/NULLIF, if there's any additional opration.
SELECT
((coalesce(cnt_2_9, 0)) + (coalesce(cnt_30_59, 0)) +
(coalesce(cnt_60_210, 0))) AS TOTAL,
CURRENT_TIMESTAMP
FROM table_a;
SELECT (COALESCE(100,0)) * 100;
Dieter
| ||||||||||||||||||||||||||||||||||||||||||||||||
| | ||||||||||||||||||||||||||||||||||||||||||||||||
| ||||||||||||||||||||||||||||||||||||||||||||||||
|
| ||||||||||||||||||||||||||||||||||||||||||||||||
| Copyright 2016 - All Rights Reserved | ||||||||||||||||||||||||||||||||||||||||||||||||
| Last Modified: 15 Jun 2023 | ||||||||||||||||||||||||||||||||||||||||||||||||