SELECT
PRESERVE03,
replace(concat( '-',PRESERVE03),'-1-', '-') as r,
concat( '-',PRESERVE03) as c,
length(replace(concat( '-',PRESERVE03),'-1-', '-')) as l,
INSTR(PRESERVE03,'1q') as i,
SUBSTR(PRESERVE03,2) as s,
SUBSTR( replace(concat( '-',PRESERVE03),'-1-', '-'), INSTR(replace(concat( '-',PRESERVE03),'-1-', '-'),'-') + 1,100 ) as ll
FROM T_CADRE_PROCESS_MOTION