I am getting an output of one table as
FILE_NUM SNO
Read;write;Listen; 1
Listen; 2
; 3
Write;READ; 4
I want to tweak the above column such as ; at the end is removed and if only ";" is given it should be removed like
FILE_NUM SNO
Read;write;Listen 1
Listen 2
3
Write;READ 4