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

Syntax Misstake for Simple Conditional Derived Column Expression

$
0
0

Greetings,

I need assistance in correcting my Syntax. I have a new column that I named facility, and I’d like to place the facility initials in that new column which are contained within the ID field.

This expression works (but it only pulls one 1 of the 3 facilities)

ID == "DRMC"?  "DRMC":""   (This one works by itself)

I tried to nest all 3 facilities within this expression but it is not working for me.

ID == "DRMC"?  "DRMC": (ID == "FLH"? "FLH:(ID == "FCH"?"FCH":""))

Thanks in advanced for pointing me in the right direction


Viewing all articles
Browse latest Browse all 24688

Trending Articles



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