I have a table with 3 address fields and each address field has a limit of 100 characters each.
I need to create a query to make the maximum character limit for each address field to be 30 characters long. If one address field is > 30 then I’ll cut off the rest, but take the remainder and concatenate it onto the beginning of the next address field. I would do this until the last address field (address3) is filled up and then just get rid of the remainder on the last address field.
Is there a way to do this with an SQL query or with T-SQL?
I think I’d go with the problem description, and write something that’s “obviously” correct (provided I’ve understood your spec :-))
Result: