sql server - A table has two columns - how we can get the full_name into one column? -
i following sample data in sql table:-
first_name last_name concatenation(f_name,l_name) ------------------------------------------------------------- mohd nazir mohd,nazir
i want see result
full_name = mohd nazir
within same table
how about
alter table dbo.yourtablenamehere add fullname isnull(first_name, '') + ' ' + isnull(last_name, '')
with computed column, have new column in table that'll contain concatenation of first , last name, separated space
Comments
Post a Comment