Select (case when prefix is null then '' else prefix end) + CONVERT ( nvarchar , ( lotnumber ) ) +(case when suffix is null then '' else suffix end)
a1a 1a 1 2 100
1 a1a 1a 2 100
1 1a 2 100 a1a
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)