Solved

Derived column expression meaning in ssis

Posted on 2011-03-21
2
477 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
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

The Eight Noble Truths of Backup and Recovery

How can IT departments tackle the challenges of a Big Data world? This white paper provides a roadmap to success and helps companies ensure that all their data is safe and secure, no matter if it resides on-premise with physical or virtual machines or in the cloud.

Question has a verified solution.

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

Slowly Changing Dimension Transformation component in data task flow is very useful for us to manage and control how data changes in SSIS.
For both online and offline retail, the cross-channel business is the most recent pattern in the B2C trade space.
Using examples as well as descriptions, and references to Books Online, show the documentation available for date manipulation functions and by using a select few of these functions, show how date based data can be manipulated with these functions.
Viewers will learn how the fundamental information of how to create a table.

828 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