Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
Next revision Both sides next revision
dev:sql:functions:case [2010/07/27 20:03]
els
dev:sql:functions:case [2010/07/27 20:05]
els
Line 12: Line 12:
  
   CASE   CASE
-      WHEN condition_expression_1 ​THEN scalar_expression_1 +      WHEN conditional_expression_1 ​THEN scalar_expression_1 
-      WHEN condition_expression_2 ​THEN scalar_expression_2+      WHEN conditional_expression_2 ​THEN scalar_expression_2
       ELSE scalar_expression       ELSE scalar_expression
   END   END
Line 26: Line 26:
  
  
-== condition_expression ​==+== conditional_expression ​==
  
 Required. A conditional expression using SQL language that must prove TRUE in order for the function to return the corresponding scalar expression. ​ A conditional expression is generally equivalent to criteria used in a WHERE clause of a SQL SELECT statement, such as "state in ('​CA','​OR','​WA'​)"​ or "​birthdate >= 'Jan 1, 1980'​.  ​ Required. A conditional expression using SQL language that must prove TRUE in order for the function to return the corresponding scalar expression. ​ A conditional expression is generally equivalent to criteria used in a WHERE clause of a SQL SELECT statement, such as "state in ('​CA','​OR','​WA'​)"​ or "​birthdate >= 'Jan 1, 1980'​.  ​
Line 85: Line 85:
 MR. CHARLIE HOPKINS ​                                ​M ​   1933-07-09 ​ Mr. MR. CHARLIE HOPKINS ​                                ​M ​   1933-07-09 ​ Mr.
 MS. KIMBERLY BLUE                                   ​F ​   1944-08-01 ​ Ms. MS. KIMBERLY BLUE                                   ​F ​   1944-08-01 ​ Ms.
-KATHLEEN TUCKER ​                                    ​F ​   2004-09-14 ​ Miss</​code>​+KATHLEEN TUCKER ​                                    ​F ​   2004-09-14 ​ Miss
 </​code>​ </​code>​
  
 
Back to top
dev/sql/functions/case.txt · Last modified: 2016/06/28 22:38 (external edit)