SELECT SUBSTRING('20150825' FROM 3 FOR 6) || CASE WHEN '1' < '10' THEN '0'||to_char(1,'FM9999') ELSE '11' END || 25123 AS campo_combinado;