Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
Extracting data from SQL2005 and have two fields surname and forename_1. I want to concatenate these to give surname and forname in one field, what is the best way to do this.
thanks
Add a Load statement on top of your SQL SELECT statement and do a concatenation which pretty straight forward.
forename_1 & ' ' & surname AS ForenameSurname
Or, if you do it in the SQL statement.. I suspect you use + like:
forename_1 + ' ' + surname as ForenameSurname
Not sure about the single/double quotes there.
Add a Load statement on top of your SQL SELECT statement and do a concatenation which pretty straight forward.
forename_1 & ' ' & surname AS ForenameSurname
Or, if you do it in the SQL statement.. I suspect you use + like:
forename_1 + ' ' + surname as ForenameSurname
Not sure about the single/double quotes there.
Many thanks. works a treat
Hi colleagues, I have used it, but when using + for numbers its sums. Any idea to join without suming numbers?TKS
In that case, you may first convert those numbers into strings and then concatenate them.