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
 Concatenate the results
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

informaticapros
Starting Member

USA
1 Posts

Posted - 07/24/2013 :  12:53:20  Show Profile  Reply with Quote
Hello All,

I am a newbie here.I am trying to
Concatenate resulting classification names (X_DSC_CD_ABR below) in the following order (if the classification exists), separated by '/': WC/STD/LTD/FMLA/State/Military/Paid/Corporate/PFL/Other

Examples:
a. STD/FMLA
b. STD/LTD/FMLA/Other

Thanks in Advance,
Reddy

MuMu88
Aged Yak Warrior

547 Posts

Posted - 07/24/2013 :  12:56:03  Show Profile  Reply with Quote
can you show us your table definition and some example data

Use these guidelines: http://weblogs.sqlteam.com/brettk/archive/2005/05/25/5276.aspx

Edited by - MuMu88 on 07/24/2013 12:57:39
Go to Top of Page

visakh16
Very Important crosS Applying yaK Herder

India
52317 Posts

Posted - 07/25/2013 :  00:55:40  Show Profile  Reply with Quote
see

http://ruiromanoblog.wordpress.com/2011/05/10/concatenate-a-row-set-into-a-sql-column/

------------------------------------------------------------------------------------------------------
SQL Server MVP
http://visakhm.blogspot.com/
https://www.facebook.com/VmBlogs
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.05 seconds. Powered By: Snitz Forums 2000