Quantcast
Channel: SQL Server Integration Services forum
Viewing all articles
Browse latest Browse all 24688

Trouble using an or statement with a boolean value

$
0
0

I am trying to create a derived column where if

A = 1  or B = 1 or C = 1 then D will = 1

(DT_I4) A == 1  ?  1  :  0   -  this will work for just one column however as soon as I add a new column with an | | statement it errors

(DT_I4)([A== 1 | | B == 1)  ? 1  :  0


Viewing all articles
Browse latest Browse all 24688

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>