![]() |
|
![]() |
![]() |
Archives of the TeradataForumMessage Posted: Fri, 05 Jan 2007 @ 16:45:00 GMT
COUNT checks NULL / NOT NULL, and zero is NOT NULL; so either change the ELSE value to NULL instead of zero, or change COUNT to SUM and make the THEN value 1 instead of trxn_id
| ||||||||||||||||||||||||||||||||||||||||||||||
| ||||||||||||||||||||||||||||||||||||||||||||||||
![]() | ||||||||||||||||||||||||||||||||||||||||||||||||
Copyright 2016 - All Rights Reserved | ||||||||||||||||||||||||||||||||||||||||||||||||
Last Modified: 15 Jun 2023 | ||||||||||||||||||||||||||||||||||||||||||||||||