How to Concat two column in a select statement sql server 2005?
Here is my statement Select FirstName,secondName from Table
...
Now i did try con
If one of your fields is numeric then you can cast it to a string
as follows:
SELECT FirstName + ISNULL(' ' + SecondName, '') + ' age(' + CONVERT(nvarchar,age) + ')' from Table
do like this :
select cast( FirstName as varchar)+' '+cast( secondName as varchar) from table
SELECT FirstName + ISNULL(' ' + SecondName, '') from Table