Solved

Derived column expression meaning in ssis

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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

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…
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 combined with referencing Books Online, show some of the information that can be extracted from the Catalog Views in SQL Server.
Viewers will learn how to use the UPDATE and DELETE statements to change or remove existing data from their tables. Make a table: Update a specific column given a specific row using the UPDATE statement: Remove a set of values using the DELETE s…

895 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

14 Experts available now in Live!

Get 1:1 Help Now