dbTalk Databases Forums  

Join Fields together

microsoft.public.sqlserver.dts microsoft.public.sqlserver.dts


Discuss Join Fields together in the microsoft.public.sqlserver.dts forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Brent C
 
Posts: n/a

Default Join Fields together - 09-15-2004 , 10:37 PM






Hello,

I am running an extract and need to be able to specify that if the Source
field is Null it picks up another field. For Example:

SOURCE DESTINATION
--------- ----------------
FieldA FieldC
FieldB

If Field A is Null, Copy Field B to Field C.

Any assistance would be appreciated.

Regards,
Brent

Reply With Quote
  #2  
Old   
Allan Mitchell
 
Posts: n/a

Default Re: Join Fields together - 09-18-2004 , 05:40 AM






In article <DBB2EEC3-FDBA-4AD0-98CA-9533BB2FF1CC (AT) microsoft (DOT) com>, Brent C
wrote:
Quote:
Hello,

I am running an extract and need to be able to specify that if the Source
field is Null it picks up another field. For Example:

SOURCE DESTINATION
--------- ----------------
FieldA FieldC
FieldB

If Field A is Null, Copy Field B to Field C.

Any assistance would be appreciated.

Regards,
Brent


You do not specify the provider. In SQL Server you can do this in the
SourceSQLStatement

SELECT IsNull(col1, Col2) as MyVal...........

If you are using another provider they may have an equivalent syntax. Short
of this you can do it by using an Active Script transform.



--

Allan Mitchell MCSE,MCDBA, (Microsoft SQL Server MVP)
www.SQLDTS.com - The site for all your DTS needs.
www.konesans.com - Consultancy from the people who know





Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.