Archives of the TeradataForum
Message Posted: Fri, 20 Feb 2004 @ 16:47:50 GMT
Subj: | | Re: Nested case statements |
|
From: | | Michael Larkins |
Hi Karen:
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,
Michael Larkins
Certified Teradata Master
|