Hi all,
Need help with the following
I have a column with the following data set:
Registration_key
02BAE421A279
29a4bf67-2b8e
9067f314-5c33
I need the rows to populate as
02---421-279 or 02- works as well. Basically need to replace all alphabetic characters with '-'
I tired the following without any results:
Case
When
UPPER(REGISTRATION_KEY) BETWEEN UPPER('%A%') and UPPER('%Z%') then REGEXP_REPLACE(REGISTRATION_KEY, '[^a-zA-Z'']', '-')
Else ''
end