By using db<>fiddle, you agree to license everything you submit by Creative Commons CC0.
case when length(phone) = 10 then concat('00382', right(phone ,(length(phone)-1))) when length(phone) = 13 then replace(phone, '+', '00') when length(phone) = 12 then concat ('00', phone) else |
---|
00382234567890 |