Please start any new threads on our new site at https://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

 All Forums
 General SQL Server Forums
 New to SQL Server Programming
 Concatenate the results

Author  Topic 

informaticapros
Starting Member

1 Post

Posted - 2013-07-24 : 12:53:20
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

549 Posts

Posted - 2013-07-24 : 12:56:03
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
Go to Top of Page

visakh16
Very Important crosS Applying yaK Herder

52326 Posts

Posted - 2013-07-25 : 00:55:40
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
   

- Advertisement -