Solved

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

Posted on 2010-08-20
2
687 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

PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

In this article I will describe the Copy Database Wizard method as one possible migration process and I will add the extra tasks needed for an upgrade when and where is applied so it will cover all.
In this article we will get to know that how can we recover deleted data if it happens accidently. We really can recover deleted rows if we know the time when data is deleted by using the transaction log.
This videos aims to give the viewer a basic demonstration of how a user can query current session information by using the SYS_CONTEXT function
Via a live example, show how to backup a database, simulate a failure backup the tail of the database transaction log and perform the restore.

914 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

15 Experts available now in Live!

Get 1:1 Help Now