For each first and last name I would just like to combine and update them into the fullname column in the same "names" table.
This should happen for every row in the table. The columns are Id, FirstName, LastName and FullName.
Any help would be appreciated
update Names n
set n.FullName = (
select CONCAT(FirstName,' ',LastName)
from Names a
where n.Id = a.Id
)
where n.FullName is null
and n.FirstName is not null and n.LastName is not null