Solved

isnull([columnname]) ==  TRUE ? "Unkown" : [columnname]

Posted on 2010-08-20
2
685 Views
Last Modified: 2013-11-10
I am learning SSIS and I came across an expression simlar to the example bellow used in a 'Derived Column' transformation.

isnull([columnname]) ==  TRUE ? "Unkown" : [columnname]

I why is a question mark and colon used? What do they do in the express?
0
Comment
Question by:Mr_Shaw
2 Comments
 
LVL 16

Accepted Solution

by:
vdr1620 earned 500 total points
ID: 33486742
In SSIS ? - reprsents an IF and : - represents ELSE.. basically what yor seeing is an IF else condition..Its checking for a NULL values in the column..If that's TRUE then it results Unknown Else the column Value
0
 

Author Closing Comment

by:Mr_Shaw
ID: 33486881
thanks
0

Featured Post

Free Trending Threat Insights Every Day

Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

Join & Write a Comment

Suggested Solutions

Title # Comments Views Activity
Select2 jquery help 9 46
SQL Maintenance Plan 3 17
SQL Split character from numbers 3 18
Update in Sql 7 0
If you have heard of RFC822 date formats, they can be quite a challenge in SQL Server. RFC822 is an Internet standard format for email message headers, including all dates within those headers. The RFC822 protocols are available in detail at:   ht…
This article explains how to reset the password of the sa account on a Microsoft SQL Server.  The steps in this article work in SQL 2005, 2008, 2008 R2, 2012, 2014 and 2016.
Familiarize people with the process of utilizing SQL Server functions from within Microsoft Access. Microsoft Access is a very powerful client/server development tool. One of the SQL Server objects that you can interact with from within Microsoft Ac…
Using examples as well as descriptions, and references to Books Online, show the documentation available for datatypes, explain the available data types and show how data can be passed into and out of variables.

760 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

21 Experts available now in Live!

Get 1:1 Help Now