Javascript – Remove alias to string text
please help me, I have a string that corresponds to a SQL query; let string = `SPMAMA.DOCUMENTO AS DOCUMENTO_MAMA, NVL(SPMAMA.CARNETSALUS,SPMAMA_N.CARNETSALUS) AS CARNETSALUS_MAMA, NVL(SPMAMA.NOMBRE1 || ' ' || SPMAMA.NOMBRE2 || ' ' || SPMAMA.APELLIDO1 || ' ' || SPMAMA.APELLIDO2, SPMAMA_N.NOMBRE1 ||…