Table of Contents

Search

  1. About the Data Vault SQL Reference
  2. Introduction to SQL Reference for Informatica Data Vault
  3. Date and Time Arithmetic
  4. WHERE Clauses
  5. UNION Operator
  6. Parameterized Query
  7. Functions

Data Vault SQL Reference

Data Vault SQL Reference

Case Expressions

Case Expressions

The CASE statement is a conditional expression that can be used anywhere a value expression is used. It allows for the evaluation of multiple conditions, returning a specified value when a condition is true, or a default value when none of the conditions is true. There are three functions, NULLIF, COALESCE, and IFNULL, that are designed to handle a subset of the CASE functionality.
The following syntax diagrams describe the CASE statement:
As indicated in the syntax diagrams, there are two types of CASE statements:
simple
and
searched
.

0 COMMENTS

We’d like to hear from you!