September 8, 2010  
Register   Login  
Forum  
 
ForumForumEnesys RS Data ...Enesys RS Data ...Support - RS Da...Support - RS Da...How to concat string ?How to concat string ?
Previous Previous
 
Next Next
New Post
 8/6/2009 1:24 PM
 

Hi,

May I know how to concat two column value?

For example I have following table

Column1 Column2
Happy Birthday
Flying Fox

How to concat column1 and column2 so that I get the following result

Word
Happy Birthday
Flying Fox

I try to concat these two column in enesys sqlquery but it fails.

Please help....

New Post
 8/6/2009 2:49 PM
 

Hi Carles,

In SQL, you must use two pipes "||" to concatenate two strings.

A query similar to this should do the trick:

SELECT Column1 || " " || Column2 AS Word
FROM YourList

Regards,
Marien Monnier
Enesys

New Post
 8/6/2009 3:34 PM
 

Hi,

The solution proposed by Marien works perfectly.

However, I’m wondering why you would not concatenate the strings directly within your report using a report expression. Is there any specific reason?

Regards,


Frederic LATOUR
ENESYS
New Post
 8/7/2009 2:54 AM
 

Marien Monnier wrote

Hi Carles,

In SQL, you must use two pipes "||" to concatenate two strings.

A query similar to this should do the trick:

SELECT Column1 || " " || Column2 AS Word
FROM YourList

Regards,
Marien Monnier
Enesys

Hello Marien,

Thank you for answering my question :) . It works perfectly.

Regards,

Carles

New Post
 8/7/2009 2:59 AM
 

Frédéric LATOUR wrote

Hi,

The solution proposed by Marien works perfectly.

However, I’m wondering why you would not concatenate the strings directly within your report using a report expression. Is there any specific reason?

Regards,

Hi,

I want to display the concat text on combobox. For example, staff id + staff name. It would be good if the combobox can support multicolumn but the trick to achieve that is concat these two value.

By the way, I can't find it to do within report expression. Thanks for help :)

Regards,

Carles

Previous Previous
 
Next Next
ForumForumEnesys RS Data ...Enesys RS Data ...Support - RS Da...Support - RS Da...How to concat string ?How to concat string ?

 
You need to login for posting to the forums.
If you don't have a login, click here to register.
 
Copyright 2010 Enesys - All rights reserved Terms Of UsePrivacy Statement