Solved

Derived column expression meaning in ssis

Posted on 2011-03-21
2
483 Views
Last Modified: 2012-05-11
Please let me know the actual purpose, I am trying to understand from an existing package
1)ISNULL(ESN) ? (DT_WSTR,50)"Accessories" : "Phone"

2)(DT_DBTimeStamp)((SUBSTRING((DT_WSTR,8)[Receive Date],5,2) + "-" + SUBSTRING((DT_WSTR,8)[Receive Date],7,2) + "-" + SUBSTRING((DT_WSTR,8)[Receive Date],1,4)))

3)ISNULL(ESN) ? REPLACE(SKU,SUBSTRING(SKU,1,FINDSTRING(SKU," ",1)),"") : SKU
0
Comment
Question by:sqlcurious
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 
LVL 7

Accepted Solution

by:
lozzamoore earned 500 total points
ID: 35188112
1) If the ESN field is null, then return "Accessories", otherwise return "Phone".

2) Manufacture a datetime string in the format: DD-MM-YYYY (or could be MM-DD-YYYY depending on the original format) setting DD as 5th and 6th characters, MM as 7th and 8th characters, and YYYY as the 1st 4 characters from the "Receive Date" column.

3) If the ESN field is null, then return the first part of the SKU field up to the space, otherwise return the whole field.
0
 

Author Closing Comment

by:sqlcurious
ID: 35191839
thanks
0

Featured Post

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

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.
International Data Corporation (IDC) prognosticates that before the current the year gets over disbursing on IT framework products to be sent in cloud environs will be $37.1B.
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.
Viewers will learn how to use the SELECT statement in SQL to return specific rows and columns, with various degrees of sorting and limits in place.

728 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