Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

SSIS expression to SQL statement

I am trying to convert "Derived Columns" Expressions to SQL statements to be able to add and replace column values and names.

I am having some issues in finding the correct help to understand nested formulas in SSIS.

Formula i have in SSIS is,

[A] == 0 || ISNULL([A]) ? -1 :  [A]

How do i write this in a SQL statement?

like image 306
DL1 Avatar asked Feb 18 '26 04:02

DL1


1 Answers

Some thing like this

CASE WHEN [A] = 0 OR [A] IS NULL THEN -1  ELSE [A] END
like image 77
Jaydip Jadhav Avatar answered Feb 19 '26 20:02

Jaydip Jadhav