Archives of the TeradataForum
Message Posted: Fri, 20 Feb 2004 @ 16:47:50 GMT
Yes, CASE statements may easily be nested within Teradata. A simple syntax structure would be like the following:
CASE .... WHEN ..... THEN (CASE .... WHEN .... THEN ..... END) ELSE (CASE .... WHEN .... THEN ..... END) END
You could also put a nested CASE statement inside a nested CASE as long as you balance your ( ).
Hope this helps,
|Copyright 2016 - All Rights Reserved|
|Last Modified: 27 Dec 2016|