Is it possible to call functions within a case statement?
Example:
(CASE WHEN (((POWER((1+x1/x2),Term) - 1) > 0) THEN
10 ELSE dbo.fnx(x1,x2,x3) END) as [123]
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Tough you could just try it…
CASE input_expression
input_expressionIs the expression evaluated when the simple CASE format is used. input_expression is any valid expression.
What is a valid expression?:
resources:
case and expressions