SQL Server Forums
Profile | Register | Active Topics | Members | Search | Forum FAQ
 
Register Now and get your question answered!
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 General SQL Server Forums
 New to SQL Server Programming
 Concatenating Text In a Query
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

chipembele
Posting Yak Master

106 Posts

Posted - 03/07/2014 :  08:43:33  Show Profile  Reply with Quote
Hi

I'm wanting to concatenate something that doesnt exist to an already existing field.

What I need to do is add a generic email address to every record in a data view

So, what it would do is take the column that does exist and add @domain.com to another column that I would call username

So rather than it just appearing as 911234 it would be a derived column saying 911234@domain.com

i've tried using +''+ but I get a space after the number

Can you help please?

MIK_2008
Flowing Fount of Yak Knowledge

Pakistan
1054 Posts

Posted - 03/07/2014 :  09:32:45  Show Profile  Reply with Quote
Post the sql query you've used, along with its output and the issue that is in the output.

Cheers
MIK
Go to Top of Page

chipembele
Posting Yak Master

106 Posts

Posted - 03/07/2014 :  10:45:02  Show Profile  Reply with Quote
Hi
I sorted it now thanks. One of the fields didnt support what I was trying to do
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
 Printer Friendly
Jump To:
SQL Server Forums © 2000-2009 SQLTeam Publishing, LLC Go To Top Of Page
This page was generated in 0.06 seconds. Powered By: Snitz Forums 2000