Solved

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

Posted on 2010-08-20
2
689 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 Tool: Postgres Monitoring System

A PHP and Perl based system to collect and display usage statistics from PostgreSQL databases.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
TSQL convert date to string 4 37
Are triggers slow? 7 15
SQL Availablity Groups List 2 8
SQL Database Restore 2008 R2 1 13
JSON is being used more and more, besides XML, and you surely wanted to parse the data out into SQL instead of doing it in some Javascript. The below function in SQL Server can do the job for you, returning a quick table with the parsed data.
Ever wondered why sometimes your SQL Server is slow or unresponsive with connections spiking up but by the time you go in, all is well? The following article will show you how to install and configure a SQL job that will send you email alerts includ…
Via a live example, show how to extract information from SQL Server on Database, Connection and Server properties
Viewers will learn how to use the INSERT statement to insert data into their tables. It will also introduce the NULL statement, to show them what happens when no value is giving for any given column.

821 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