﻿<?xml version='1.0' encoding='UTF-8'?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/"><channel><title>Teradata Forums / Teradata  / Teradata Database  / Case inside case / Latest Posts</title><generator>InstantForum.NET v4.1.4</generator><description>Teradata Forums</description><link>http://www.teradata.com/teradataforum/</link><webMaster>info@teradata.com</webMaster><lastBuildDate>Wed, 03 Dec 2008 16:08:23 GMT</lastBuildDate><ttl>20</ttl><item><title>RE: Case inside case</title><link>http://www.teradata.com/teradataforum/Topic11946-9-1.aspx</link><description>It's done by using AND clause with multiple WHEN(condition) in same CASE statement instead of cascade.</description><pubDate>Wed, 25 Jun 2008 00:30:16 GMT</pubDate><dc:creator>sakthiganesht</dc:creator></item><item><title>Case inside case</title><link>http://www.teradata.com/teradataforum/Topic11946-9-1.aspx</link><description>Does teradata allow to use cascading case statements.Likesum(case when exp1 then                  Case when exp2 then                    EndElse  EndIf yes will there be a performance issue? Each cascade condition actually has a join on a different table (ie records qualifying in exp1 of case1 from table1 will be checked in exp2 of case2 which will again join with table2) .say exp1 would be a.col1=b.col1 when this satisfied       exp2 would be b.col2=c.col1If there would be a performance issue with this approach let me know if there is a better way to get this done.</description><pubDate>Mon, 23 Jun 2008 03:49:05 GMT</pubDate><dc:creator>sakthiganesht</dc:creator></item></channel></rss>