I work with SQL Server. In my database I have a column UniqueId
which is nvarchar
, and contains strings with characters and numbers. I want to create another column (CleanColumn
) getting only numbers from the column UniqueId
, and if there aren't numbers using the whole string. Also I should lose leading zeros from column UniqueId
.
Is it possible in T-SQL? Or I have to use C# for that?
The column UniqueId
contains for example: :
A01943486
102-2009-1008
A-146
0622008081A
Ematol OPBG
Yavuz1098083
Yeter1391671
YKM
Zabit1446123
Zekerya13128
Zeynep1045201