PRAVEEN T
asked on
stripout numeric data from the column value in oracle
I want stripout numeric data from the column value
ex :: Column name = abc
abc having the values like
INV242436,
APPY246578,
PO141423,
FSO897623,
APAC126756
I want like this..
INV,
APPY,
PO,
FSO,
APAC
ex :: Column name = abc
abc having the values like
INV242436,
APPY246578,
PO141423,
FSO897623,
APAC126756
I want like this..
INV,
APPY,
PO,
FSO,
APAC
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
thank you .. working fine
We can also use Translate function for this kind of requirement.
OUTPUT
WITH CTE AS
(
select 'INV242436' a from dual union all
select 'APPY246578' from dual union all
select 'PO141423' from dual union all
select 'FSO897623' from dual union all
select 'APAC126756' from dual
)
SELECT translate(a, 'a0123456789', 'a') a FROM CTE
OUTPUT
A
1 INV
2 APPY
3 PO
4 FSO
5 APAC
Welcome. Happy to help. :)
Open in new window
or
Open in new window
Output
Open in new window