To remove last '/' character
966822Oct 8 2012 — edited Oct 8 2012I need to remove '/' character and string comes after it. I will give an example.
CREATE TABLE TAB (COL1 VARCHAR2(50));
INSERT INTO TAB VALUES ('hIA/SS/TTTT/FFFF');
INSERT INTO TAB VALUES ('hDFF/AA/S/AAAAAAAA');
I should remove the last '/' and string comes after it so when i query , i should get result as
hiA/SS/TTTT
hDFF/AA/S
Please help me