Hi There,
I was wondering if someone could help me with my transition from MSSQL to Oracle.
I have a field name call rec_supplier which contains supplier names with supplier account numbers seperated by a * like this
REC_SUPPLIER
============
2321*Supplier 1
333*Supplier 2
38584*Supplier 3
I to get rid of the Account number and * to just leave supplier name. I tried this ;
SELECT substr(rec_supplier, instr('rec_supplier', '*',1,1)) as tidyname
but it doesn't work.
Please help!
I was wondering if someone could help me with my transition from MSSQL to Oracle.
I have a field name call rec_supplier which contains supplier names with supplier account numbers seperated by a * like this
REC_SUPPLIER
============
2321*Supplier 1
333*Supplier 2
38584*Supplier 3
I to get rid of the Account number and * to just leave supplier name. I tried this ;
SELECT substr(rec_supplier, instr('rec_supplier', '*',1,1)) as tidyname
but it doesn't work.
Please help!