I have a column with name and address data in a single column:
Jo Bloggs
Address Line 1
Address Line 2
PostCode
Is it possible to then create two computed columns based on this, and if so how? e.g.
RecipientName
Jo Bloggs
Address
Address Line 1
Address Line 2
PostCode
I’m using SQL Server 2005
You can do it like this;
Where the UDF is along the lines of;
However it would be better to break out the address elements into individual fields.