1.

In Teradata, what is the purpose of using CASE Expression?

Answer»

When a CASE expression is used, each row is compared with a CONDITION or WHEN CLAUSE, and the result of the first MATCH is returned. Else, the result from the ELSE clause will be returned if there are no matches.

Syntax: 

CASE <expression> WHEN <expression> THEN result-1 WHEN <expression> THEN result-2 ELSE Result-n END


Discussion

No Comment Found