Hello forum.

I need to learn how write a SQL script to strip 0s from data and strip alpha letters from alpha numeric data.


e.g.

I get data like 054, 006, 903, for a dept number. I need to strip the leading zeros from right. and keep the rest of the numbers. Whats the best way to script this striping?

Also,

IF you get alpha/numeric numbers like 5FD78, 000FG98, 00098FG...